This commit is contained in:
Morgan 2023-11-08 16:21:32 +09:00
parent d4f2d2eeec
commit b4cedc2d82
3 changed files with 4 additions and 4 deletions

View File

@ -23,7 +23,7 @@ params:
icon: /favicon.png
icon_inv: /favicon-inv.png
iconHeight: 24
buildDate: 2023-11-01_22:07:31
buildDate: 1101_2207
#######################################

View File

@ -1,3 +1,3 @@
sed -i.old "s/buildDate: [0-9]\+-[0-9]\+-[0-9]\+_[0-9]\+:[0-9]\+:[0-9]\+/buildDate: $(date +%Y-%m-%d_%H:%M:%S)/" config.yml
echo buildDate: $(date +%Y-%m-%d_%H:%M:%S)
sed -i.old "s/buildDate: [0-9]\+-[0-9]\+/buildDate: $(date +%m%d-%H%M)/" config.yml
echo buildDate: $(date +%m%d-%H%M)
hugo

View File

@ -5,8 +5,8 @@
{{- else }}
<a href="/admin/" style="text-decoration: none;">&copy;</a> <span><a href="{{ "" | absLangURL }}">Morgan</a> · PaperMod</span>
<div style="font-size: 10px;">
<span style="">Ver.{{ site.Params.buildDate }} </span>
<a href="#" id="theme-toggle">Toggle Dark Mode</a>
<span style="font-size: 5px;">Build date: {{ site.Params.buildDate }}</span>
{{- end }}
</footer>
{{- end }}