mirror of
https://github.com/McShelby/hugo-theme-relearn
synced 2025-04-30 19:11:03 +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 }}
|
GITHUB_TOKEN: ${{ inputs.github_token }}
|
||||||
GREN_GITHUB_TOKEN: ${{ inputs.github_token }}
|
GREN_GITHUB_TOKEN: ${{ inputs.github_token }}
|
||||||
run: |
|
run: |
|
||||||
|
echo "$MILESTONE" > layouts/partials/version.html
|
||||||
npx github-release-notes@0.17.1 changelog --generate --override --tags=all
|
npx github-release-notes@0.17.1 changelog --generate --override --tags=all
|
||||||
git add *
|
git add *
|
||||||
git commit --message "Ship tag $MILESTONE"
|
git commit --message "Ship tag $MILESTONE"
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
|
||||||
|
<meta name="generator" content="Relearn {{ partial "version.html" }}">
|
||||||
{{- partial "page-meta.go" . }}
|
{{- partial "page-meta.go" . }}
|
||||||
{{- if not (and .Title (or (ne (.Scratch.Get "relearnIsHiddenStem") true) (ne .Site.Params.disableSeoHiddenPages true) ) ) }}
|
{{- if not (and .Title (or (ne (.Scratch.Get "relearnIsHiddenStem") true) (ne .Site.Params.disableSeoHiddenPages true) ) ) }}
|
||||||
<meta name="robots" content="noindex, nofollow, noarchive, noimageindex">
|
<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