Skip to content

feat(license): Add support of frontmatter override. - #158

Merged
matsuzaka-yuki merged 1 commit into
LyraVoid:mainfrom
Arielfoever:feather/license
Oct 27, 2026
Merged

matsuzaka-yuki merged 1 commit into
LyraVoid:mainfrom
Arielfoever:feather/license

Conversation

@Arielfoever

@Arielfoever Arielfoever commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

支持文章级的覆写版权设置和转载设置。

Type of change

  • Bug fix (a non-breaking change that fixes an issue)
  • New feature (a non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Other (please describe):

Checklist

  • I have read the CONTRIBUTING document.
  • I have formatted my code using Biome (pnpm format).
  • npx astro check passes with 0 errors.
  • I have checked to ensure that this Pull Request is not for personal changes.
  • I have performed a self-review of my own code.
  • My changes generate no new warnings.

Related Issue

Changes

How To Test

license:                # 可选,覆写全站版权声明;省略字段回退全站
  enable: true
  name: CC BY 4.0
  url: https://creativecommons.org/licenses/by/4.0/
  author:               # 作者:字符串或 { name, url }
    name: 某某
    url: https://example.com/author
  source: https://original.example.com/post  # 转载原文链接;留空=原创

Which can add to a existed post and looks good.

Screenshots (if applicable)

Additional Notes

支持文章级的覆写版权设置和转载设置。

Signed-off-by: Ariel Yu <ariel@ariels.xyz>

@matsuzaka-yuki matsuzaka-yuki left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving for a squash merge; the remaining formatting and compatibility follow-ups will be handled on main.

@matsuzaka-yuki
matsuzaka-yuki merged commit e6ba8a5 into LyraVoid:main Oct 27, 2026
6 checks passed
nullvert pushed a commit to nullvert/Shirone that referenced this pull request Oct 30, 2026
支持文章级的覆写版权设置和转载设置。

Signed-off-by: Ariel Yu <ariel@ariels.xyz>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants