Browse Source

Neuer Post 20210613

master
Chris 5 years ago
parent
commit
11039d5087
  1. 18
      README.md
  2. BIN
      content/posts/20210613/images/20210613-111912-IMG_7475.jpg
  3. BIN
      content/posts/20210613/images/20210613-115754-IMG_7476.JPG
  4. BIN
      content/posts/20210613/images/20210613-121120-IMG_7477.jpg
  5. BIN
      content/posts/20210613/images/20210613-122220-IMG_7478.JPG
  6. BIN
      content/posts/20210613/images/20210613-125009-IMG_7479.JPG
  7. BIN
      content/posts/20210613/images/20210613-125045-IMG_7480.JPG
  8. BIN
      content/posts/20210613/images/20210613-125055-IMG_7481.JPG
  9. BIN
      content/posts/20210613/images/20210613-125122-IMG_7482.JPG
  10. BIN
      content/posts/20210613/images/20210613-125350-IMG_7483.JPG
  11. BIN
      content/posts/20210613/images/20210613-132520-IMG_7484.JPG
  12. BIN
      content/posts/20210613/images/20210613-134349-IMG_7487.jpg
  13. BIN
      content/posts/20210613/images/20210613-140603-IMG_7488.JPG
  14. BIN
      content/posts/20210613/images/20210613-140626-IMG_7491.JPG
  15. BIN
      content/posts/20210613/images/20210613-140727-IMG_7493.JPG
  16. BIN
      content/posts/20210613/images/20210613-142512-IMG_7495.jpg
  17. BIN
      content/posts/20210613/images/20210613-142525-IMG_7496.JPG
  18. BIN
      content/posts/20210613/images/20210613-142529-IMG_7497.jpg
  19. BIN
      content/posts/20210613/images/20210613-142547-IMG_7498.JPG
  20. BIN
      content/posts/20210613/images/20210613-143009-IMG_7499.JPG
  21. BIN
      content/posts/20210613/images/20210613-144432-IMG_7501.jpg
  22. BIN
      content/posts/20210613/images/20210613-144437-IMG_7502.jpg
  23. BIN
      content/posts/20210613/images/20210613-144454-IMG_7503.JPG
  24. BIN
      content/posts/20210613/images/20210613-150904-IMG_7504.JPG
  25. BIN
      content/posts/20210613/images/20210613-150915-IMG_7505.JPG
  26. BIN
      content/posts/20210613/images/20210613-151003-IMG_7506.JPG
  27. BIN
      content/posts/20210613/images/20210613-151009-IMG_7507.JPG
  28. BIN
      content/posts/20210613/images/20210613-152248-IMG_7510.JPG
  29. BIN
      content/posts/20210613/images/20210613-154615-IMG_7511.JPG
  30. BIN
      content/posts/20210613/images/20210613-160652-IMG_7513.jpg
  31. BIN
      content/posts/20210613/images/20210613-171512-IMG_7514.JPG
  32. BIN
      content/posts/20210613/images/20210613-183644-IMG_8946.JPG
  33. 136
      content/posts/20210613/index.md
  34. 137
      content/posts/20210613/~index.md
  35. 2
      redaktion/requirements.txt

18
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.:

BIN
content/posts/20210613/images/20210613-111912-IMG_7475.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 295 KiB

BIN
content/posts/20210613/images/20210613-115754-IMG_7476.JPG

Binary file not shown.

After

Width:  |  Height:  |  Size: 354 KiB

BIN
content/posts/20210613/images/20210613-121120-IMG_7477.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 316 KiB

BIN
content/posts/20210613/images/20210613-122220-IMG_7478.JPG

Binary file not shown.

After

Width:  |  Height:  |  Size: 317 KiB

BIN
content/posts/20210613/images/20210613-125009-IMG_7479.JPG

Binary file not shown.

After

Width:  |  Height:  |  Size: 338 KiB

BIN
content/posts/20210613/images/20210613-125045-IMG_7480.JPG

Binary file not shown.

After

