hugo-theme-jane icon indicating copy to clipboard operation
hugo-theme-jane copied to clipboard

如何置顶文章?

Open sceraser opened this issue 5 years ago • 2 comments

如何将一篇文章置顶且打上置顶标记?

sceraser avatar Sep 12 '19 03:09 sceraser

好像博客普遍不支持这个需求

luckrill avatar Sep 16 '19 13:09 luckrill

你可以看一下 DEMO 中的这篇置顶文章的源文件: https://github.com/xianmin/hugo-theme-jane/blob/master/exampleSite/content/post/jane-theme-preview.md

在文章头部的配置中加上一条: weight: 1 ,就可以置顶了。

相关 Issue: https://github.com/xianmin/hugo-theme-jane/issues/65

xianmin avatar Sep 19 '19 07:09 xianmin