Skip to content

xioshe/hexo-theme-apollo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hexo-theme-apollo

文档

安装

asciicast

hexo init Blog 
cd Blog 
npm install
npm install --save hexo-renderer-jade@0.30 hexo-generator-feed hexo-generator-sitemap hexo-browsersync hexo-generator-archive
git clone https://github.com/esahcorp/hexo-theme-apollo.git themes/apollo

注意由于 jade 包更名为 pug,最新的 hexo-renderer-jade 包已经无法处理 /layout 中的 .jade 文件,需要指定版本为 @0.30

启用

修改博客根目录下的 _config.ymltheme 配置项为 apollo:

theme: apollo

# 在归档页面显示所有文章
# 需要上面安装的 hexo-generator-archive 插件支持
archive_generator:
    per_page: 0
    yearly: false
    monthly: false
    daily: false

hexo 默认的链接方式为 /年/月/日/文章名,可以在根目录下修改 permalink

# 修改为 /年/文章名 的格式
permalink: :year/:title/

更新

cd themes/apollo 
git pull

License

MIT

Releases

No releases published

Packages

No packages published

Languages

  • CSS 53.1%
  • HTML 44.2%
  • JavaScript 2.7%