English | 中文简体
An elegant Material-Design theme for Hexo
Starting with the v1.4.0
version, the project was officially renamed to Fluid (original project name: Material-T), and the repository and ownership were transferred to the Fluid-dev organization, so git remote url, theme directory name and related code will change.
If you plan to upgrade v1.4.0
, it is recommended to do the following:
- Unzip the release package and rename it to
fluid
(It is recommended that the user using the master branch re-clone the repository) - Modify the blog root
_config.yml
configurationtheme: fluid
- Copy the modified part of
_config.yml
of the original Material-T, or follow Smooth upgrade to use the configuration override feature.
We apologize for the inconvenience caused by the change.
Please download the latest release version first, and the master branch cannot guarantee stability.
After downloading, extract it to the themes directory and rename it to fluid
.
Modify _config.yml
in the root directory as follows:
# Set the language, you need to correspond to the file name in the following directory, you can customize the file content.
# https://github.com/fluid-dev/hexo-theme-fluid/tree/master/languages
language: en
# Turn off default highlighting
highlight:
enable: false
Still the _config.yml
in the root directory, modified as follows:
# Extensions
theme: fluid
Starting with v1.4.0, you can use Hexo data files to host theme configurations:
- Go to the site's
/source/_data/
directory (note: not thesource
directory of the theme), create_data
directory if it did not exist. - Create
fluid_config.yml
and copy the modified or all configuration items from the theme configuration file into it. In this way, configuration item influid_config.yml
will automatically override the theme's_config.yml
whenhexo g
and will not be lost after updating the theme. - Move your custom resource files (head_img, about.md, etc.) to site's
source
folder (don't forget to change the reference address for the resource in the configuration file) - (v1.5.0 version and above) If you need to use a CDN or other means to store static resources: Copy theme's
_static_prefix.yml
to site's/source/_data/
, rename it tofluid_static_prefix.yml
and modify its configuration. If_data/fluid_static_prefix.yml
exists, it will automatically overwrite theme's_static_prefix.yml
.
After completing the above steps, in the future update, you only need to overwrite the theme/fluid
folder with the new release.
- Please confirm that the above "Turn off default highlighting" step has been completed.
- Try "clean" command:
hexo clean && hexo g
hexo clean && hexo g
- Please check if the configuration file conforms to the yml syntax, such as spaces after the colon, 2 spaces for indentation, etc.
If you are contributing for the first time, you can first claim a smaller task in the help wanted to quickly participate in community contributions. You can respond to the willingness to participate directly in the issue, then follow the GitHub workflow guidelines below to resolve the issue and submit the PR according to the specification, and after reviewing it will be merged into the master branch.
The following workflows are recommended to participate in the contribution:
- Fork the repo to your own GitHub and clone it to your local development
- Create a new branch and develop on the new branch
- Keep the branch consistent with the remote develop branch (via fetch and rebase operations)
- Submit changes locally (please keep the commit log simple and standardized)
- Push the local submit to the repo of fork on GitHub
- Create a pull request to the develop branch of fluid-dev/hexo-theme-fluid
Contributors outside the code:@zhugaoqi