Skip to content

v0.37.0

Choose a tag to compare

@tannevaled tannevaled released this 15 Nov 15:29
· 2 commits to main since this release
0c1b3c0

The kit version in a landing's footer

A new opt-in partial, kit-version.html, prints the landingkit version a page was built with (#54). Add it to your own <footer> with {{ partial "kit-version.html" . }}:

  • a tagged version prints landingkit v0.37.0, linked to that release;
  • a pseudo-version prints as it is, linked to the commit;
  • a replace to a local directory, or no kit dependency, prints landingkit (local), with no link.

It reads hugo.Deps and never fails the build. Its colour is --slate: 7.58:1 on the light background and 7.66:1 on the dark one.

landingkit audit now prints the kit version it reads on each published page (none when the page has no such line), plus a tally. landingkit check warns when a built site has no version line, and does not fail.

To show it on a landing, bump the pin to v0.37.0 or later AND add the partial call to the footer. The bump alone shows nothing.