[SITE][FEATURE] Add data-driven current version shortcode #2610
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.
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/
The text was updated successfully, but these errors were encountered: