Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Front Matter Configuration
Closes #13
This PR adds support for customizing specific metadata for each page using the
@frontmatterand@endfrontmattertags at the beginning of a Jinja template or markdown file, with a json object inside of the tags. The current supported variables are:lang: The language metadata for the page<head>title: The title metadata for the page<head>charset: The charset metadata for the page<head>description: The description metadata for the page<head>keywords: Keyword metadata for the page<head>author: Author metadata for the page<head>og_image: Open graph image metadata for the page<head>og_image_alt: Open graph image alt metadata for the page<head>og_title: Open graph title metadata for the page<head>og_description: Open graph description metadata for the page<head>og_url: Open graph URL metadata for the page<head>og_type: Open graph type metadata for the page<head>og_site_name: Open graph site name metadata for the page<head>og_locale: Open graph locale metadata for the page<head>canonical: Canonical URL metadata for the page<head>google_font_link: URL link to import google font. Automatically creates the preconnect link tagspreconnects: Any urls that should be preconnected to in the<head>for the page. Generates the<link>tagsstylesheets: Any external stylesheets that should be included on the pagerobots: Robots metadata for the page<head>head_extra: Custom raw string that will be included in the<head>. Should be a valid tag, such as<script>or<link>body_id: The id attribute for the<body>tagbody_class: The class attribute for the<body>tagAdditionally, these variables can be used on markdown files:
summary: Short version of contentcategory: Taxonomy to categorize the article (one)tags: Additional taxonomy for the article (many)date: Publish date as UTC timestampdraft: Boolean indicating whether article is a draft. Defaults to "false" if not includedmodified: Option to add a UTC timestamp when an article has been editedExample: