mirror of
https://github.com/McShelby/hugo-theme-relearn
synced 2025-04-30 12:53:15 +08:00
theme: add theme version info to head #158
This commit is contained in:
parent
be221f2f5b
commit
4053dc8565
@ -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…
x
Reference in New Issue
Block a user