Width:  |  Height:  |  Size: 312 KiB

BIN
content/posts/20210613/images/20210613-125055-IMG_7481.JPG

Binary file not shown.

After

Width:  |  Height:  |  Size: 310 KiB

BIN
content/posts/20210613/images/20210613-125122-IMG_7482.JPG

Binary file not shown.

After

Width:  |  Height:  |  Size: 310 KiB

BIN
content/posts/20210613/images/20210613-125350-IMG_7483.JPG

Binary file not shown.

After

Width:  |  Height:  |  Size: 405 KiB

BIN
content/posts/20210613/images/20210613-132520-IMG_7484.JPG

Binary file not shown.

After

Width:  |  Height:  |  Size: 351 KiB

BIN
content/posts/20210613/images/20210613-134349-IMG_7487.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 166 KiB

BIN
content/posts/20210613/images/20210613-140603-IMG_7488.JPG

Binary file not shown.

After

Width:  |  Height:  |  Size: 140 KiB

BIN
content/posts/20210613/images/20210613-140626-IMG_7491.JPG

Binary file not shown.

After

Width:  |  Height:  |  Size: 155 KiB

BIN
content/posts/20210613/images/20210613-140727-IMG_7493.JPG

Binary file not shown.

After

Width:  |  Height:  |  Size: 175 KiB

BIN
content/posts/20210613/images/20210613-142512-IMG_7495.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 386 KiB

BIN
content/posts/20210613/images/20210613-142525-IMG_7496.JPG

Binary file not shown.

After

Width:  |  Height:  |  Size: 306 KiB

BIN
content/posts/20210613/images/20210613-142529-IMG_7497.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 353 KiB

BIN
content/posts/20210613/images/20210613-142547-IMG_7498.JPG

Binary file not shown.

After

Width:  |  Height:  |  Size: 291 KiB

BIN
content/posts/20210613/images/20210613-143009-IMG_7499.JPG

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

BIN
content/posts/20210613/images/20210613-144432-IMG_7501.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 368 KiB

BIN
content/posts/20210613/images/20210613-144437-IMG_7502.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 366 KiB

BIN
content/posts/20210613/images/20210613-144454-IMG_7503.JPG

Binary file not shown.

After

Width:  |  Height:  |  Size: 309 KiB

BIN
content/posts/20210613/images/20210613-150904-IMG_7504.JPG

Binary file not shown.

After

Width:  |  Height:  |  Size: 289 KiB

BIN
content/posts/20210613/images/20210613-150915-IMG_7505.JPG

Binary file not shown.

After

Width:  |  Height:  |  Size: 300 KiB

BIN
content/posts/20210613/images/20210613-151003-IMG_7506.JPG

Binary file not shown.

After

Width:  |  Height:  |  Size: 272 KiB

BIN
content/posts/20210613/images/20210613-151009-IMG_7507.JPG

Binary file not shown.

After

Width:  |  Height:  |  Size: 369 KiB

BIN
content/posts/20210613/images/20210613-152248-IMG_7510.JPG

Binary file not shown.

After

Width:  |  Height:  |  Size: 390 KiB

BIN
content/posts/20210613/images/20210613-154615-IMG_7511.JPG

Binary file not shown.

After

Width:  |  Height:  |  Size: 321 KiB

BIN
content/posts/20210613/images/20210613-160652-IMG_7513.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 339 KiB

BIN
content/posts/20210613/images/20210613-171512-IMG_7514.JPG

Binary file not shown.

After

Width:  |  Height:  |  Size: 214 KiB

BIN
content/posts/20210613/images/20210613-183644-IMG_8946.JPG

Binary file not shown.

After

Width:  |  Height:  |  Size: 280 KiB

136
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 <YYYY>, 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...
<!--more-->

137
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 <YYYY>, 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:
---
<!--more-->

2
redaktion/requirements.txt

@ -1,2 +1,2 @@
Pillow==7.2.0
Pillow==8.2.0
PyYAML==5.3.1

Loading…
Cancel
Save