Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cdc304e9d8 | ||
|
|
11039d5087 |
@@ -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.:
|
||||
|
||||
|
||||
|
After Width: | Height: | Size: 295 KiB |
|
After Width: | Height: | Size: 354 KiB |
|
After Width: | Height: | Size: 316 KiB |
|
After Width: | Height: | Size: 317 KiB |
|
After Width: | Height: | Size: 338 KiB |
|
After Width: | Height: | Size: 312 KiB |
|
After Width: | Height: | Size: 310 KiB |
|
After Width: | Height: | Size: 310 KiB |
|
After Width: | Height: | Size: 405 KiB |
|
After Width: | Height: | Size: 351 KiB |
|
After Width: | Height: | Size: 166 KiB |
|
After Width: | Height: | Size: 140 KiB |
|
After Width: | Height: | Size: 155 KiB |
|
After Width: | Height: | Size: 175 KiB |
|
After Width: | Height: | Size: 386 KiB |
|
After Width: | Height: | Size: 306 KiB |
|
After Width: | Height: | Size: 353 KiB |
|
After Width: | Height: | Size: 291 KiB |
|
After Width: | Height: | Size: 64 KiB |
|
After Width: | Height: | Size: 368 KiB |
|
After Width: | Height: | Size: 366 KiB |
|
After Width: | Height: | Size: 309 KiB |
|
After Width: | Height: | Size: 289 KiB |
|
After Width: | Height: | Size: 300 KiB |
|
After Width: | Height: | Size: 272 KiB |
|
After Width: | Height: | Size: 369 KiB |
|
After Width: | Height: | Size: 390 KiB |
|
After Width: | Height: | Size: 321 KiB |
|
After Width: | Height: | Size: 339 KiB |
|
After Width: | Height: | Size: 214 KiB |
|
After Width: | Height: | Size: 280 KiB |
@@ -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-->
|
||||
@@ -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-->
|
||||
@@ -1,2 +1,2 @@
|
||||
Pillow==7.2.0
|
||||
Pillow==8.2.0
|
||||
PyYAML==5.3.1
|
||||
|
||||