Skip to content

huahuablog/Hua

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fan

这是一个深色主题,如梦幻般的星空,群星闪烁。

Preview

安装

git clone https://github.com/fan-lv/Fan.git themes/Fan

修改位于博客根目录下的_config.yml内的theme选项值为Fan

更新

cd themes/Fan
git pull

需要的依赖包

  • hexo-renderer-jade
  • hexo-renderer-stylus

问题

  • 如果报错 appId undefined,需要把 themes->_config.yml 中 algolia_search:enable 改成 false

说明

文章置顶

支持文章置顶功能,在需要置顶的文章(Markdown 文件)加入 top: 1,数值越大越靠前。

如:

title: xxx
author: xxx
tags:
  - xxx
categories:
  - xxx
date: xxx
top: 1

评论功能

目前支持 Gitment 评论。

使用方法:

  1. 在 config 文件中加入以下代码
    comments:
      gitment:
        owner: 'Your GitHub ID'
        repo: 'The repository to store your comments. Make sure you're repo's owner'
        client_id: 'GitHub client ID'
        client_secret: 'GitHub client secret'
    
  2. themes->_config.yml 中可以开启或关闭 comments
    # 评论
    comments:
        enable: true
    

License

MIT

About

hexo-theme

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • CSS 58.2%
  • JavaScript 23.6%
  • HTML 18.2%