Skip to content

ningyu1/site

Repository files navigation

this is blog source branch

博客使用 hugo 构建,使用的主题:hugo-fabric

修改主题的地方

  1. 栏目增加about,修改的位置:themes/hugo-fabric/layouts/partials/archive.html
  2. 修改share页面,修改的位置:themes/hugo-fabric/layouts/partials/post/sharing.html
  3. 增加google翻译,修改的位置:themes/hugo-fabric/layouts/partials/head.html和config.toml
  4. 增加百度统计,修改位置:themes/hugo-fabric/layouts/partials/head.html
  5. 优化google搜索,修改位置:themes/hugo-fabric/layouts/partials/navigation.html
  6. 修改了一些样式,修改位置:themes/hugo-fabric/layouts/partials/css/screen.css
  7. 增加采用知识共享署名-相同方式共享 4.0 国际许可协议许可文章
  8. 修改导航地址将流量引入新blog,修改位置:themes/hugo-fabric/layouts/partials/navigation.html
  9. 修改搜索site为根域名,修改位置:themes/hugo-fabric/layouts/partials/navigation.html
  10. 修改rss地址,修改位置:themes/hugo-fabric/layouts/partials/social/html

hugo 安装

https://gohugo.io/installation/

ps. 注意hugo版本:hugo_0.51,当前主题不支持此外版本

生成静态文件

hugo --buildDrafts