From 12ca6ad3df33495ead897d26675569f91e7e027a Mon Sep 17 00:00:00 2001 From: Thomas Lindner Date: Fri, 11 Jul 2025 10:36:16 +0200 Subject: [PATCH] move old site into 2023 subdirectory and make it build with current hugo --- config.yml | 2 +- deploy.sh | 2 +- themes/PaperMod/layouts/partials/templates/opengraph.html | 2 +- themes/PaperMod/layouts/partials/templates/twitter_cards.html | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/config.yml b/config.yml index 722b234..0abbe48 100644 --- a/config.yml +++ b/config.yml @@ -1,4 +1,4 @@ -baseURL: https://quellcode.0x90.space/ +baseURL: https://quellcode.0x90.space/2023/ languageCode: de defaultContentLanguage: de title: Quellcode diff --git a/deploy.sh b/deploy.sh index 4c43784..cf887c5 100755 --- a/deploy.sh +++ b/deploy.sh @@ -1,4 +1,4 @@ set -xe hugo cd ../0x90-ansible -rsync -avz -e 'ssh -F ssh_config' ../quellcode.0x90.space/public/* www:/var/www/quellcode.0x90.space +rsync -avz -e 'ssh -F ssh_config' ../quellcode.0x90.space/public/* www:/var/www/quellcode.0x90.space/2023/ diff --git a/themes/PaperMod/layouts/partials/templates/opengraph.html b/themes/PaperMod/layouts/partials/templates/opengraph.html index 9e8df14..f30961a 100644 --- a/themes/PaperMod/layouts/partials/templates/opengraph.html +++ b/themes/PaperMod/layouts/partials/templates/opengraph.html @@ -49,4 +49,4 @@ {{ end }}{{ end }} {{- /* Facebook Page Admin ID for Domain Insights */}} -{{- with site.Social.facebook_admin }}{{ end }} +{{- with site.Params.Social.facebook_admin }}{{ end }} diff --git a/themes/PaperMod/layouts/partials/templates/twitter_cards.html b/themes/PaperMod/layouts/partials/templates/twitter_cards.html index bd46e37..0efc545 100644 --- a/themes/PaperMod/layouts/partials/templates/twitter_cards.html +++ b/themes/PaperMod/layouts/partials/templates/twitter_cards.html @@ -28,6 +28,6 @@ {{- end }} -{{ with site.Social.twitter -}} +{{ with site.Params.Social.twitter -}} {{ end -}}