feat(header): allow setting custom canonical URL

This commit is contained in:
welpo 2023-09-16 01:49:42 +02:00
parent b26902da16
commit 8658985d5a
No known key found for this signature in database
GPG key ID: A2F978CF4EC1F5A6
3 changed files with 33 additions and 8 deletions

View file

@ -51,6 +51,12 @@ skin = ""
# You can load a stylesheet for a single post by adding it to the [extra] section of the post's front matter, following this same format.
stylesheets = []
# Sets the default canonical URL for all pages.
# Individual pages can override this in the [extra] section using canonical_url.
# Example: "$base_url/blog/post1" will get the canonical URL "https://example.com/blog/post1".
# Note: To ensure accuracy in terms of matching content, consider setting 'canonical_url' individually per page.
# base_canonical_url = "https://example.com"
# Remote repository for your Zola site.
# Used for `show_remote_changes` and `show_remote_source` (see below).
# Supports GitHub, GitLab, Gitea, and Codeberg.