Matery的修改与美化


修改过的文件

hexo-theme-matery\_config.yml
hexo-theme-matery\source\css\matery.css
hexo-theme-matery\layout\_partial\bg-cover-content.ejs
hexo-theme-matery\layout\_partial\post-cover.ejs
hexo-theme-matery\layout\_partial\post-detail.ejs
hexo-theme-matery\layout\_partial\post-detail-toc.ejs
hexo-theme-matery\layout\_partial\github-link.ejs
hexo-theme-matery\layout\_partial\footer.ejs
hexo-theme-matery\layout\about.ejs

可以从我当初用的源码进行比较知道修改了哪些地方

安装的依赖

cnpm install hexo-admin --save
cnpm i --save hexo-wordcount
cnpm i hexo-permalink-pinyin --save
cnpm install hexo-generator-search --save
cnpm install hexo-deployer-git --save

🔗2023再收藏两个链接

[三万字教程]基于Hexo的matery主题搭建博客并深度优化一站式完全教程 | 夜法之书
Hexo Markdown以及各种插件功能测试 | 夜法之书

常见样式

### Horizontal Rules

___

---

***

Horizontal Rules




tag note

{% note [class] [no-icon] [summary] %}
Any content (support inline tags too).
{% endnote %}
  • [class] : Optional parameter. Supported values: default | primary | success | info | warning | danger.
  • [no-icon] : Optional parameter. Disable icon in note.
  • [summary] : Optional parameter. Optional summary of the note.

Examples

{% note %}
#### Header
(without define class style)
{% endnote %}

(without define class style)


{% note default %}
#### Default Header
Welcome to [Hexo!](https://hexo.io)
{% endnote %}

Default Header

Welcome to Hexo!


{% note primary %}
#### Primary Header
**Welcome** to [Hexo!](https://hexo.io)
{% endnote %}

Primary Header

Welcome to Hexo!


{% note info %}
#### Info Header
**Welcome** to [Hexo!](https://hexo.io)
{% endnote %}

Info Header

Welcome to Hexo!


{% note success %}
#### Success Header
**Welcome** to [Hexo!](https://hexo.io)
{% endnote %}

Success Header

Welcome to Hexo!


{% note warning %}
#### Warning Header
**Welcome** to [Hexo!](https://hexo.io)
{% endnote %}

Warning Header

Welcome to Hexo!


{% note danger %}
#### Danger Header
**Welcome** to [Hexo!](https://hexo.io)
{% endnote %}

Danger Header

Welcome to Hexo!


{% note info no-icon %}
#### No icon note
Note **without** icon: `note info no-icon`
{% endnote %}

No icon note

Note without icon: note info no-icon


{% note info no-icon This is a summary %} 
#### Details and summary (No icon) 
Note with summary: `note info no-icon This is a summary` 
{% endnote %}  

This is a summary

Details and summary (No icon)

Note with summary: note info no-icon This is a summary


文章作者: 周master
文章链接: http://blog.izyq.cn/665/
版权声明: 本博客所有文章除特別声明外,均采用 CC BY 4.0 许可协议。转载请注明来源 周master !
  目录