From b32db4a4ef3f73537d5fa7321406e6a9f734efed Mon Sep 17 00:00:00 2001 From: Lars Kruse Date: Mon, 1 May 2023 14:34:25 +0200 Subject: [PATCH] Binde Theme als git-submodule ein --- .gitignore | 1 - .gitmodules | 3 +++ README.md | 10 +++++++++- themes/hugo-geekdoc | 1 + 4 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 .gitmodules create mode 160000 themes/hugo-geekdoc diff --git a/.gitignore b/.gitignore index ae057c1..78b87b7 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,3 @@ public/ -themes/* resources/_gen .hugo_build.lock diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..ebf5633 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "themes/hugo-geekdoc"] + path = themes/hugo-geekdoc + url = ./hugo-theme-hilfe.git diff --git a/README.md b/README.md index 90b0f87..23b5df2 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,10 @@ Die sind die systemausfall.org-[Hilfeseiten](https://hilfe.systemausfall.org). # Lokales Bearbeiten - Klone dieses Repository -- Klone das [Theme](https://git.systemausfall.org/systemausfall.org/hugo-theme-hilfe) nach `themes/hugo-geekdoc` +- Klone das [Theme](https://git.systemausfall.org/systemausfall.org/hugo-theme-hilfe) nach `themes/hugo-geekdoc`: + ```shell + git submodule update --init + ``` # Änderungen veröffentlichen @@ -18,3 +21,8 @@ Die sind die systemausfall.org-[Hilfeseiten](https://hilfe.systemausfall.org). ```Shell scp -r public/ hosting.sao:/data/webserver/hilfe.systemausfall.org ``` + +# Theme anpassen + +1. Änderungen im Theme (in `themes/hugo-geekdoc/`) vornehmen, committen und pushen +1. referenzierten git-submodule-Commit aktualisieren (`git add`) und committen diff --git a/themes/hugo-geekdoc b/themes/hugo-geekdoc new file mode 160000 index 0000000..77c48b3 --- /dev/null +++ b/themes/hugo-geekdoc @@ -0,0 +1 @@ +Subproject commit 77c48b365021ebd8166723862e6e5e1c4c5998fa