From b4cedc2d8213002a645632f01466ebcae6b6790a Mon Sep 17 00:00:00 2001 From: Morgan Date: Wed, 8 Nov 2023 16:21:32 +0900 Subject: [PATCH] Fix --- config.yml | 2 +- scripts/build.sh | 4 ++-- themes/oldtheme/layouts/partials/footer.html | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/config.yml b/config.yml index cf49a63..016b1f4 100644 --- a/config.yml +++ b/config.yml @@ -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 ####################################### diff --git a/scripts/build.sh b/scripts/build.sh index 619d935..8cb9adc 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -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 diff --git a/themes/oldtheme/layouts/partials/footer.html b/themes/oldtheme/layouts/partials/footer.html index 344fb1c..2a876c6 100644 --- a/themes/oldtheme/layouts/partials/footer.html +++ b/themes/oldtheme/layouts/partials/footer.html @@ -5,8 +5,8 @@ {{- else }} © Morgan ยท PaperMod
+ Ver.{{ site.Params.buildDate }} Toggle Dark Mode - Build date: {{ site.Params.buildDate }} {{- end }} {{- end }}