Skip to content

Expose front matter (meta data) to the page? #1036

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

Open
Fil opened this issue Mar 11, 2024 · 0 comments
Open

Expose front matter (meta data) to the page? #1036

Fil opened this issue Mar 11, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@Fil
Copy link
Contributor

Fil commented Mar 11, 2024

Exposing meta data to the page could help in many scenarios. For a concrete example, suppose that I want to show an author's name in a page.

If I defined it in the front matter as

---
author: Fil
date: 2024-03-11
keywords: [ spam, ham ]
---

and could somehow reuse these in the page with something like ${meta.author}, it would help a lot when organizing a complex website.

I would like it to be also available for SSR (#931).

Related: #56

(Initially a comment in #178)

@Fil Fil added the enhancement New feature or request label Mar 11, 2024
@Fil Fil mentioned this issue Mar 11, 2024
Fil added a commit that referenced this issue Apr 17, 2024
that receives the page’s meta data (path, title and unrestricted front matter), and returns an HTML fragment (string).

closes #56
partially addresses #1036
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant