Skip to content
This repository has been archived by the owner on Feb 28, 2022. It is now read-only.

Inject Default Metadata from frontmatter.yaml #607

Closed
trieloff opened this issue Mar 2, 2020 · 1 comment
Closed

Inject Default Metadata from frontmatter.yaml #607

trieloff opened this issue Mar 2, 2020 · 1 comment
Labels
enhancement New feature or request wontfix This will not be worked on

Comments

@trieloff
Copy link
Contributor

trieloff commented Mar 2, 2020

When rendering /foo/bar.md, in addition to fetching /foo/bar.md also /foo/frontmatter.yaml should get fetched.

The contents of frontmatter.yaml should be merged with content.section[0].meta so that frontmatter.yaml never overrides existing scalar types and appends to existing arrays.

This will enable the creation of folder-specific metadata.

For this to work across the board, we need to adjust the word and google docs adapters to either serve YAML directly or to convert simple spreadsheets into YAML, so that metadata can be managed in spreadsheets.

/cc @davidnuescheler

Discussion: this would be an alternative or additional approach to #606 but come at the cost of making one additional, speculative request in fetch. With the new Downloader, we can defer awaiting the actual download until the meta step (there are 6 other steps in between), so the risk of the rendering actually being delayed due to the additional request is tiny.

@trieloff trieloff added the enhancement New feature or request label Mar 2, 2020
@trieloff trieloff changed the title Inject Default Metadata from frontmatter.yaml Inject Default Metadata from frontmatter.yaml Mar 2, 2020
@tripodsan
Copy link
Contributor

won't fix

@tripodsan tripodsan added the wontfix This will not be worked on label Dec 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants