Warning
This project is under development and might meet some bugs. Please use it with caution.
If you find any bugs, please open an issue.
A hexo theme with material design.
| Browser | Compatibility |
|---|---|
| Chrome | ✔ Last 5 versions |
| Firefox | ✔ Last 5 versions |
| Edge Chromium | ✔ Last 5 versions |
| Edge EdgeHTML | ❔ Unknown |
| Safari | ✔ Last 5 versions |
| Internet Explorer 11 | ❌ Basic Supported |
Note: All MDx releases(including alpha/beta versions) after June 15, 2022 will no longer support Internet Explorer due to the upcoming end of support for Internet Explorer on June 15, 2022.
To get further information, please refer to this site.
# use npm(recommended) or yarn
$ npm install hexo-theme-mdx --save
# or use git clone or git submodule (not recommended)
# You can remove '-b' to get the latest development version(Unstable)
# To get the full commit history of the repository, remove '--depth 1'
$ git clone https://github.com/Yuameshi/hexo-theme-mdx.git themes/mdx -b <Version(Stable Only)> --depth 1
# If you executed the previous command, then this command does not need to be executed
$ git submodule add https://github.com/Yuameshi/hexo-theme-mdx.git themes/mdxModify _config.yml to change the theme to MDx
- theme: previous theme
+ theme: mdx# Bash
$ wget https://cdn.jsdelivr.net/gh/Yuameshi/hexo-theme-mdx@main/_config.yml -O _config.mdx.yml# PowerShell
(New-Object System.Net.WebClient).DownloadFile("wget https://cdn.jsdelivr.net/gh/Yuameshi/hexo-theme-mdx@main/_config.yml", "_config.mdx.yml")or copy contents here to _config.mdx.yml
Warning
If you installed the theme via git and using top level configuration file, please make sure to delete _config.yml in the theme directory.
For detailed configuration, please refer to the comments in the configuration file.
Usage: {% mdx_fold Title isOpen %} Something {% endmdx_fold %}
Example:
Here are some folded content
{% mdx_fold "A folded content which is opened by default" true %}
Something are folded. Something are folded. Something are folded. Something are folded.
{% endmdx_fold %}
{% mdx_fold "A folded content which is closed by default" false %}
Something are folded. Something are folded. Something are folded. Something are folded.
{% endmdx_fold %}Usage: {% mdx_github_info_card repoOwner repoName %}
Example
I'll introduce you guys a github repo:
{% mdx_github_info_card Yuameshi hexo-theme-mdx %}Usage: {% mdx_warn Title %} Something {% endmdx_warn %}
Example
Here are some warning messages
{% mdx_warn "This is the title of the warning message" %}
Here is a warning message. Here is a warning message. Here is a warning message. Here is a warning message.
{% endmdx_warn %}