Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

all: add common options schema #130

Closed
davidsneighbour opened this issue Jun 25, 2023 · 1 comment
Closed

all: add common options schema #130

davidsneighbour opened this issue Jun 25, 2023 · 1 comment
Assignees

Comments

@davidsneighbour
Copy link
Owner

Some plugins have issues adding options to frontmatter. For instance, sitemap as frontmatter will be overridden by the sitemap data of that page. To prevent that from happening, we will start using options as frontmatter particles that can be extended freely. This will be available in page.Params.options and can be prepared with common functions.

Sample:

---
options:
  some_option: true
  some_other_option: ["an" "array" "of" "thing"]
---
@davidsneighbour davidsneighbour self-assigned this Jun 25, 2023
@davidsneighbour
Copy link
Owner Author

davidsneighbour commented Jul 7, 2023

options:
  robots:
    some_option: true
    some_other_option: ["an" "array" "of" "thing"]

is a better way to separate and avoid overriding between modules (robots being the module name or slug).

@davidsneighbour davidsneighbour added state:unconfirmed This issue needs to be reproduced. module:all and removed documentation labels Aug 4, 2024
@github-actions github-actions bot removed the state:unconfirmed This issue needs to be reproduced. label Aug 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant