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] Add data-driven current version shortcode #2610

Open
ShaunaGordon opened this issue Oct 7, 2024 · 0 comments
Open

[SITE][FEATURE] Add data-driven current version shortcode #2610

ShaunaGordon opened this issue Oct 7, 2024 · 0 comments
Labels
feature/website This is an issue with the website, not the content good-first-issue Issue ready for a new contributor according to the help wanted guidelines. kind/enhancement Enhancement to an existing feature kind/feature Categorizes issue or PR as related to a new feature. kind/website Categorizes an issue or PR as related to the website itself. size/XS Denotes a PR that changes 0-9 lines ignoring generated files.

Comments

@ShaunaGordon
Copy link
Contributor

Describe the feature you'd like available on the website

Right now, current engine version is hardcoded everywhere, needing a lot of search and replace to update it. Ideally, we should be able to draw from one location to get that value.

Proposed implementation

Create a shortcode that handles getting a site param that we can then use in the content files.

We then update all the references to current version, where the value changes on each release, so that things update automatically going forward.

Available alternatives

None, really.

Supplements

https://gohugo.io/templates/shortcode/

@ShaunaGordon ShaunaGordon added kind/enhancement Enhancement to an existing feature good-first-issue Issue ready for a new contributor according to the help wanted guidelines. feature/website This is an issue with the website, not the content kind/feature Categorizes issue or PR as related to a new feature. size/XS Denotes a PR that changes 0-9 lines ignoring generated files. kind/website Categorizes an issue or PR as related to the website itself. labels Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature/website This is an issue with the website, not the content good-first-issue Issue ready for a new contributor according to the help wanted guidelines. kind/enhancement Enhancement to an existing feature kind/feature Categorizes issue or PR as related to a new feature. kind/website Categorizes an issue or PR as related to the website itself. size/XS Denotes a PR that changes 0-9 lines ignoring generated files.
Projects
None yet
Development

No branches or pull requests

1 participant