You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't really want to do this but I do not see another way to allow users to define arbitrary per-page metadata, which we need in order to properly handle things like titles and descriptions in layouts.
We could probably do TOML front matter like so:
+++title = "Page Title"description = "A brief one-sentence description of the page"+++
Page contents...
This will require #3, and will also interact with #4.
We might also want to support YAML front matter but I really do not like that idea.
Alternatively, if we were using a templating engine that wasn't Tera, we could do something using the templating language (a {% export title "Page Title" %} type deal).
The text was updated successfully, but these errors were encountered:
I don't really want to do this but I do not see another way to allow users to define arbitrary per-page metadata, which we need in order to properly handle things like titles and descriptions in layouts.
We could probably do TOML front matter like so:
And then make it accessible to templates like so:
This will require #3, and will also interact with #4.
We might also want to support YAML front matter but I really do not like that idea.
Alternatively, if we were using a templating engine that wasn't Tera, we could do something using the templating language (a
{% export title "Page Title" %}
type deal).The text was updated successfully, but these errors were encountered: