一个给个人网站的响应式、黑色、简单的 Hexo 主题。
🌵 示例
- 版本 : 2.0
- 适配 : Hexo 3 或更高
- 完全的响应式
- Disqus
- Googe 分析
- Font Awesome 图标
- 可选的代码高亮方案
- 可配置的导航栏
- 项目列表
- 简洁
-
在
root
文件夹中:$ git clone https://github.com/GroverChouT/cactus-dark-zh.git themes/cactus-dark-zh $ npm install hexo-pagination --save
-
在
config.yml
文件中修改配置theme
如下:# theme: landscape theme: cactus-dark-zh
-
执行:
hexo generate
和hexo server
在主题文件夹里的 _config.yml
设置:
nav:
首页: /
关于: /about/
写作: /archives/
项目: http://github.com/probberechts
链接名称: 链接
You have two options for the list of blog posts on the home page:
- Show only the 5 most recent posts (default)
customize:
show_all_posts: false
post_count: 5
- Show all posts
customize:
show_all_posts: true
Create a projects file source/_data/projects.json
.
[
{
"name":"Hexo",
"url":"https://hexo.io/",
"desc":"A fast, simple & powerful blog framework"
},
{
"name":"Font Awesome",
"url":"http://fontawesome.io/",
"desc":"The iconic font and CSS toolkit"
}
]
Cactus Dark can automatically add links to your social media accounts. Therefore, update the theme's _config.yml
:
customize:
social_links:
github: your-github-url
twitter: your-twitter-url
NAME: your-NAME-url
where NAME
is the name of a Font Awesome icon.
Set the rss
field in the theme's _config.yml
to one of the following values:
rss: false
will totally disable rss (default).rss: atom.xml
sets a specific feed link.rss:
leave empty to use the hexo-generator-feed plugin.
Add you Google Analytics tracking_id
to the theme's _config.yml
.
plugins:
gooogle_analytics: 'UA-49627206-1' # Format: UA-xxxxxx-xx
First, create a site on Disqus: https://disqus.com/admin/create/.
Next, update the theme's _config.yml
file:
plugins:
disqus_shortname: SITENAME
where SITENAME
is the name you gave your site on Disqus.
Pick one of the available colorschemes and add it to the theme's _config.yml
:
customize:
highlight: COLORSCHEME_NAME
MIT