Skip to content

License

The license configuration controls the copyright information displayed at the top of posts.

Config File

src/config/licenseConfig.ts

Properties

PropertyTypeDefaultDescription
enablebooleantrueShow license info on posts
namestring"CC BY-NC-SA 4.0"License name
urlstring-License URL

Example

ts
export const licenseConfig: LicenseConfig = {
  enable: true,
  name: "CC BY-NC-SA 4.0",
  url: "https://creativecommons.org/licenses/by-nc-sa/4.0/",
};

Common Licenses

LicenseDescription
CC BY 4.0Attribution
CC BY-SA 4.0Attribution-ShareAlike
CC BY-NC 4.0Attribution-NonCommercial
CC BY-NC-SA 4.0Attribution-NonCommercial-ShareAlike
CC BY-ND 4.0Attribution-NoDerivatives
CC BY-NC-ND 4.0Attribution-NonCommercial-NoDerivatives