-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(MAINT) Initial publishing of FrontMatter configs (#44)
This change extends the functionality of memo for documenting a hugo theme to enable a theme author to publish [FrontMatter][01] config files, which users can then reference in their own projects instead of having to find and copy all the values. This change is in support of estruyf/vscode-front-matter#407, which adds the `frontMatter.extends` key. In this basic implementation: - An author can define `memo.front_matter.configs` in their site params or on a particular page to publish one or more configurations. The implementation requires that the configurations be defined as assets. The implementation allows you to specify the config path as a remote asset, a site asset, or a page asset and resolves the config path to the appropriate asset. Authors can define either the `definition` or `merge` key in an item but not both. Items with the `definition` key publish a single config and have the option to specify the site-relative publish path with the `publish` key. Items with the `merge` key merge the values from multiple configs to publish as a merged blob to the site-relative path defined by the mandatory `publish` key. - Memo has been updated to take advantage of the merge-from-data feature in Platen to allow setting the site parameters in a data file. - The new configuration options are validated before use, warning and discarding invalid values.
- Loading branch information
Showing
88 changed files
with
2,240 additions
and
1,389 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"name": "posts", | ||
"title": "Platen blog posts", | ||
"$schema": "https://beta.frontmatter.codes/config/content.pagefolders.schema.json", | ||
"path": "[[workspace]]/content/posts", | ||
"contentTypes": ["posts"] | ||
} |
23 changes: 0 additions & 23 deletions
23
.frontmatter/config/content/snippets/hugo/embeds/gist.json
This file was deleted.
Oops, something went wrong.
16 changes: 0 additions & 16 deletions
16
.frontmatter/config/content/snippets/hugo/embeds/instagram.json
This file was deleted.
Oops, something went wrong.
23 changes: 0 additions & 23 deletions
23
.frontmatter/config/content/snippets/hugo/embeds/tweet.json
This file was deleted.
Oops, something went wrong.
15 changes: 0 additions & 15 deletions
15
.frontmatter/config/content/snippets/hugo/embeds/vimeo.json
This file was deleted.
Oops, something went wrong.
32 changes: 0 additions & 32 deletions
32
.frontmatter/config/content/snippets/hugo/embeds/youtube.json
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
15 changes: 0 additions & 15 deletions
15
.frontmatter/config/content/snippets/hugo/links/permalink-relative.json
This file was deleted.
Oops, something went wrong.
15 changes: 0 additions & 15 deletions
15
.frontmatter/config/content/snippets/hugo/links/permalink.json
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
36 changes: 0 additions & 36 deletions
36
.frontmatter/config/content/snippets/platen/art/local.json
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.