mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-27 01:33:04 +00:00
theme: add theme version info to head #158
This commit is contained in:
parent
be221f2f5b
commit
4053dc8565
3 changed files with 4 additions and 0 deletions
|
@ -41,6 +41,7 @@ runs:
|
|||
GITHUB_TOKEN: ${{ inputs.github_token }}
|
||||
GREN_GITHUB_TOKEN: ${{ inputs.github_token }}
|
||||
run: |
|
||||
echo "$MILESTONE" > layouts/partials/version.html
|
||||
npx github-release-notes@0.17.1 changelog --generate --override --tags=all
|
||||
git add *
|
||||
git commit --message "Ship tag $MILESTONE"
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
|
||||
<meta name="generator" content="Relearn {{ partial "version.html" }}">
|
||||
{{- partial "page-meta.go" . }}
|
||||
{{- if not (and .Title (or (ne (.Scratch.Get "relearnIsHiddenStem") true) (ne .Site.Params.disableSeoHiddenPages true) ) ) }}
|
||||
<meta name="robots" content="noindex, nofollow, noarchive, noimageindex">
|
||||
|
|
1
layouts/partials/version.html
Normal file
1
layouts/partials/version.html
Normal file
|
@ -0,0 +1 @@
|
|||
2.9.1
|
Loading…
Reference in a new issue