文章

Hugo Narrow 支持设置文章版权信息、相关文章等参数。

Tip

文章版权信息和相关文章参数可在文章 frontmatter 覆盖设置。无需嵌套 post 字段。

params.yaml
post:
  showRelated: true 
  relatedPostsCount: 3
  license:
    show: true
    author: "Hugo Narrow"
    name: "CC BY-NC-SA 4.0"
    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."
    url: "https://creativecommons.org/licenses/by-nc-sa/4.0/"
    displayName: "CC BY-NC-SA 4.0"
first-post.md
showRelated: false 
relatedPostsCount: 5
license:
  show: true
  author: "Hugo Narrow"
  name: "CC BY-NC-SA 4.0"
  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."
  url: "https://creativecommons.org/licenses/by-nc-sa/4.0/"
  displayName: "CC BY-NC-SA 4.0"