Hugo Narrow 支持设置文章版权信息、相关文章等参数。
提示
文章版权信息和相关文章参数可在文章 frontmatter 覆盖设置。无需嵌套 post 字段。
params.yaml
1post:
2 showRelated: true
3 relatedPostsCount: 3
4 license:
5 show: true
6 author: "Hugo Narrow"
7 name: "CC BY-NC-SA 4.0"
8 description: "This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. Please attribute the source, use non-commercially, and maintain the same license."
9 url: "https://creativecommons.org/licenses/by-nc-sa/4.0/"
10 displayName: "CC BY-NC-SA 4.0"first-post.md
1showRelated: false
2relatedPostsCount: 5
3license:
4 show: true
5 author: "Hugo Narrow"
6 name: "CC BY-NC-SA 4.0"
7 description: "This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. Please attribute the source, use non-commercially, and maintain the same license."
8 url: "https://creativecommons.org/licenses/by-nc-sa/4.0/"
9 displayName: "CC BY-NC-SA 4.0"