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

[SITE][FEATURE] Use front matter for displayed update dates in pages #2571

Open
ShaunaGordon opened this issue Jul 17, 2024 · 0 comments
Open
Labels
needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one.

Comments

@ShaunaGordon
Copy link
Contributor

Describe the feature you'd like available on the website

In blocks such as this:
image

The "last updated" part should come from the front matter, so that all such references in a file update automatically.

Proposed implementation

For tutorials, we could go as far as creating a specific template that reads front matter data for that whole table. So the front matter might look like this:

# ... (other front matter)
layout: tutorial
lastmod: 2023-11-20
params:
  - level: Beginner
  - time: 15 Minutes
  - focus: Using prefab overrides to make prefab instances unique.

The tutorial template would then have the table as in the image above.

Available alternatives

At its most basic, we'd have shortcodes to display front matter data. This has a lower initial lift, at the expense of consistency across pages of the same type. It would likely be useful to have these shortcodes, anyway, for unforeseen usecases.

Supplements

Reference:

@ShaunaGordon ShaunaGordon added the needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. label Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one.
Projects
None yet
Development

No branches or pull requests

1 participant