1
0
Fork 0
mirror of https://git.sr.ht/~ashkeel/strimertul-website synced 2024-11-21 21:22:21 +00:00
strimertul-website/layouts/_default/update.json
Ash Keel 2e015ddbb4
All checks were successful
continuous-integration/drone/push Build is passing
add json file for version check
2023-11-12 02:19:54 +01:00

1 line
No EOL
351 B
JSON

{{ $releases := where .Site.RegularPages "Section" "releases" }}{{ $stable := where $releases "Params.prerelease" false }}{{ $latest := index $releases 0 }}{{ $latest_stable := index $stable 0 }}{{ dict "stable" (dict "name" $latest_stable.Title "url" $latest_stable.Permalink) "latest" (dict "name" $latest.Title "url" $latest.Permalink) | jsonify }}