Skip to content

Copyright & License

About 333 wordsAbout 1 min

2026-09-01

The License block at the bottom of the post page is configured by licenseConfig.ts, showing the article's license and a link to its full text.

Configuration

src/config/licenseConfig.ts
export const licenseConfig = withUserConfig("license", {
  enable: true,
  name: "CC BY-NC-SA 4.0",
  url: "https://creativecommons.org/licenses/by-nc-sa/4.0/",
})
FieldTypeDefaultDescription
enablebooleantrueWhether to show the license block
namestringCC BY-NC-SA 4.0License name displayed in the post page License block
urlstringOfficial CC linkFull license text; the name links here

Common License Choices

LicenseUse case
CC BY-NC-SA 4.0Default. Attribution-NonCommercial-ShareAlike: credit required, no commercial use, derivatives under the same license
CC BY 4.0Attribution only, including commercial use—the most permissive
CC BY-NC 4.0Attribution + non-commercial
CC BY-NC-ND 4.0Strictest: attribution + non-commercial + no derivatives
All Rights ReservedAll rights reserved; no redistribution without permission

Example change (to the permissive CC BY 4.0):

src/config/licenseConfig.ts
export const licenseConfig = withUserConfig("license", {
  enable: true,
  name: "CC BY 4.0",
  url: "https://creativecommons.org/licenses/by/4.0/",
})

How It Works with Your Profile

The License block, profileConfig (author name), and the post's publish/update times together form the byline area of a post page. Disabling the License block does not affect other parts of the page.

Content-Repo Override

The license is a typical site-level behavior setting. In dual-repo mode, override it via config/license.yaml in your content repository—no theme source edits needed.

config/license.yaml (content repo)
enable: true
name: CC BY 4.0
url: https://creativecommons.org/licenses/by/4.0/

FAQ

Can each post use a different license

The block shows but the link is broken