Hugo theme stack主题修改记录
slug
stake
status
Published
tags
hugo
summary
type
Post
文章固定链接
permalinks:
post: posts/:slug.html
在文章头部加入 slug: xxx
添加不蒜子
在themes\hugo-theme-stack\layouts\partials\footer 修改footer.html文件,在后面添加代码
<script async src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js">
</script>
<br />本站访客数<span id="busuanzi_value_site_uv"></span>人次
<span id="busuanzi_container_site_pv"> 总访问量<span id="busuanzi_value_site_pv"></span>次 </span>
<span id="busuanzi_container_page_pv">本文阅读量<span id="busuanzi_value_page_pv"></span>次</span>显示文章更新日期
在
config.yaml里写frontmatter:
lastmod: [":fileModTime", "lastmod"]修改时间格式
dateFormat:
published: 2006-01-02
lastUpdated: 2006年01月02号 MST
上面两种格式比较常见
文章置顶
文章默认按照时间排序,如果我们想置顶某篇文章,可以在FrontMatter设置weight属性(权重),权重最大文章在最前面
显示中文标签,搜索,归档,友情链接
到content\page文件夹里面分别找index.md
分别修改title: "标签”
分别修改title: "搜索”
分别修改title: "归档”
分别修改title: "友情链接”