diff --git a/README.md b/README.md index ffc35cf..a52c478 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ Dieses Repository beinhaltet den Content der Website sowie zum Editieren benöti Wie man dagegen die Website entwickelt, wird im Repository [kollegen-hugo](https://kollegen.uber.space/gitea/kollegenrunde/kollegen-hugo) beschrieben. -Generell wirdf ein Post editiert, indem man Hugo lokal ausführt und die Änderung testet und die Änderung dann commitet. Mit dem Push ins Kollegen-Gitea wird die Website dann dort neu generiert. +Generell werden ein Post editiert, in man lokal Hugo lokal ausführt und die Änderung testet und die Änderung commitet. Mit dem Push ins Kollegen-Gitea wird die Website dann dort neu generiert. Für kleine und rein textuelle Änderungen können auch direkt im Gitea-Repository durchgeführt werden, ohne lokale Installation. Da diese Änderung direkt produktiv wird, sollte man hierbei wissen, was man tut. @@ -20,10 +20,10 @@ Das Setup ist das gleiche, wie bei der Web-Entwicklung. Es wird ein leeres Verze >$ mkdir ~/kred >$ cd ~/kred ->$ wget https://github.com/gohugoio/hugo/releases/download/v0.83.1/hugo_0.83.1_Linux-64bit.tar.gz +>$ wget https://github.com/gohugoio/hugo/releases/download/v0.76.4/hugo_0.76.4_Linux-64bit.tar.gz >$ mkdir hugo ->$ tar -xvf hugo_0.83.1_Linux-64bit.tar.gz --directory hugo ->$ rm hugo_0.83.1_Linux-64bit.tar.gz +>$ tar -xvf hugo_0.76.4_Linux-64bit.tar.gz --directory hugo +>$ rm hugo_0.76.4_Linux-64bit.tar.gz >$ git clone --recurse-submodules https://kollegen.uber.space/gitea/kollegenrunde/kollegen-hugo.git >$ git clone https://kollegen.uber.space/gitea/kollegenrunde/kollegen-posts.git @@ -35,7 +35,7 @@ Für Python wird nun noch die virtual Environment in einem neuen Unterverzeichni >(.venv) $ pip install -r requirements.txt # Benötigte Paket installieren >$ deactivate # venv verlassen -Hinweis: Die venv wird nicht in git eingecheckt, deshalb muss sie mit jeder Neuinstallation eingerichtet werden. +Hinweis: Die venv wird nicht in git eingeheckt, deshalb muss sie mit jeder Neuinstallation eingerichtet werden. Damit ist die Installation abgeschlossen. Es werden nun einzelne Schritte der redaktionellen Arbeit erläutert. @@ -55,10 +55,9 @@ Das Python-Skript vereinfacht Erstellung und Bearbeitung eines Posts. Im Verzeic Das Skript setzt das Unterverzeichnis in/posts voraus. Falls nicht vorhanden: ->$ mkdir ~/kred/kollegen-posts/redaktion/in ->$ mkdir ~/kred/kollegen-posts/redaktion/in/posts +>$ mkdir ~/kred/kollegen-posts/in && ~/kred/kollegen-posts/in/posts -Anlegen eines neuen Posts (auch Bearbeiten eines existierenden Posts) +Anlegen neuen Posts (auch Bearbeiten eines existierenden Posts) >$ cd ~/kred/kollegen-posts/redaktion >$ .venv/bin/python red.py init 20160216 >Existing in path found. Put your original images here: 'in/posts/20160216' @@ -67,9 +66,8 @@ Anlegen eines neuen Posts (auch Bearbeiten eines existierenden Posts) >Image directory created: 'images' >The next step would be to add your images into the 'in/posts/20160216' directory. After that you can update the post directory '../content/posts/20160216' and the post file 'index.md': call 'update'. -Damit werden die Verzeichnis ~/kred/kollegen-posts/redaktion/in/posts/20160216 und ~/kred/kollegen-posts/content/posts/20160216 angelegt (falls nicht vorhanden) und die Datei index.md initialisiert. Der Post ist nun initialisiert. -Erfolgskontrolle: Neue Webseite ist erreichbar unter http://localhost:1313/kollegenrunde/posts/2016/tour-2016-02-16/ +Damit werden die Verzeichnis ~/kred/kollegen-posts/redaktion/in/posts/20160216 und ~/kred/kollegen-posts/content/posts/20160216 angelegt (falls nicht vorhanden) und die Datei index.md initialisiert. Der Post ist nun initialisiert. Nun können eigenen Bilder in Originalgröße abgelegt werden, z. B.: diff --git a/content/posts/20210613/images/20210613-111912-IMG_7475.jpg b/content/posts/20210613/images/20210613-111912-IMG_7475.jpg new file mode 100644 index 0000000..e3c38a1 Binary files /dev/null and b/content/posts/20210613/images/20210613-111912-IMG_7475.jpg differ diff --git a/content/posts/20210613/images/20210613-115754-IMG_7476.JPG b/content/posts/20210613/images/20210613-115754-IMG_7476.JPG new file mode 100644 index 0000000..3cdf187 Binary files /dev/null and b/content/posts/20210613/images/20210613-115754-IMG_7476.JPG differ diff --git a/content/posts/20210613/images/20210613-121120-IMG_7477.jpg b/content/posts/20210613/images/20210613-121120-IMG_7477.jpg new file mode 100644 index 0000000..545ccd2 Binary files /dev/null and b/content/posts/20210613/images/20210613-121120-IMG_7477.jpg differ diff --git a/content/posts/20210613/images/20210613-122220-IMG_7478.JPG b/content/posts/20210613/images/20210613-122220-IMG_7478.JPG new file mode 100644 index 0000000..484e0c2 Binary files /dev/null and b/content/posts/20210613/images/20210613-122220-IMG_7478.JPG differ diff --git a/content/posts/20210613/images/20210613-125009-IMG_7479.JPG b/content/posts/20210613/images/20210613-125009-IMG_7479.JPG new file mode 100644 index 0000000..91646ab Binary files /dev/null and b/content/posts/20210613/images/20210613-125009-IMG_7479.JPG differ diff --git a/content/posts/20210613/images/20210613-125045-IMG_7480.JPG b/content/posts/20210613/images/20210613-125045-IMG_7480.JPG new file mode 100644 index 0000000..878b667 Binary files /dev/null and b/content/posts/20210613/images/20210613-125045-IMG_7480.JPG differ diff --git a/content/posts/20210613/images/20210613-125055-IMG_7481.JPG b/content/posts/20210613/images/20210613-125055-IMG_7481.JPG new file mode 100644 index 0000000..ab9ce96 Binary files /dev/null and b/content/posts/20210613/images/20210613-125055-IMG_7481.JPG differ diff --git a/content/posts/20210613/images/20210613-125122-IMG_7482.JPG b/content/posts/20210613/images/20210613-125122-IMG_7482.JPG new file mode 100644 index 0000000..c0ddb86 Binary files /dev/null and b/content/posts/20210613/images/20210613-125122-IMG_7482.JPG differ diff --git a/content/posts/20210613/images/20210613-125350-IMG_7483.JPG b/content/posts/20210613/images/20210613-125350-IMG_7483.JPG new file mode 100644 index 0000000..ccbfd79 Binary files /dev/null and b/content/posts/20210613/images/20210613-125350-IMG_7483.JPG differ diff --git a/content/posts/20210613/images/20210613-132520-IMG_7484.JPG b/content/posts/20210613/images/20210613-132520-IMG_7484.JPG new file mode 100644 index 0000000..6812a40 Binary files /dev/null and b/content/posts/20210613/images/20210613-132520-IMG_7484.JPG differ diff --git a/content/posts/20210613/images/20210613-134349-IMG_7487.jpg b/content/posts/20210613/images/20210613-134349-IMG_7487.jpg new file mode 100644 index 0000000..900df84 Binary files /dev/null and b/content/posts/20210613/images/20210613-134349-IMG_7487.jpg differ diff --git a/content/posts/20210613/images/20210613-140603-IMG_7488.JPG b/content/posts/20210613/images/20210613-140603-IMG_7488.JPG new file mode 100644 index 0000000..ae682e9 Binary files /dev/null and b/content/posts/20210613/images/20210613-140603-IMG_7488.JPG differ diff --git a/content/posts/20210613/images/20210613-140626-IMG_7491.JPG b/content/posts/20210613/images/20210613-140626-IMG_7491.JPG new file mode 100644 index 0000000..fe97d7a Binary files /dev/null and b/content/posts/20210613/images/20210613-140626-IMG_7491.JPG differ diff --git a/content/posts/20210613/images/20210613-140727-IMG_7493.JPG b/content/posts/20210613/images/20210613-140727-IMG_7493.JPG new file mode 100644 index 0000000..ec6cd97 Binary files /dev/null and b/content/posts/20210613/images/20210613-140727-IMG_7493.JPG differ diff --git a/content/posts/20210613/images/20210613-142512-IMG_7495.jpg b/content/posts/20210613/images/20210613-142512-IMG_7495.jpg new file mode 100644 index 0000000..18a57f8 Binary files /dev/null and b/content/posts/20210613/images/20210613-142512-IMG_7495.jpg differ diff --git a/content/posts/20210613/images/20210613-142525-IMG_7496.JPG b/content/posts/20210613/images/20210613-142525-IMG_7496.JPG new file mode 100644 index 0000000..3c585c2 Binary files /dev/null and b/content/posts/20210613/images/20210613-142525-IMG_7496.JPG differ diff --git a/content/posts/20210613/images/20210613-142529-IMG_7497.jpg b/content/posts/20210613/images/20210613-142529-IMG_7497.jpg new file mode 100644 index 0000000..0cf7b1a Binary files /dev/null and b/content/posts/20210613/images/20210613-142529-IMG_7497.jpg differ diff --git a/content/posts/20210613/images/20210613-142547-IMG_7498.JPG b/content/posts/20210613/images/20210613-142547-IMG_7498.JPG new file mode 100644 index 0000000..4550215 Binary files /dev/null and b/content/posts/20210613/images/20210613-142547-IMG_7498.JPG differ diff --git a/content/posts/20210613/images/20210613-143009-IMG_7499.JPG b/content/posts/20210613/images/20210613-143009-IMG_7499.JPG new file mode 100644 index 0000000..4867a73 Binary files /dev/null and b/content/posts/20210613/images/20210613-143009-IMG_7499.JPG differ diff --git a/content/posts/20210613/images/20210613-144432-IMG_7501.jpg b/content/posts/20210613/images/20210613-144432-IMG_7501.jpg new file mode 100644 index 0000000..d1fd4b1 Binary files /dev/null and b/content/posts/20210613/images/20210613-144432-IMG_7501.jpg differ diff --git a/content/posts/20210613/images/20210613-144437-IMG_7502.jpg b/content/posts/20210613/images/20210613-144437-IMG_7502.jpg new file mode 100644 index 0000000..f7df960 Binary files /dev/null and b/content/posts/20210613/images/20210613-144437-IMG_7502.jpg differ diff --git a/content/posts/20210613/images/20210613-144454-IMG_7503.JPG b/content/posts/20210613/images/20210613-144454-IMG_7503.JPG new file mode 100644 index 0000000..aedc006 Binary files /dev/null and b/content/posts/20210613/images/20210613-144454-IMG_7503.JPG differ diff --git a/content/posts/20210613/images/20210613-150904-IMG_7504.JPG b/content/posts/20210613/images/20210613-150904-IMG_7504.JPG new file mode 100644 index 0000000..623e7f9 Binary files /dev/null and b/content/posts/20210613/images/20210613-150904-IMG_7504.JPG differ diff --git a/content/posts/20210613/images/20210613-150915-IMG_7505.JPG b/content/posts/20210613/images/20210613-150915-IMG_7505.JPG new file mode 100644 index 0000000..23889b6 Binary files /dev/null and b/content/posts/20210613/images/20210613-150915-IMG_7505.JPG differ diff --git a/content/posts/20210613/images/20210613-151003-IMG_7506.JPG b/content/posts/20210613/images/20210613-151003-IMG_7506.JPG new file mode 100644 index 0000000..b81a8a1 Binary files /dev/null and b/content/posts/20210613/images/20210613-151003-IMG_7506.JPG differ diff --git a/content/posts/20210613/images/20210613-151009-IMG_7507.JPG b/content/posts/20210613/images/20210613-151009-IMG_7507.JPG new file mode 100644 index 0000000..fe4bb11 Binary files /dev/null and b/content/posts/20210613/images/20210613-151009-IMG_7507.JPG differ diff --git a/content/posts/20210613/images/20210613-152248-IMG_7510.JPG b/content/posts/20210613/images/20210613-152248-IMG_7510.JPG new file mode 100644 index 0000000..7551574 Binary files /dev/null and b/content/posts/20210613/images/20210613-152248-IMG_7510.JPG differ diff --git a/content/posts/20210613/images/20210613-154615-IMG_7511.JPG b/content/posts/20210613/images/20210613-154615-IMG_7511.JPG new file mode 100644 index 0000000..4d26de1 Binary files /dev/null and b/content/posts/20210613/images/20210613-154615-IMG_7511.JPG differ diff --git a/content/posts/20210613/images/20210613-160652-IMG_7513.jpg b/content/posts/20210613/images/20210613-160652-IMG_7513.jpg new file mode 100644 index 0000000..4df1020 Binary files /dev/null and b/content/posts/20210613/images/20210613-160652-IMG_7513.jpg differ diff --git a/content/posts/20210613/images/20210613-171512-IMG_7514.JPG b/content/posts/20210613/images/20210613-171512-IMG_7514.JPG new file mode 100644 index 0000000..838a1de Binary files /dev/null and b/content/posts/20210613/images/20210613-171512-IMG_7514.JPG differ diff --git a/content/posts/20210613/images/20210613-183644-IMG_8946.JPG b/content/posts/20210613/images/20210613-183644-IMG_8946.JPG new file mode 100644 index 0000000..0149e8f Binary files /dev/null and b/content/posts/20210613/images/20210613-183644-IMG_8946.JPG differ diff --git a/content/posts/20210613/index.md b/content/posts/20210613/index.md new file mode 100644 index 0000000..d9a99b8 --- /dev/null +++ b/content/posts/20210613/index.md @@ -0,0 +1,136 @@ +--- +# Set the correct title here +title: "Schöne Schölkrippe-Schleife" + +# Date of the event, will be set via script. Format like "2003-12-31" +date: 2021-06-13 + +# Year as , taken from date by the red.py script. Used for Years taxonomy, +# so be shure this matches the year from 'date' above. E.g. "2009" +years: 2021 + +# Set the correct sports kind here (single value) +# It's taxonomy term: look at existing posts, to find the valid values +sports: "MTB" + +# Set the correct event type here (single value) +# It's taxonomy term: look at existing posts, to find the valid values +eventtypes: "single" + +# Set the correct participants here (list values) +# It's taxonomy term: lLook at existing posts, to find the valid values. +# For new participants set "FirstName LastName" +# Unknown names have to be set as "Gast" +members: [ + "Peter", + "Gregor", + "Gerald", + "Christian" + ] + +# City name of start point +# It's taxonomy term: look at existing posts, to find the valid values +# If it's a new location: Take a simple city name +locations: "Meerholz" + +# false to hide it in production +draft: false + +# If one of the following values are not given, delete the default value +# Set the correct value here, Example 78.3 +distance_km: 62.0 +# Set the correct value here, Example 3:58:59 +duration_h: 4:02:21 +# Set the correct value here, Example 23.2 +average_speed_kmh: 15.4 +# Set the correct value here, Example 1234 +ascent_m: 1199 +# Set the correct value here, Example 24.2 +temperature_c: 21.8 + +# All image paths are relative paths and have to start with "images/" + +# Image for the summary list e.g. featured_image: images/img123.jpg. Can be empty. +featured_image: images/20210613-134349-IMG_7487.jpg + +# Set captions for specific images (optional) +# A caption item has two entries: -name: "images/IMAGE_NAME" and -text: "YOUR DESCRIPTION" +# Caption names will be generated by the script, add text or let it empty. +captions: +- name: images/20210613-111912-IMG_7475.jpg + text: '' +- name: images/20210613-115754-IMG_7476.JPG + text: '' +- name: images/20210613-121120-IMG_7477.jpg + text: '' +- name: images/20210613-122220-IMG_7478.JPG + text: '' +- name: images/20210613-125009-IMG_7479.JPG + text: '' +- name: images/20210613-125045-IMG_7480.JPG + text: '' +- name: images/20210613-125055-IMG_7481.JPG + text: '' +- name: images/20210613-125122-IMG_7482.JPG + text: '' +- name: images/20210613-125350-IMG_7483.JPG + text: '' +- name: images/20210613-132520-IMG_7484.JPG + text: '' +- name: images/20210613-134349-IMG_7487.jpg + text: '' +- name: images/20210613-140603-IMG_7488.JPG + text: '' +- name: images/20210613-140626-IMG_7491.JPG + text: '' +- name: images/20210613-140727-IMG_7493.JPG + text: '' +- name: images/20210613-142512-IMG_7495.jpg + text: '' +- name: images/20210613-142525-IMG_7496.JPG + text: '' +- name: images/20210613-142529-IMG_7497.jpg + text: '' +- name: images/20210613-142547-IMG_7498.JPG + text: '' +- name: images/20210613-143009-IMG_7499.JPG + text: '' +- name: images/20210613-144432-IMG_7501.jpg + text: '' +- name: images/20210613-144437-IMG_7502.jpg + text: '' +- name: images/20210613-144454-IMG_7503.JPG + text: '' +- name: images/20210613-150904-IMG_7504.JPG + text: '' +- name: images/20210613-150915-IMG_7505.JPG + text: '' +- name: images/20210613-151003-IMG_7506.JPG + text: '' +- name: images/20210613-151009-IMG_7507.JPG + text: '' +- name: images/20210613-152248-IMG_7510.JPG + text: '' +- name: images/20210613-154615-IMG_7511.JPG + text: '' +- name: images/20210613-160652-IMG_7513.jpg + text: '' +- name: images/20210613-171512-IMG_7514.JPG + text: '' +- name: images/20210613-183644-IMG_8946.JPG + text: '' + +# Should not be changed +# Be careful: src value must be unique +resources: + - src: images/** + +# Links to activity on social platforms +# Example velohero_activity: https://app.velohero.com/activity/364363 +# velohero_activity: +# strava_activity: + +--- +Gelockerter Lockdown lockt in die Downhills... + + diff --git a/content/posts/20210613/~index.md b/content/posts/20210613/~index.md new file mode 100644 index 0000000..ae73c77 --- /dev/null +++ b/content/posts/20210613/~index.md @@ -0,0 +1,137 @@ +--- +# Set the correct title here +title: "Tour 2021-06-13" + +# Date of the event, will be set via script. Format like "2003-12-31" +date: 2021-06-13 + +# Year as , taken from date by the red.py script. Used for Years taxonomy, +# so be shure this matches the year from 'date' above. E.g. "2009" +years: 2021 + +# Set the correct sports kind here (single value) +# It's taxonomy term: look at existing posts, to find the valid values +sports: "MTB" + +# Set the correct event type here (single value) +# It's taxonomy term: look at existing posts, to find the valid values +eventtypes: "single" + +# Set the correct participants here (list values) +# It's taxonomy term: lLook at existing posts, to find the valid values. +# For new participants set "FirstName LastName" +# Unknown names have to be set as "Gast" +members: [ + "Peter", + "Gregor", + "Edmund", + "Gerald", + "Christian" + ] + +# City name of start point +# It's taxonomy term: look at existing posts, to find the valid values +# If it's a new location: Take a simple city name +locations: "Somewhere" + +# false to hide it in production +draft: false + +# If one of the following values are not given, delete the default value +# Set the correct value here, Example 78.3 +distance_km: 0.0 +# Set the correct value here, Example 3:58:59 +duration_h: 0:00:00 +# Set the correct value here, Example 23.2 +average_speed_kmh: 0 +# Set the correct value here, Example 1234 +ascent_m: 0 +# Set the correct value here, Example 24.2 +temperature_c: + +# All image paths are relative paths and have to start with "images/" + +# Image for the summary list e.g. featured_image: images/img123.jpg. Can be empty. +featured_image: + +# Set captions for specific images (optional) +# A caption item has two entries: -name: "images/IMAGE_NAME" and -text: "YOUR DESCRIPTION" +# Caption names will be generated by the script, add text or let it empty. +captions: +- name: images/20210613-111912-IMG_7475.jpg + text: '' +- name: images/20210613-115754-IMG_7476.JPG + text: '' +- name: images/20210613-121120-IMG_7477.jpg + text: '' +- name: images/20210613-122220-IMG_7478.JPG + text: '' +- name: images/20210613-125009-IMG_7479.JPG + text: '' +- name: images/20210613-125045-IMG_7480.JPG + text: '' +- name: images/20210613-125055-IMG_7481.JPG + text: '' +- name: images/20210613-125122-IMG_7482.JPG + text: '' +- name: images/20210613-125350-IMG_7483.JPG + text: '' +- name: images/20210613-132520-IMG_7484.JPG + text: '' +- name: images/20210613-134349-IMG_7487.jpg + text: '' +- name: images/20210613-140603-IMG_7488.JPG + text: '' +- name: images/20210613-140626-IMG_7491.JPG + text: '' +- name: images/20210613-140727-IMG_7493.JPG + text: '' +- name: images/20210613-142512-IMG_7495.jpg + text: '' +- name: images/20210613-142525-IMG_7496.JPG + text: '' +- name: images/20210613-142529-IMG_7497.jpg + text: '' +- name: images/20210613-142547-IMG_7498.JPG + text: '' +- name: images/20210613-143009-IMG_7499.JPG + text: '' +- name: images/20210613-144432-IMG_7501.jpg + text: '' +- name: images/20210613-144437-IMG_7502.jpg + text: '' +- name: images/20210613-144454-IMG_7503.JPG + text: '' +- name: images/20210613-150904-IMG_7504.JPG + text: '' +- name: images/20210613-150915-IMG_7505.JPG + text: '' +- name: images/20210613-151003-IMG_7506.JPG + text: '' +- name: images/20210613-151009-IMG_7507.JPG + text: '' +- name: images/20210613-152248-IMG_7510.JPG + text: '' +- name: images/20210613-154615-IMG_7511.JPG + text: '' +- name: images/20210613-160652-IMG_7513.jpg + text: '' +- name: images/20210613-171512-IMG_7514.JPG + text: '' +- name: images/20210613-183544-IMG_8942.JPG + text: '' + +# Should not be changed +# Be careful: src value must be unique +resources: + - src: images/** + +# Links to activity on social platforms +# Example velohero_activity: https://app.velohero.com/activity/364363 +# velohero_activity: +# strava_activity: + +--- + + + diff --git a/redaktion/requirements.txt b/redaktion/requirements.txt index e3af201..344698e 100644 --- a/redaktion/requirements.txt +++ b/redaktion/requirements.txt @@ -1,2 +1,2 @@ -Pillow==7.2.0 +Pillow==8.2.0 PyYAML==5.3.1