Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d1d6a60aa3 | ||
|
|
8717ff83a7 | ||
|
|
9d0754e45c | ||
|
|
8b2dea6ffd | ||
|
|
65b88b6885 | ||
|
|
24b917629c | ||
|
|
3b1797061e | ||
|
|
ed28d29e9b | ||
|
|
162e87b9ca | ||
|
|
65791c68cb | ||
|
|
846e7132a4 | ||
|
|
221f067d64 | ||
|
|
249f5ee69c | ||
|
|
9d70193ebb | ||
|
|
91efca62cd | ||
|
|
f25b5ea0a8 | ||
|
|
3976984458 | ||
|
|
9c739fc0e5 | ||
|
|
5986899c43 | ||
|
|
2864a34525 | ||
|
|
e0437f7164 | ||
|
|
ca65e84af8 | ||
|
|
eaba241b14 | ||
|
|
99fded6896 | ||
|
|
f17d03dfe2 | ||
|
|
75bdd4e384 | ||
|
|
8eacfe70a6 | ||
|
|
782f4498e8 | ||
|
|
febcc25042 | ||
|
|
3e54d30fa1 | ||
|
|
1e5a0c5b00 | ||
|
|
40391ebb6a | ||
|
|
10941c4f5e | ||
|
|
b3e3ffbf8c | ||
|
|
c56437ebcc | ||
|
|
be2981c72b | ||
|
|
48c7322ad8 | ||
|
|
6a37363d91 | ||
|
|
629055175d | ||
|
|
47bc5d1511 | ||
|
|
40f675f140 | ||
|
|
d2f512e1b8 | ||
|
|
16dfa17e6b | ||
|
|
a65fb5f08b | ||
|
|
7495a69a0e | ||
|
|
5b8db806b0 | ||
|
|
745d843805 | ||
|
|
c7ccf854d2 | ||
|
|
ddc78f84d2 | ||
|
|
05837da29a | ||
|
|
93a9e047b3 | ||
|
|
231f29750e | ||
|
|
b077210333 | ||
|
|
47233847c4 | ||
|
|
abecc928e1 | ||
|
|
159d6cc963 | ||
|
|
6dae15cb92 | ||
|
|
cdc0c50e83 | ||
|
|
44650eab47 | ||
|
|
079b7b7c2b | ||
|
|
3d225a0e9a | ||
|
|
01d8c85d57 | ||
|
|
d1e9771146 |
@@ -0,0 +1,3 @@
|
||||
/public/
|
||||
/resources/_gen/
|
||||
*.lock
|
||||
@@ -1,21 +1,4 @@
|
||||
MIT License
|
||||
CREATIVE COMMONS BY 4.0
|
||||
|
||||
Copyright (c) 2020 Christian Schulzendorff
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
Creative Commons Namensnennung 4.0 International Lizenz
|
||||
http://creativecommons.org/licenses/by/4.0/
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
Die Kolleenrunden-Website besteht aus statischen Webseiten, die mittels dem Hugo-Framwork generiert werden. Es gibt zwei Repositories: kollegen-posts für die Inhalte der Blog-Beiträge und kollegen-hugo, was die Generierungsgrundlage beinhaltet. Um redaktionell mitzubloggen, benötigt man nur das Posts- Repository. Die Anleitung dazu findet man [dort](https://kollegen.uber.space/gitea/kollegenrunde/kollegen-posts.git).
|
||||
|
||||
Diese Repository wird für Website-Bearbeitung benötigt, was im Folgenden beschrieben ist.
|
||||
Dieses Repository wird für Website-Bearbeitung benötigt, was im Folgenden beschrieben ist.
|
||||
|
||||
## Lokales Setup
|
||||
|
||||
@@ -16,44 +16,159 @@ Voraussetzungen:
|
||||
|
||||
Die Installation kann in einem beliebigen Verzeichnis erfolgen, wir nehmen ~/kred und installieren dort das aktuelle Hugo-Release und das kollegen-hugo/Repository, jeweils in ein Unterverzeichnis:
|
||||
|
||||
>$ mkdir ~/kred
|
||||
>$ cd ~/kred
|
||||
>$ mkdir hugo
|
||||
```console
|
||||
$ mkdir ~/kred
|
||||
$ cd ~/kred
|
||||
$ mkdir hugo
|
||||
```
|
||||
|
||||
### Hugo-Release installieren
|
||||
|
||||
Das aktuelles hugo-Release für seine Zielplattform findet man auf gitHub: [https://github.com/gohugoio/hugo/releases/latest].
|
||||
Das aktuelles hugo-Release für seine Zielplattform findet man auf gitHub: [https://github.com/gohugoio/hugo/releases/latest] (die extended Version wird nicht benötigt).
|
||||
|
||||
Wenn das aktuelle Hugo-Relase 0.76.4 ist, gilt für Linux:
|
||||
>$ wget https://github.com/gohugoio/hugo/releases/download/v0.76.4/hugo_0.76.4_Linux-64bit.tar.gz
|
||||
> ...
|
||||
> hugo_0.76.4_Linux-64bit.tar. 100%[============================================>] 13,31M 1,54MB/s in 25s
|
||||
> 2020-10-13 21:09:43 (547 KB/s) - »hugo_0.76.4_Linux-64bit.tar.gz« gespeichert [13953675/13953675]
|
||||
>
|
||||
>$ tar -xvf hugo_0.76.4_Linux-64bit.tar.gz --directory hugo
|
||||
>$ rm hugo_0.76.4_Linux-64bit.tar.gz
|
||||
Wenn das aktuelle Hugo-Relase 0.78.1 ist, gilt für Linux:
|
||||
|
||||
```console
|
||||
$ wget https://github.com/gohugoio/hugo/releases/download/v0.78.1/hugo_0.78.1_Linux-64bit.tar.gz
|
||||
...
|
||||
hugo_0.78.1_Linux-64bit.tar. 100%[============================================>] 13,31M 1,54MB/s in 25s
|
||||
2020-10-13 21:09:43 (547 KB/s) - »hugo_0.78.1_Linux-64bit.tar.gz« gespeichert [13953675/13953675]
|
||||
$ tar -xvf hugo_0.78.1_Linux-64bit.tar.gz --directory hugo
|
||||
$ rm hugo_0.78.1_Linux-64bit.tar.gz
|
||||
```
|
||||
|
||||
Nach erfolgreicher Installation sollte Hugo seine Version ausgeben können:
|
||||
|
||||
>$ hugo/hugo version
|
||||
> Hugo Static Site Generator v0.76.4-50DFE40B linux/amd64 BuildDate: 2020-10-12T08:36:20Z
|
||||
```console
|
||||
$ hugo/hugo version
|
||||
Hugo Static Site Generator v0.78.1-347F2DE6 linux/amd64 BuildDate: 2020-11-05T09:39:06Z
|
||||
```
|
||||
|
||||
|
||||
### Web-Repository holen
|
||||
|
||||
Das Repository wird geklont und installiert sich im Unterverzeichnis:
|
||||
|
||||
> git clone https://kollegen.uber.space/gitea/kollegenrunde/kollegen-hugo.git
|
||||
> ls kollegen-hugo
|
||||
> archetypes config.toml data layouts LICENSE README.md resources static themes
|
||||
```console
|
||||
$ git clone --recurse-submodules https://kollegen.uber.space/gitea/kollegenrunde/kollegen-hugo.git
|
||||
$ ls kollegen-hugo
|
||||
archetypes config.toml data layouts LICENSE README.md resources static themes
|
||||
```
|
||||
|
||||
Als Theme wird Ananke verwendet. Dieses wurde einmalig als Submodul eingebunden:
|
||||
Als Theme wird Ananke verwendet (wurde einmalig als Submodul eingebunden mit 'git submodule add https://github.com/budparr/gohugo-theme-ananke.git themes/ananke').
|
||||
|
||||
> git submodule add https://github.com/budparr/gohugo-theme-ananke.git themes/ananke
|
||||
|
||||
### Content/Repository holen (Posts)
|
||||
|
||||
Für die Post-Bearbeitung und ggf. auch zur Web-Entwicklung benötigt man noch den Content. Dieses Repository wird neben das Web-Repository installiert:
|
||||
|
||||
> git clone https://kollegen.uber.space/gitea/kollegenrunde/kollegen-posts.git
|
||||
```console
|
||||
$ git clone https://kollegen.uber.space/gitea/kollegenrunde/kollegen-posts.git
|
||||
```
|
||||
|
||||
Damit ist das Setup abgeschlossen.
|
||||
|
||||
## Setup des Servers auf uberspace
|
||||
|
||||
Die Pflege des Servers erfolgt über ssh:
|
||||
|
||||
```console
|
||||
$ ssh kollegen@despina.uberspace.de
|
||||
Password:
|
||||
...
|
||||
[kollegen@despina ~]$
|
||||
```
|
||||
|
||||
### Subdomain
|
||||
|
||||
Die Seite soll unter der Subdomain `kollegenrunde.kollegen.uber.space` erreichbar sein (und nicht unter kollegen.uber.space/kollegenrunde). Der Grund liegt darin, dass Hugo problemlos generiert, wenn seine Base-URL kein Unterverzeichnis hat.
|
||||
|
||||
Einrichten der Subdomain:
|
||||
|
||||
```console
|
||||
[kollegen@despina ~]$ uberspace web domain add kollegenrunde.kollegen.uber.space
|
||||
```
|
||||
|
||||
Der Webcontent für diese Subdomain muss in einem gleichnamigen Verzeichnis neben dem html-Verzeichnis liegen. Dieses wird per Skript `generate.sh` angelegt. Zum einfacheren Zugriff wird einmalig das leere Verzeichnis angelegt und ein symbolischer Link im Home-Verzeichnis erstellt:
|
||||
|
||||
```console
|
||||
[kollegen@despina ~]$ mkdir /var/www/virtual/kollegen/kollegenrunde.kollegen.uber.space
|
||||
[kollegen@despina ~]$ ln -s /var/www/virtual/kollegen/kollegenrunde.kollegen.uber.space ~/kollegenrunde.kollegen.uber.space
|
||||
```
|
||||
|
||||
|
||||
### Gitea
|
||||
|
||||
Wird im im Lab beschrieben installiert: (https://lab.uberspace.de/guide_gitea.html). Einzige Abweichung ist die Root-Url in der app.ini:
|
||||
|
||||
```console
|
||||
[kollegen@despina ~]$ cat gitea/custom/conf/app.ini | grep ROOT_URL
|
||||
ROOT_URL = https://%(DOMAIN)s/gitea/
|
||||
```
|
||||
|
||||
Im Gitea ist die Organisation 'kollegenrunde' mit den beiden Repositories kollegen-hugo und kollegen-posts anzulegen.
|
||||
|
||||
|
||||
### Hugo
|
||||
|
||||
Wird ebenfalls wie im Lab beschrieben installiert[^hugoguide]. Es wird lediglich ~/bin/hugo benötigt.
|
||||
|
||||
[^hugoguide]: https://lab.uberspace.de/guide_hugo.html
|
||||
|
||||
```console
|
||||
[kollegen@despina ~]$ wget https://github.com/gohugoio/hugo/releases/download/v0.117.0/hugo_0.117.0_Linux-64bit.tar.gz
|
||||
[kollegen@despina ~]$ tar -xvf hugo_0.117.0_Linux-64bit.tar.gz hugo
|
||||
[kollegen@despina ~]$ rm hugo_0.117.0_Linux-64bit.tar.gz
|
||||
[kollegen@despina ~]$ mv hugo ~/bin/
|
||||
[kollegen@despina ~]$ hugo version
|
||||
hugo v0.117.0-b2f0696cad918fb61420a6aff173eb36662b406e linux/amd64 BuildDate=2023-08-07T12:49:48Z VendorInfo=gohugoio
|
||||
```
|
||||
|
||||
|
||||
>**🛈 Hinweis**
|
||||
>Hugo wird auf dem Server für die Ausführung der Git-Hooks benötigt.
|
||||
|
||||
|
||||
Das Skript **generate.sh** zum automatischen Generieren beim git-update muss im Verzeichnis 'kollegengen' liegen. Das Skript ist aus dem Verzeichnis 'admin' des Repositories kollegen-hugo zu kopieren.
|
||||
|
||||
```console
|
||||
[kollegen@despina ~]$ mkdir ~/kollegengen
|
||||
[kollegen@despina ~]$ git clone https://kollegen.uber.space/gitea/kollegenrunde/kollegen-hugo.git ~/kollegengen/kollegen-hugo
|
||||
[kollegen@despina ~]$ cp ~/kollegengen/kollegen-hugo/admin/generate.sh ~/kollegengen/
|
||||
```
|
||||
|
||||
Zur Erfolgskontrolle kann die Website nun generiert und gepublished werden:
|
||||
|
||||
```console
|
||||
[kollegen@despina ~]$ ~/kollegengen/generate.sh
|
||||
```
|
||||
|
||||
Es sollte die Ausgabe "Ready, Blog created in /var/www/virtual/kollegen/html/kollegenrunde!" erfolgen.
|
||||
|
||||
### Git-Hook einrichten ###
|
||||
Per Hook-Skript `post-receive` wird das Skript `generate.sh` nun in das git-update-Event der beiden Repositories eingebunden. Damit wird die Website mit jeden Push neu erzeugt.
|
||||
|
||||
Das Hook Skript ist für beide Repositories das gleiche und wird im admin-Verzeichnis von kollegen-hugo gepfelgt. Die Aktivierung erfolgt auf dem Server.
|
||||
|
||||
> **🛈 Hinweis**
|
||||
> Die Hooks sollte ebenfalls in der Gitea-Webkonsole von kollegen-posts[^posts-hooks] bzw. kollegen-hugo[^hugo-hooks] angezeigt werden, was aber nicht der Fall ist
|
||||
|
||||
[^posts-hooks]: https://kollegen.uber.space/gitea/kollegenrunde/kollegen-posts/settings/hooks
|
||||
[^hugo-hooks]: https://kollegen.uber.space/gitea/kollegenrunde/kollegen-hugo/settings/hooks
|
||||
|
||||
|
||||
***Serverseitig*** installiert man das Script durch kopieren in die Hooks (darauf achten, dass die Skripte ausführbar sind - 0775):
|
||||
|
||||
```console
|
||||
[kollegen@despina ~]$ cp ~/kollegengen/kollegen-hugo/admin/post-receive ~/gitea-repositories/kollegenrunde/kollegen-hugo.git/hooks/post-receive.d/
|
||||
[kollegen@despina ~]$ cp ~/kollegengen/kollegen-hugo/admin/post-receive ~/gitea-repositories/kollegenrunde/kollegen-posts.git/hooks/post-receive.d/
|
||||
```
|
||||
|
||||
Hinweis: Das Hook-Skript starten das generate.sh mit 'env -i' in einer neuen Umgebung, damit nicht GIT_DIR gesetzt ist (vom ausführenden git). Ansonsten scheitert der pull innerhalb der Skripts.
|
||||
|
||||
In der Web-Konsole von Gitea sollte man nun sehen, dass die post-receive-Hooks aktiv sind (grüner Punkt), was aber leider nicht funktioniert :o(
|
||||
|
||||
# Backup and Restore
|
||||
|
||||
Da alles in gitea abgelegt ist, s. Backup dort.
|
||||
|
||||
|
||||
|
After Width: | Height: | Size: 5.3 KiB |
|
After Width: | Height: | Size: 7.5 KiB |
@@ -0,0 +1,160 @@
|
||||
#!/bin/sh
|
||||
# Execute Hugo webiste generation and log all output into log file
|
||||
# In error case, existing blog content will not be touched
|
||||
# If this script ist not stored in ~/hugogentmp/ change $DIR
|
||||
|
||||
# Version nr of this script. Just for logging
|
||||
VERSION=1
|
||||
|
||||
# Path to hugo executable on uberspace and local (for testing)
|
||||
HUGO=~/bin/hugo
|
||||
#HUGO=~/kred/hugo/hugo
|
||||
|
||||
# Path to output destination on uberspace and local (for testing). Folder must exists.
|
||||
PUBLIC_WWW=/var/www/virtual/$USER/kollegenrunde.kollegen.uber.space
|
||||
#PUBLIC_WWW=~/hugotest/html/kollegenrunde
|
||||
|
||||
# Working dir: here is the script and git's working dirs
|
||||
GENDIR=~/kollegengen
|
||||
|
||||
TMPPUBLIC=$GENDIR/kollegenrunde
|
||||
|
||||
# Path to persisted log file, e.g. in web folder
|
||||
LOG=$GENDIR/log.txt
|
||||
|
||||
# Path to a temp log file for hugo's stdout
|
||||
TMPLOG=$GENDIR/tmplog.txt
|
||||
|
||||
# Path to a temp log file for hugo's errout
|
||||
TMPERR=$GENDIR/tmperr.txt
|
||||
|
||||
# Tmp file with timestamp string
|
||||
TMPDATE=$GENDIR/tmpdate.txt
|
||||
|
||||
# Paths to the local gits
|
||||
TMPGIT_HUGO=$GENDIR/kollegen-hugo
|
||||
TMPGIT_POSTS=$GENDIR/kollegen-posts
|
||||
|
||||
# Path to our repositories
|
||||
GIT_HUGO=https://kollegen.uber.space/gitea/kollegenrunde/kollegen-hugo.git
|
||||
GIT_POSTS=https://kollegen.uber.space/gitea/kollegenrunde/kollegen-posts.git
|
||||
|
||||
# Log a text file content
|
||||
log_file () {
|
||||
cat $1
|
||||
cat $1 >> $LOG
|
||||
}
|
||||
|
||||
|
||||
# log a string argument
|
||||
log () {
|
||||
echo $1
|
||||
echo $1 >> $LOG
|
||||
}
|
||||
|
||||
# Always produce a log file in the destination folder
|
||||
finish () {
|
||||
|
||||
if [ -f $LOG ]
|
||||
then
|
||||
echo "Moving log.txt file to $LOG $PUBLIC_WWW/"
|
||||
mv -Z -v $LOG "$PUBLIC_WWW/"
|
||||
fi
|
||||
|
||||
if [ -f $TMPLOG ]
|
||||
then
|
||||
rm $TMPLOG
|
||||
fi
|
||||
|
||||
if [ -f $TMPERR ]
|
||||
then
|
||||
rm $TMPERR
|
||||
fi
|
||||
|
||||
if [ -f $TMPDATE ]
|
||||
then
|
||||
rm $TMPDATE
|
||||
fi
|
||||
|
||||
|
||||
exit $1
|
||||
}
|
||||
|
||||
### MAIN ###############################################
|
||||
log "Version $VERSION"
|
||||
|
||||
if [ -d $TMPPUBLIC ]
|
||||
then
|
||||
rm -r -f $TMPPUBLIC
|
||||
fi
|
||||
|
||||
if [ -f $LOG ]
|
||||
then
|
||||
rm -v $LOG
|
||||
touch $LOG
|
||||
fi
|
||||
|
||||
|
||||
# Document actual time into log file
|
||||
date > $TMPDATE
|
||||
log_file $TMPDATE
|
||||
|
||||
log "Using tmp dir $GENDIR"
|
||||
|
||||
if [ ! -d $TMPGIT_POSTS ]
|
||||
then
|
||||
# jetzt clonen wir das Repository in den temporären Ordner
|
||||
mkdir -v $TMPGIT_POSTS 2>&1 | tee -a $LOG
|
||||
git clone $GIT_POSTS $TMPGIT_POSTS 2>&1 | tee -a $LOG
|
||||
else
|
||||
env -i git -C $TMPGIT_POSTS pull 2>&1 | tee -a $LOG
|
||||
fi
|
||||
|
||||
if [ ! -d $TMPGIT_HUGO ]
|
||||
then
|
||||
# jetzt clonen wir das Repository in den temporären Ordner
|
||||
mkdir -v $TMPGIT_HUGO 2>&1 | tee -a $LOG
|
||||
git clone --recursive $GIT_HUGO $TMPGIT_HUGO 2>&1 | tee -a $LOG
|
||||
else
|
||||
env -i git -C $TMPGIT_HUGO pull 2>&1 | tee -a $LOG
|
||||
fi
|
||||
|
||||
# Hugo anschmeißen
|
||||
log "Starting hugo"
|
||||
|
||||
cd $TMPGIT_HUGO && $HUGO --cacheDir=$HOME/tmp/hugo_cache --destination $TMPPUBLIC > $TMPLOG 2> $TMPERR
|
||||
|
||||
if [ -f $TMPLOG ]
|
||||
then
|
||||
log_file $TMPLOG
|
||||
fi
|
||||
|
||||
if [ -f $TMPERR ]
|
||||
then
|
||||
if grep -Fq "Error" $TMPERR
|
||||
then
|
||||
log "Hugo failed"
|
||||
log_file $TMPERR
|
||||
log "Generation canceled. Check the error and try to fix it. Then push again."
|
||||
finish 1
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -d $PUBLIC_WWW ]
|
||||
then
|
||||
log "Remove $PUBLIC_WWW"
|
||||
rm -r -f $PUBLIC_WWW 2>&1 | tee -a $LOG
|
||||
else
|
||||
log "Create $PUBLIC_WWW"
|
||||
mkdir -v $PUBLIC_WWW 2>&1 | tee -a $LOG
|
||||
|
||||
fi
|
||||
|
||||
# Publish now
|
||||
log "Copy $TMPPUBLIC to $PUBLIC_WWW"
|
||||
rm -r -f $PUBLIC_WWW
|
||||
mv -Z -v $TMPPUBLIC $PUBLIC_WWW 2>&1 | tee -a $LOG
|
||||
|
||||
log "Ready, Blog created in $PUBLIC_WWW!"
|
||||
|
||||
finish 0
|
||||
@@ -0,0 +1,107 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
width="500"
|
||||
height="500"
|
||||
viewBox="0 0 132.29166 132.29167"
|
||||
version="1.1"
|
||||
id="svg8"
|
||||
inkscape:export-filename="/home/chris/kred/kollegen-hugo/admin/chris-web-logo.png"
|
||||
inkscape:export-xdpi="19.200001"
|
||||
inkscape:export-ydpi="19.200001"
|
||||
inkscape:version="0.92.5 (2060ec1f9f, 2020-04-08)"
|
||||
sodipodi:docname="logos.svg">
|
||||
<defs
|
||||
id="defs2">
|
||||
<filter
|
||||
inkscape:collect="always"
|
||||
style="color-interpolation-filters:sRGB"
|
||||
id="filter825"
|
||||
x="-0.0072344343"
|
||||
width="1.0144689"
|
||||
y="-0.035163157"
|
||||
height="1.0703263">
|
||||
<feGaussianBlur
|
||||
inkscape:collect="always"
|
||||
stdDeviation="0.33353353"
|
||||
id="feGaussianBlur827" />
|
||||
</filter>
|
||||
</defs>
|
||||
<sodipodi:namedview
|
||||
id="base"
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1.0"
|
||||
inkscape:pageopacity="0.0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:zoom="0.808"
|
||||
inkscape:cx="386.15004"
|
||||
inkscape:cy="141.3144"
|
||||
inkscape:document-units="mm"
|
||||
inkscape:current-layer="layer1"
|
||||
showgrid="false"
|
||||
units="px"
|
||||
inkscape:snap-page="true"
|
||||
inkscape:window-width="1920"
|
||||
inkscape:window-height="1015"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="0"
|
||||
inkscape:window-maximized="1" />
|
||||
<metadata
|
||||
id="metadata5">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
<dc:title></dc:title>
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<g
|
||||
inkscape:label="Ebene 1"
|
||||
inkscape:groupmode="layer"
|
||||
id="layer1"
|
||||
transform="translate(0,-164.70832)">
|
||||
<rect
|
||||
style="opacity:1;fill:#007c99;fill-opacity:1;stroke:#99233a;stroke-width:0.26458332;stroke-linecap:square;stroke-linejoin:bevel;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
id="rect815"
|
||||
width="132.29167"
|
||||
height="132.29167"
|
||||
x="0"
|
||||
y="164.70831" />
|
||||
<text
|
||||
xml:space="preserve"
|
||||
style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:31.75px;line-height:1.25;font-family:sans-serif;-inkscape-font-specification:'sans-serif, Bold';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-feature-settings:normal;text-align:center;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:middle;opacity:0.86400003;fill:#fefefe;fill-opacity:1;stroke:none;stroke-width:0.26458332;filter:url(#filter825)"
|
||||
x="39.294556"
|
||||
y="196.47142"
|
||||
id="text819"
|
||||
transform="matrix(1.3106053,0.00112612,-7.0466882e-4,2.0944481,14.159218,-181.20298)"><tspan
|
||||
sodipodi:role="line"
|
||||
x="43.422028"
|
||||
y="196.47142"
|
||||
style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:31.75px;font-family:sans-serif;-inkscape-font-specification:'sans-serif, Bold';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-feature-settings:normal;text-align:center;writing-mode:lr-tb;text-anchor:middle;fill:#fefefe;fill-opacity:1;stroke-width:0.26458332"
|
||||
id="tspan829">CHRIS </tspan></text>
|
||||
<text
|
||||
transform="matrix(1.7931964,9.6414199e-4,-9.6414199e-4,1.7931964,-2.9081116,-73.522182)"
|
||||
id="text835"
|
||||
y="196.47142"
|
||||
x="39.294556"
|
||||
style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:31.75px;line-height:1.25;font-family:sans-serif;-inkscape-font-specification:'sans-serif, Bold';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-feature-settings:normal;text-align:center;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:middle;opacity:0.86400003;fill:#fefefe;fill-opacity:1;stroke:none;stroke-width:0.26458332;filter:url(#filter825)"
|
||||
xml:space="preserve"><tspan
|
||||
id="tspan833"
|
||||
style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:31.75px;font-family:sans-serif;-inkscape-font-specification:'sans-serif, Bold';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-feature-settings:normal;text-align:center;writing-mode:lr-tb;text-anchor:middle;fill:#fefefe;fill-opacity:1;stroke-width:0.26458332"
|
||||
y="196.47142"
|
||||
x="39.294559"
|
||||
sodipodi:role="line">WEB</tspan></text>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 4.9 KiB |
@@ -0,0 +1,6 @@
|
||||
#!/bin/sh
|
||||
# Git-hook to generate Hugo content. To install the hook for the
|
||||
# event post-receive, this file must be copied into the git's hook
|
||||
# sub directory: /hooks/post-receive.d/
|
||||
# Take care, not to overwrite an already existing hook script!
|
||||
~/kollegengen/generate.sh
|
||||
@@ -1,6 +0,0 @@
|
||||
---
|
||||
title: "{{ replace .Name "-" " " | title }}"
|
||||
date: {{ .Date }}
|
||||
draft: true
|
||||
---
|
||||
|
||||
@@ -1,75 +0,0 @@
|
||||
---
|
||||
|
||||
# Set the correct title here
|
||||
title: "2003-11-02"
|
||||
|
||||
# Date of the event, will be set via script. Format like "2003-12-31"
|
||||
date: 2003-11-02
|
||||
|
||||
# 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 post's header e.g. header_image: images/img123.jpg. Can be empty.
|
||||
header_image:
|
||||
|
||||
# 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:
|
||||
|
||||
# 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-->
|
||||
@@ -0,0 +1,235 @@
|
||||
/*!
|
||||
By André Rinas, www.andrerinas.de
|
||||
Documentation, www.simplelightbox.de
|
||||
Available for use under the MIT License
|
||||
Version 2.6.0
|
||||
*/
|
||||
body.hidden-scroll {
|
||||
overflow: hidden; }
|
||||
|
||||
.sl-overlay {
|
||||
position: fixed;
|
||||
left: 0;
|
||||
right: 0;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
background: #000;
|
||||
opacity: 1;
|
||||
opacity: 1;
|
||||
display: none;
|
||||
z-index: 1035; }
|
||||
|
||||
.sl-wrapper {
|
||||
z-index: 1040;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
left: 0;
|
||||
top: 0;
|
||||
position: fixed; }
|
||||
.sl-wrapper * {
|
||||
box-sizing: border-box; }
|
||||
.sl-wrapper button {
|
||||
border: 0 none;
|
||||
background: transparent;
|
||||
font-size: 28px;
|
||||
padding: 0;
|
||||
cursor: pointer; }
|
||||
.sl-wrapper button:hover {
|
||||
opacity: 0.7; }
|
||||
.sl-wrapper .sl-close {
|
||||
display: none;
|
||||
position: fixed;
|
||||
right: 15px;
|
||||
top: 15px;
|
||||
z-index: 10060;
|
||||
margin-top: -14px;
|
||||
margin-right: -14px;
|
||||
height: 44px;
|
||||
width: 44px;
|
||||
line-height: 44px;
|
||||
font-family: Arial, Baskerville, monospace;
|
||||
color: #eee;
|
||||
font-size: 3rem; }
|
||||
.sl-wrapper .sl-counter {
|
||||
display: none;
|
||||
position: fixed;
|
||||
top: 15px;
|
||||
left: 15px;
|
||||
z-index: 1060;
|
||||
color: #eee;
|
||||
font-size: 1rem; }
|
||||
.sl-wrapper .sl-navigation {
|
||||
width: 100%;
|
||||
display: none; }
|
||||
.sl-wrapper .sl-navigation button {
|
||||
position: fixed;
|
||||
top: 50%;
|
||||
margin-top: -22px;
|
||||
height: 44px;
|
||||
width: 22px;
|
||||
line-height: 44px;
|
||||
text-align: center;
|
||||
display: block;
|
||||
z-index: 10060;
|
||||
font-family: Arial, Baskerville, monospace;
|
||||
color: #eee; }
|
||||
.sl-wrapper .sl-navigation button.sl-next {
|
||||
right: 5px;
|
||||
right: 5px;
|
||||
font-size: 2rem; }
|
||||
.sl-wrapper .sl-navigation button.sl-prev {
|
||||
left: 5px;
|
||||
font-size: 2rem; }
|
||||
@media (min-width: 35.5em) {
|
||||
.sl-wrapper .sl-navigation button {
|
||||
width: 44px; }
|
||||
.sl-wrapper .sl-navigation button.sl-next {
|
||||
right: 10px;
|
||||
font-size: 3rem; }
|
||||
.sl-wrapper .sl-navigation button.sl-prev {
|
||||
left: 10px;
|
||||
font-size: 3rem; } }
|
||||
@media (min-width: 50em) {
|
||||
.sl-wrapper .sl-navigation button {
|
||||
width: 44px; }
|
||||
.sl-wrapper .sl-navigation button.sl-next {
|
||||
right: 10px;
|
||||
font-size: 3rem; }
|
||||
.sl-wrapper .sl-navigation button.sl-prev {
|
||||
left: 10px;
|
||||
font-size: 3rem; } }
|
||||
.sl-wrapper.sl-dir-rtl .sl-navigation {
|
||||
direction: ltr; }
|
||||
.sl-wrapper .sl-image {
|
||||
position: fixed;
|
||||
-ms-touch-action: none;
|
||||
touch-action: none;
|
||||
z-index: 10000; }
|
||||
.sl-wrapper .sl-image img {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
display: block;
|
||||
border: 0 none;
|
||||
width: 100%;
|
||||
height: auto; }
|
||||
@media (min-width: 35.5em) {
|
||||
.sl-wrapper .sl-image img {
|
||||
border: 0 none; } }
|
||||
@media (min-width: 50em) {
|
||||
.sl-wrapper .sl-image img {
|
||||
border: 0 none; } }
|
||||
.sl-wrapper .sl-image iframe {
|
||||
background: #000;
|
||||
border: 0 none; }
|
||||
@media (min-width: 35.5em) {
|
||||
.sl-wrapper .sl-image iframe {
|
||||
border: 0 none; } }
|
||||
@media (min-width: 50em) {
|
||||
.sl-wrapper .sl-image iframe {
|
||||
border: 0 none; } }
|
||||
.sl-wrapper .sl-image .sl-caption {
|
||||
display: none;
|
||||
padding-top: 2px;
|
||||
padding-bottom: 2px;
|
||||
padding-left: 10px;
|
||||
color: #eee;
|
||||
background: #000;
|
||||
font-size: 1rem;
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0; }
|
||||
.sl-wrapper .sl-image .sl-caption.pos-top {
|
||||
bottom: auto;
|
||||
top: 0; }
|
||||
.sl-wrapper .sl-image .sl-caption.pos-outside {
|
||||
bottom: auto; }
|
||||
.sl-wrapper .sl-image .sl-download {
|
||||
display: none;
|
||||
position: absolute;
|
||||
bottom: 5px;
|
||||
right: 5px;
|
||||
color: #eee;
|
||||
z-index: 1060; }
|
||||
|
||||
.sl-spinner {
|
||||
display: none;
|
||||
border: 5px solid #333;
|
||||
border-radius: 40px;
|
||||
height: 40px;
|
||||
left: 50%;
|
||||
margin: -20px 0 0 -20px;
|
||||
opacity: 0;
|
||||
position: fixed;
|
||||
top: 50%;
|
||||
width: 40px;
|
||||
z-index: 1007;
|
||||
-webkit-animation: pulsate 1s ease-out infinite;
|
||||
-moz-animation: pulsate 1s ease-out infinite;
|
||||
-ms-animation: pulsate 1s ease-out infinite;
|
||||
-o-animation: pulsate 1s ease-out infinite;
|
||||
animation: pulsate 1s ease-out infinite; }
|
||||
|
||||
.sl-scrollbar-measure {
|
||||
position: absolute;
|
||||
top: -9999px;
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
overflow: scroll; }
|
||||
|
||||
.sl-transition {
|
||||
transition: -moz-transform ease 200ms;
|
||||
transition: -ms-transform ease 200ms;
|
||||
transition: -o-transform ease 200ms;
|
||||
transition: -webkit-transform ease 200ms;
|
||||
transition: transform ease 200ms; }
|
||||
|
||||
@-webkit-keyframes pulsate {
|
||||
0% {
|
||||
transform: scale(0.1);
|
||||
opacity: 0.0; }
|
||||
50% {
|
||||
opacity: 1; }
|
||||
100% {
|
||||
transform: scale(1.2);
|
||||
opacity: 0; } }
|
||||
|
||||
@keyframes pulsate {
|
||||
0% {
|
||||
transform: scale(0.1);
|
||||
opacity: 0.0; }
|
||||
50% {
|
||||
opacity: 1; }
|
||||
100% {
|
||||
transform: scale(1.2);
|
||||
opacity: 0; } }
|
||||
|
||||
@-moz-keyframes pulsate {
|
||||
0% {
|
||||
transform: scale(0.1);
|
||||
opacity: 0.0; }
|
||||
50% {
|
||||
opacity: 1; }
|
||||
100% {
|
||||
transform: scale(1.2);
|
||||
opacity: 0; } }
|
||||
|
||||
@-o-keyframes pulsate {
|
||||
0% {
|
||||
transform: scale(0.1);
|
||||
opacity: 0.0; }
|
||||
50% {
|
||||
opacity: 1; }
|
||||
100% {
|
||||
transform: scale(1.2);
|
||||
opacity: 0; } }
|
||||
|
||||
@-ms-keyframes pulsate {
|
||||
0% {
|
||||
transform: scale(0.1);
|
||||
opacity: 0.0; }
|
||||
50% {
|
||||
opacity: 1; }
|
||||
100% {
|
||||
transform: scale(1.2);
|
||||
opacity: 0; } }
|
||||
@@ -1,6 +1,6 @@
|
||||
title = "Kollegenrunde"
|
||||
baseURL = "https://kollegen.uber.space/kollegenrunde"
|
||||
languageCode = "de-de"
|
||||
baseURL = "https://kollegenrunde.kollegen.uber.space/"
|
||||
languageCode = "de"
|
||||
theme = "ananke"
|
||||
|
||||
DefaultContentLanguage = "de"
|
||||
@@ -8,27 +8,31 @@ SectionPagesMenu = "main"
|
||||
Paginate = 6
|
||||
googleAnalytics = ""
|
||||
enableRobotsTXT = true
|
||||
contentDir = "../kollegen-posts/content"
|
||||
archetypeDir = "../kollegen-posts/archetypes"
|
||||
|
||||
[de]
|
||||
title = "Kollegenrunde"
|
||||
|
||||
[taxonomies]
|
||||
category = "categories"
|
||||
tag = "tags"
|
||||
sport = "sports"
|
||||
eventtype = "eventtypes"
|
||||
event = "events"
|
||||
member = "members"
|
||||
location = "locations"
|
||||
year = "years"
|
||||
|
||||
[sitemap]
|
||||
changefreq = "monthly"
|
||||
priority = 0.5
|
||||
filename = "sitemap.xml"
|
||||
|
||||
[permalinks]
|
||||
# :title is used if :slug is not defined in post frontmatter
|
||||
posts = "posts/:year/:title/"
|
||||
|
||||
[params]
|
||||
sectionPagesMenu = "main"
|
||||
favicon = ""
|
||||
favicon = "/images/favicon.ico"
|
||||
|
||||
site_logo = ""
|
||||
title_short = "KR"
|
||||
@@ -37,15 +41,15 @@ enableRobotsTXT = true
|
||||
twitter = ""
|
||||
instagram = ""
|
||||
youtube = ""
|
||||
github = "https://github.com/chs8691/kollegenrunde"
|
||||
gitea = "https://kollegen.uber.space/gitea/kollegenrunde/kollegen-posts"
|
||||
gitlab = ""
|
||||
strava = "https://www.strava.com/clubs/kollegenrunde"
|
||||
garmin = "https://connect.garmin.com/modern/group/3195407"
|
||||
linkedin = ""
|
||||
mastodon = ""
|
||||
slack = ""
|
||||
stackoverflow = ""
|
||||
rss = ""
|
||||
# TEST body_classes = "avenir bg-near-white"
|
||||
# choose a background color from any on this page: http://tachyons.io/docs/themes/skins/ and preface it with "bg-"
|
||||
background_color_class = "bg-dark-blue"
|
||||
featured_image = "/images/070830-schatten.jpg"
|
||||
@@ -60,3 +64,8 @@ enableRobotsTXT = true
|
||||
name = "Statistik"
|
||||
identifier = "stats"
|
||||
url = "/stats/"
|
||||
|
||||
[languages]
|
||||
[languages.de]
|
||||
title = "Kollegenrunde"
|
||||
weight = 1
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
[tours]
|
||||
one = "Eine Tour"
|
||||
other = "{{ .Count }} Touren"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{{ define "main" }}
|
||||
|
||||
{{ partial "navigation-bar.html" ( dict "context" . "items" (slice "eventtypes" ) )}}
|
||||
{{ partial "navigation-bar.html" ( dict "context" . "items" (slice "events" ) )}}
|
||||
|
||||
<article class="cf pa3 pa4-m pa4-l">
|
||||
<div class="measure-wide-l center f4 lh-copy nested-copy-line-height nested-links nested-img mid-gray">
|
||||
@@ -25,8 +25,9 @@
|
||||
<div class="mw8 center">
|
||||
<section class="flex-ns flex-wrap justify-around mt5">
|
||||
{{ range .Pages }}
|
||||
<div class="relative w-100 mb4 bg-white">
|
||||
{{ partial "summary.html" . }}
|
||||
<div class="relative w-100 mb3 bg-white">
|
||||
{{ partial "summary-with-thumbnail.html" . }}
|
||||
|
||||
</div>
|
||||
{{ end }}
|
||||
</section>
|
||||
@@ -0,0 +1,48 @@
|
||||
{{ define "main" }}
|
||||
|
||||
{{ partial "navigation-bar.html" ( dict "context" . "items" (slice "/" ) )}}
|
||||
|
||||
<article class="measure-wide center pa3 pa4-ns nested-copy-line-height nested-img">
|
||||
<section class="cf pv3 pv4-l f4 tc-l measure-wide lh-copy mid-gray">
|
||||
<div class="cf pv3 pv4-l f4 tc-l measure-wide lh-copy mid-gray">
|
||||
<p>Events nach ihrem Typ. Die Pulsbar zeigt die relative Anzahl pro Jahr. Navigiere weiter in die Posts eines Eventtyps.</p>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<div class="w-100">
|
||||
{{ range .Data.Terms.ByCount }}
|
||||
<section class="mt1">
|
||||
<div class="flex flex-column bg-white ba b--white bw2 ">
|
||||
|
||||
<div class="flex bg-white">
|
||||
|
||||
<div class="flex">
|
||||
<div class="f1 w4 tr pr4 pt1 bg-blue white">
|
||||
{{ len .Pages }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="flex flex-column pl2">
|
||||
<div class=" pl2 ">
|
||||
{{ humanize .Page.Section }}
|
||||
</div>
|
||||
|
||||
<a href="{{ .Page.Permalink }}" class="f3 b near-black link black dim pr4 pt2 pb2">
|
||||
{{ .Page.Title }}
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="flex pt1">
|
||||
{{ partial "term-summary.html" (dict "page" .Page "param_name" "events" "param_title" .Page.Title ) }}
|
||||
</div>
|
||||
<div id="{{ .Page.Title }}" class="flex justify-center pt1">
|
||||
<div style="color:transparent">:</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
{{ end }}
|
||||
</div>
|
||||
</article>
|
||||
{{ end }}
|
||||
@@ -1,19 +0,0 @@
|
||||
{{ define "main" }}
|
||||
|
||||
{{ partial "navigation-bar.html" ( dict "context" . "items" (slice "/" ) )}}
|
||||
|
||||
<article class="cf pa3 pa4-m pa4-l">
|
||||
<div class="measure-wide-l center f4 lh-copy nested-copy-line-height nested-links nested-img mid-gray">
|
||||
<p>Events nach ihrem Typ. Navigiere weiter in die Posts eines Eventtyps.</p>
|
||||
</div>
|
||||
</article>
|
||||
<div class="mw8 center">
|
||||
<section class="flex-ns flex-wrap justify-around mt5">
|
||||
{{ range .Data.Terms.ByCount }}
|
||||
<div class="relative w-100 mb4 bg-white">
|
||||
{{ partial "numbered-summary.html" .Page }}
|
||||
</div>
|
||||
{{ end }}
|
||||
</section>
|
||||
</div>
|
||||
{{ end }}
|
||||
@@ -1,6 +1,6 @@
|
||||
{{ define "main" }}
|
||||
{{ partial "navigation-bar.html" ( dict "context" . "items" (slice "sports" "eventtypes" "members" "locations") )}}
|
||||
<article class="cf ph3 ph5-l pv3 pv4-l f4 tc-l center measure-wide lh-copy mid-gray">
|
||||
{{ partial "navigation-bar.html" ( dict "context" . "items" (slice "sports" "events" "members" "locations" "years") )}}
|
||||
<article class="cf ph3 ph5-l pv3 pv4-l f4 tc-l center w-100 w-70-ns center lh-copy mid-gray">
|
||||
|
||||
Der Kollege lädt ein, man trifft sich zum Radeln.
|
||||
|
||||
@@ -21,9 +21,57 @@
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
<p></p>
|
||||
{{ partial "statistic-summary.html" ( dict "total_nr" $total_nr_of_tours "distance" $total_distance "ascent" $total_ascent ) }}
|
||||
</article>
|
||||
<div class="flex flex-wrap justify-center">
|
||||
<div class="flex flex-column items-center pa3 ma3 bg-white">
|
||||
<div class="flex fw9">
|
||||
Touren
|
||||
</div>
|
||||
<div class="flex">
|
||||
{{ partial "home-summary.html" (dict "context" . "param_name" "count" ) }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex flex-column items-center pa3 ma3 bg-white">
|
||||
<div class="flex fw9">
|
||||
Teilnehmer
|
||||
</div>
|
||||
<div class="flex">
|
||||
{{ partial "home-summary.html" (dict "context" . "param_name" "members" ) }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex flex-column items-center pa3 ma3 bg-white">
|
||||
<div class="flex fw9">
|
||||
Entfernung
|
||||
</div>
|
||||
<div class="flex">
|
||||
{{ partial "home-summary.html" (dict "context" . "param_name" "distance_km" ) }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex flex-column items-center pa3 ma3 bg-white">
|
||||
<div class="flex fw9">
|
||||
Aufstieg
|
||||
</div>
|
||||
<div class="flex">
|
||||
{{ partial "home-summary.html" (dict "context" . "param_name" "ascent_m" ) }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{ $pages := where .Site.RegularPages "Type" "in" (slice "posts") }}
|
||||
|
||||
{{ $firstYear := 0 }}
|
||||
{{ $lastYear := 0 }}
|
||||
|
||||
{{ range first 1 ( sort ( $pages.GroupByDate "2006" ) "Key") }}
|
||||
{{ $firstYear = .Key }}
|
||||
{{ end }}
|
||||
|
||||
{{ range last 1 ( sort ( $pages.GroupByDate "2006" ) "Key") }}
|
||||
{{ $lastYear = .Key }}
|
||||
{{ end }}
|
||||
|
||||
Seit {{ sub ( int $lastYear ) ( int $firstYear ) }} Jahren.
|
||||
|
||||
</article>
|
||||
{{/* Define a section to pull recent posts from. For Hugo 0.20 this will default to the section with the most number of pages. */}}
|
||||
{{ $mainSections := .Site.Params.mainSections | default (slice "post") }}
|
||||
{{/* Create a variable with that section to use in multiple places. */}}
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
<section class="flex-ns flex-wrap justify-around mt5">
|
||||
{{ range .Pages }}
|
||||
<div class="relative w-100 mb4 bg-white">
|
||||
{{ partial "summary.html" . }}
|
||||
{{ partial "summary-with-thumbnail.html" . }}
|
||||
</div>
|
||||
{{ end }}
|
||||
</section>
|
||||
|
||||
@@ -2,18 +2,48 @@
|
||||
|
||||
{{ partial "navigation-bar.html" ( dict "context" . "items" (slice "/" ) )}}
|
||||
|
||||
<article class="cf pa3 pa4-m pa4-l">
|
||||
<div class="measure-wide-l center f4 lh-copy nested-copy-line-height nested-links nested-img mid-gray">
|
||||
<p>Events nach ihrem Startort. Navigiere weiter in die Posts einer Location.</p>
|
||||
<article class="measure-wide center pa3 pa4-ns nested-copy-line-height nested-img">
|
||||
<section class="cf pv3 pv4-l f4 tc-l measure-wide lh-copy mid-gray">
|
||||
<div class="cf pv3 pv4-l f4 tc-l measure-wide lh-copy mid-gray">
|
||||
<p>Events nach ihrem Startort. Die Pulsbar zeigt die relative Anzahl Starts pro Jahr.
|
||||
Navigiere weiter in die Posts einer Location.</p>
|
||||
</div>
|
||||
</article>
|
||||
<div class="mw8 center">
|
||||
<section class="flex-ns flex-wrap justify-around mt5">
|
||||
{{ range .Data.Terms.ByCount }}
|
||||
<div class="relative w-100 mb4 bg-white">
|
||||
{{ partial "numbered-summary.html" .Page }}
|
||||
</div>
|
||||
{{ end }}
|
||||
</section>
|
||||
|
||||
<div class="w-100">
|
||||
{{ range .Data.Terms.ByCount }}
|
||||
<section class="mt1">
|
||||
<div class="flex flex-column bg-white ba b--white bw2 ">
|
||||
|
||||
<div class="flex bg-white">
|
||||
|
||||
<div class="flex">
|
||||
<div class="f1 w4 tr pr4 pt1 bg-blue white">
|
||||
{{ len .Pages }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="flex flex-column pl2">
|
||||
<div class=" pl2 ">
|
||||
{{ humanize .Page.Section }}
|
||||
</div>
|
||||
|
||||
<a href="{{ .Page.Permalink }}" class="f3 b near-black link black dim pr4 pt2 pb2">
|
||||
{{ .Page.Title }}
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="flex pt1">
|
||||
{{ partial "term-summary.html" (dict "page" .Page "param_name" "locations" "param_title" .Page.Title ) }}
|
||||
</div>
|
||||
<div id="{{ .Page.Title }}" class="flex justify-center pt1">
|
||||
<div style="color:transparent">:</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
{{ end }}
|
||||
</div>
|
||||
</article>
|
||||
{{ end }}
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
<section class="flex-ns flex-wrap justify-around mt5">
|
||||
{{ range .Pages }}
|
||||
<div class="relative w-100 mb4 bg-white">
|
||||
{{ partial "summary.html" . }}
|
||||
{{ partial "summary-with-thumbnail.html" . }}
|
||||
</div>
|
||||
{{ end }}
|
||||
</section>
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<article class="measure-wide center pa3 pa4-ns nested-copy-line-height nested-img">
|
||||
<section class="cf pv3 pv4-l f4 tc-l measure-wide lh-copy mid-gray">
|
||||
<div class="cf pv3 pv4-l f4 tc-l measure-wide lh-copy mid-gray">
|
||||
<p>Events nach Teilnehmenden. Die Grafik zeigt die prozentuale Kilometerleistung pro Jahr. Navigiere weiter in die Posts eines Teilnehmenden.</p>
|
||||
<p>Events nach Teilnehmenden. Die Pulsbar zeigt die Anzahl Events pro Jahr. Navigiere weiter in die Posts eines Teilnehmenden.</p>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
@@ -34,7 +34,10 @@
|
||||
</div>
|
||||
|
||||
<div class="flex pt1">
|
||||
{{ partial "members-summary.html" .Page }}
|
||||
{{ partial "members-summary.html" (dict "page" .Page "param_title" .Page.Title ) }}
|
||||
</div>
|
||||
<div id="{{ .Page.Title }}" class="flex justify-center pt1">
|
||||
<div style="color:transparent">:</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
@@ -19,10 +19,15 @@
|
||||
|
||||
{{/* Defined as params */}}
|
||||
{{ if isset .context.Params .name }}
|
||||
{{ $image_name := .context.Param .name }}
|
||||
{{ with .context.Resources.GetMatch $image_name }}
|
||||
{{ $headerImage = . }}
|
||||
{{ end }}
|
||||
|
||||
{{/* param exist and is not zero */}}
|
||||
{{ if .context.Param .name }}
|
||||
|
||||
{{ with .context.Resources.GetMatch ( .context.Param .name ) }}
|
||||
{{ $headerImage = . }}
|
||||
{{ end }}
|
||||
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,72 @@
|
||||
{{ $style := resources.Get "simplelightbox/simple-lightbox.css" }}
|
||||
|
||||
<link rel="stylesheet" href="{{ $style.Permalink }}">
|
||||
|
||||
<style>
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.container .gallery a img {
|
||||
float: left;
|
||||
width: 10%;
|
||||
height: auto;
|
||||
border: 2px solid #fff;
|
||||
-webkit-transition: -webkit-transform .15s ease;
|
||||
-moz-transition: -moz-transform .15s ease;
|
||||
-o-transition: -o-transform .15s ease;
|
||||
-ms-transition: -ms-transform .15s ease;
|
||||
transition: transform .15s ease;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.clear {
|
||||
clear: both;
|
||||
}
|
||||
|
||||
a {
|
||||
color: #009688;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
color: #01695f;
|
||||
text-decoration: none;
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="container">
|
||||
<h1 class="f2">
|
||||
Bilder des Tages
|
||||
</h1>
|
||||
<div class="gallery">
|
||||
{{ $page := . }}
|
||||
{{ with .Resources.Match "images/*" }}
|
||||
{{ range . }}
|
||||
{{ $gallary_img := .Fill "300x300" }}
|
||||
{{ $text := "" }}
|
||||
{{ if isset $page.Params "captions" }}
|
||||
{{ range first 1 (where $page.Params.captions "name" .Name) }}
|
||||
{{ $text = .text }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
<a href="{{.Permalink}}">
|
||||
<img style="max-width: 100%; width: auto; height: auto;" src="{{ $gallary_img.RelPermalink }}"
|
||||
width="{{ .Width }}" height="{{ .Height }}" alt="{{ .Title }}" title={{ $text }}>
|
||||
</a>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{ $js := resources.Get "simplelightbox/simple-lightbox.min.js" }}
|
||||
|
||||
<script src="{{ $js.Permalink }}"></script>
|
||||
|
||||
<script>
|
||||
(function() {
|
||||
var $gallery = new SimpleLightbox('.gallery a', {docClose:false, widthRatio:1, heightRatio:1});
|
||||
})();
|
||||
</script>
|
||||
@@ -0,0 +1,137 @@
|
||||
{{ $pages := where .context.Site.RegularPages "Type" "in" (slice "posts") }}
|
||||
{{ $count := len $pages }}
|
||||
{{ $param_name := .param_name }}
|
||||
|
||||
{{ $totalWidth := 200.0 }}
|
||||
{{ $totalHeight := 150.0 }}
|
||||
{{ $width := div $totalWidth ( len ( $pages.GroupByDate "2006" ) ) }}
|
||||
|
||||
{{ $maxCount := 0 }}
|
||||
{{ $totalCount := 0 }}
|
||||
{{ $actualCount := 0 }}
|
||||
|
||||
{{ $maxDistance_km := 0 }}
|
||||
{{ $totalDistance_km := 0 }}
|
||||
{{ $actualDistance_km := 0 }}
|
||||
|
||||
{{ $maxAscent_m := 0 }}
|
||||
{{ $totalAscent_m := 0 }}
|
||||
{{ $actualAscent_m := 0 }}
|
||||
|
||||
{{ $maxMembers := 0 }}
|
||||
{{ $totalMembers := 0 }}
|
||||
{{ $actualMembers := 0 }}
|
||||
|
||||
{{ range sort ( $pages.GroupByDate "2006" ) "Key" }}
|
||||
{{ $count := 0 }}
|
||||
{{ $distance_km := 0 }}
|
||||
{{ $ascent_m := 0 }}
|
||||
{{ $members := 0 }}
|
||||
|
||||
{{ range .Pages }}
|
||||
{{ $count = add 1 $count }}
|
||||
|
||||
{{ with .Params.distance_km }}
|
||||
{{ $distance_km = add . $distance_km }}
|
||||
{{ end }}
|
||||
|
||||
{{ with .Params.ascent_m }}
|
||||
{{ $ascent_m = add . $ascent_m }}
|
||||
{{ end }}
|
||||
|
||||
{{ with .Params.members }}
|
||||
{{ $members = add ( len . ) $members }}
|
||||
{{ end }}
|
||||
|
||||
{{ end }}
|
||||
|
||||
{{ if gt $distance_km $maxDistance_km }}
|
||||
{{ $maxDistance_km = $distance_km }}
|
||||
{{ end }}
|
||||
|
||||
{{ if gt $ascent_m $maxAscent_m }}
|
||||
{{ $maxAscent_m = $ascent_m }}
|
||||
{{ end }}
|
||||
|
||||
{{ if gt $count $maxCount }}
|
||||
{{ $maxCount = $count }}
|
||||
{{ end }}
|
||||
|
||||
{{ if gt $members $maxMembers }}
|
||||
{{ $maxMembers = $members }}
|
||||
{{ end }}
|
||||
|
||||
{{ $totalCount = add $count $totalCount }}
|
||||
{{ $totalMembers = add $members $totalMembers }}
|
||||
{{ $totalDistance_km = add $distance_km $totalDistance_km }}
|
||||
{{ $totalAscent_m = add $ascent_m $totalAscent_m }}
|
||||
|
||||
{{ $actualCount = $count }}
|
||||
{{ $actualMembers = $members }}
|
||||
{{ $actualDistance_km = $distance_km }}
|
||||
{{ $actualAscent_m = $ascent_m }}
|
||||
|
||||
{{ end }}
|
||||
|
||||
{{ $value := "" }}
|
||||
{{ $actualHeight := 0 }}
|
||||
|
||||
{{ if eq $param_name "distance_km"}}
|
||||
{{ $value = partial "func/NumberFormatter.html" ( dict "number" $totalDistance_km "precision" 0 ) }}
|
||||
{{ $actualHeight = mul $actualDistance_km ( div $totalHeight $maxDistance_km ) }}
|
||||
{{ end }}
|
||||
|
||||
{{ if eq $param_name "ascent_m"}}
|
||||
{{ $value = partial "func/NumberFormatter.html" ( dict "number" $totalAscent_m "precision" 0 ) }}
|
||||
{{ $actualHeight = mul $actualAscent_m ( div $totalHeight $maxAscent_m ) }}
|
||||
{{ end }}
|
||||
|
||||
{{ if eq $param_name "count"}}
|
||||
{{ $value = $totalCount }}
|
||||
{{ $actualHeight = mul $actualCount ( div $totalHeight $maxCount ) }}
|
||||
{{ end }}
|
||||
|
||||
{{ if eq $param_name "members"}}
|
||||
{{ $value = $totalMembers }}
|
||||
{{ $actualHeight = mul $actualMembers ( div $totalHeight $maxMembers ) }}
|
||||
{{ end }}
|
||||
|
||||
{{ $color := "#a8c7f0" }}
|
||||
{{ $fontcolor := "#123a6d" }}
|
||||
{{ $fontstroke := "#e9f1fb" }}
|
||||
{{ $actualColor := "#123a6d" }}
|
||||
|
||||
<svg width="{{ $totalWidth }}px" height="{{ $totalHeight }}px" xmlns="http://www.w3.org/2000/svg">
|
||||
<rect height="100%" width="100%" opacity="0.1" fill="{{ $color }}"/>
|
||||
|
||||
{{ $x := 0 }}
|
||||
{{ range sort ( $pages.GroupByDate "2006" ) "Key" }}
|
||||
|
||||
{{ $count := 0 }}
|
||||
{{ $distance_km := 0 }}
|
||||
|
||||
{{ range .Pages }}
|
||||
|
||||
{{ with .Params.distance_km }}
|
||||
{{ $distance_km = add . $distance_km }}
|
||||
{{ end }}
|
||||
|
||||
{{ $count = add 1 $count }}
|
||||
|
||||
{{ end }}
|
||||
|
||||
{{ $height := 0 }}
|
||||
{{ $height = mul (float $totalHeight ) ( div (float $count ) ( float $maxCount ) ) }}
|
||||
|
||||
<rect opacity="0.2" height="{{ $height }}" y="{{ sub $totalHeight $height }}" x="{{ $x }}px"
|
||||
width="{{ $width }}px" fill="{{ $color }}" stroke-width="0" />
|
||||
|
||||
{{ $x = add $x $width }}
|
||||
{{ end }}
|
||||
|
||||
<rect opacity="0.8" height="5px" y="{{ sub $totalHeight $actualHeight }}" x="0px"
|
||||
width="{{ $totalWidth }}px" fill="{{ $actualColor }}" stroke-width="0" />
|
||||
|
||||
<text x="50%" y="50%" dominant-baseline="middle" text-anchor="middle" font-size="50px"
|
||||
font-weight="bold" fill="{{ $fontcolor }}" stroke-width="1px" stroke="{{$fontstroke}}">{{ $value }}</text>
|
||||
</svg>
|
||||
@@ -1,21 +1,32 @@
|
||||
{{ $key := .Title }}
|
||||
{{ $pages := where .Site.RegularPages "Type" "in" (slice "posts") }}
|
||||
{{ $key := .page.Title }}
|
||||
{{ $pages := where .page.Site.RegularPages "Type" "in" (slice "posts") }}
|
||||
{{ $count := len $pages }}
|
||||
{{ $param_title := .param_title }}
|
||||
|
||||
{{ $totalWidth := 100.0 }}
|
||||
{{ $totalHeight := 50.0 }}
|
||||
{{/* {{ $width := div $totalWidth ( len ( $pages.GroupByDate "2006" ) ) }} */}}
|
||||
{{ $width := div $totalWidth ( len ( $pages.GroupByDate "2006" ) ) }}
|
||||
|
||||
{{ $color := "#357edd" }}
|
||||
{{ $color := "#a8c7f0" }}
|
||||
{{ $strokecolor := "#d3e3f8" }}
|
||||
|
||||
<svg width="{{ $totalWidth }}%" height="{{ $totalHeight }}"
|
||||
xmlns="http://www.w3.org/2000/svg">
|
||||
<script>
|
||||
function onyearover(year, key, count){
|
||||
document.getElementById( key ).innerHTML = year + ": " + count;
|
||||
}
|
||||
|
||||
function onyearout(key){
|
||||
document.getElementById( key ).innerHTML = "<div style='color: transparent'>:</div>";
|
||||
}
|
||||
</script>
|
||||
|
||||
<svg width="{{ $totalWidth }}%" height="{{ $totalHeight }}" xmlns="http://www.w3.org/2000/svg">
|
||||
<rect height="100%" width="100%" opacity="0.1" fill="{{ $color }}"/>
|
||||
|
||||
{{ $x := 0 }}
|
||||
{{ $year := 0 }}
|
||||
{{ range sort ( $pages.GroupByDate "2006" ) "Key" }}
|
||||
|
||||
{{ $maxDist := 0.00 }}
|
||||
{{ $maxCount := 0 }}
|
||||
{{ $dist := 0.00 }}
|
||||
@@ -23,6 +34,7 @@ xmlns="http://www.w3.org/2000/svg">
|
||||
|
||||
{{ range .Pages }}
|
||||
{{ $maxCount = add 1 $maxCount }}
|
||||
{{ $year = dateFormat "2006" .Date }}
|
||||
|
||||
{{ $isMember := false }}
|
||||
|
||||
@@ -42,17 +54,13 @@ xmlns="http://www.w3.org/2000/svg">
|
||||
{{ end }}
|
||||
|
||||
{{ $height := 0 }}
|
||||
{{ if gt $maxDist 0 }}
|
||||
{{ $height = mul (float $totalHeight ) ( div (float $dist ) ( float $maxDist ) ) }}
|
||||
{{ else }}
|
||||
{{ $height = mul (float $totalHeight ) ( div (float $count ) ( float $maxCount ) ) }}
|
||||
{{ end }}
|
||||
{{/* {{ $maxDist }} */}}
|
||||
{{/* {{ $dist }} */}}
|
||||
{{/* {{ $x }} */}}
|
||||
{{/* {{ $height }} */}}
|
||||
<rect opacity="0.2" height="{{ $height }}" y="{{ sub $totalHeight $height }}" x="{{ $x }}%"
|
||||
width="{{ $width }}%" fill="{{ $color }}" stroke-width="1.5" stroke="{{$color}}"/>
|
||||
{{/* $maxDist */}}
|
||||
{{/* $dist */}}
|
||||
{{/* $x */}}
|
||||
{{/* $height */}}
|
||||
<rect onmouseover="onyearover( {{ $year }}, {{ $param_title }}, {{ $count }} )" onmouseout="onyearout({{ $param_title }})" opacity="0.2" height="{{ $height }}" y="{{ sub $totalHeight $height }}" x="{{ $x }}%"
|
||||
width="{{ $width }}%" fill="{{ $color }}" stroke-width="1.5" stroke="{{$strokecolor}}" class="dim"/>
|
||||
|
||||
{{ $x = add $x $width }}
|
||||
{{ end }}
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
{{ $header_image := partial "func/GetNamedImage.html" (dict "context" . "name" "header_image") }}
|
||||
{{ $header_image := partial "func/GetNamedImage.html" (dict "context" . "name" "featured_image") }}
|
||||
|
||||
{{$image_resource := $header_image }}
|
||||
{{ if $image_resource }}
|
||||
{{ $header_img := $image_resource.Resize "1200x" }}
|
||||
{{ $header_img := $image_resource.Fill "1200x600 Center" }}
|
||||
{{ $image_url := $header_img.Permalink }}
|
||||
{{/* Trimming the slash and adding absURL make sure the image works no matter where our site lives */}}
|
||||
{{ $image_url := (trim $image_url "/") | absURL }}
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
<footer class="{{ .Site.Params.background_color_class | default "bg-black" }} bottom-0 w-100 pa3" role="contentinfo">
|
||||
<div class="flex justify-between flex-wrap">
|
||||
<div>
|
||||
<a xmlns:cc="http://creativecommons.org/ns#" class="f4 fw4 hover-white no-underline white-70 dib-ns ph3 pt2" href="{{ .Site.BaseURL }}" property="cc:attributionName" rel="cc:attributionURL">
|
||||
© {{ with .Site.Copyright | default .Site.Title }} {{ . | safeHTML }} {{ now.Format "2006"}} {{ end }}
|
||||
</a>
|
||||
<a rel="license" href="http://creativecommons.org/licenses/by/4.0/">
|
||||
<img alt="Creative Commons Lizenzvertrag" style="border-width:0" src="https://i.creativecommons.org/l/by/4.0/80x15.png" />
|
||||
</a>
|
||||
</div>
|
||||
<div class="dn dib-ns">{{ partial "social-follow.html" . }}</div>
|
||||
</div>
|
||||
|
||||
</footer>
|
||||
@@ -0,0 +1,26 @@
|
||||
<nav class="pv3 ph3 ph4-ns" role="navigation">
|
||||
<div class="flex-l justify-between items-center center">
|
||||
<a href="{{ .Site.Home.RelPermalink }}" class="f3 fw2 hover-white no-underline white-90 dib">
|
||||
{{ with .Site.Params.site_logo }}
|
||||
<img src="{{ . }}" class="w100 mw5-ns" alt="{{ $.Site.Title }}" />
|
||||
{{ else }}
|
||||
{{ .Site.Params.title_short }}
|
||||
{{ end }}
|
||||
</a>
|
||||
<div class="flex-l items-center">
|
||||
{{ partial "i18nlist.html" . }}
|
||||
{{ if .Site.Menus.main }}
|
||||
<ul class="pl0 mr3">
|
||||
{{ range .Site.Menus.main }}
|
||||
<li class="list f5 f4-ns fw4 dib pr3">
|
||||
<a class="hover-white no-underline white-90" href="{{ .URL }}" title="{{ .Name }} page">
|
||||
{{ .Name }}
|
||||
</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{ end }}
|
||||
{{ partialCached "social-follow.html" . }}
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
@@ -1,7 +1,13 @@
|
||||
{{ $icon_size := "32px" }}
|
||||
|
||||
{{ with .Param "komoot_activity" }}
|
||||
<a href="{{ . }}" target="_blank" class="link-transition github link dib z-999 pt3 pt0-l mr1 pr3" title="Komoot-Aktivität" rel="noopener" aria-label="Tour on Komoot——Opens in a new window">
|
||||
{{ partial "svg/komoot.svg" (dict "size" $icon_size) }}
|
||||
</a>
|
||||
{{ end }}
|
||||
|
||||
{{ with .Param "strava_activity" }}
|
||||
<a href="{{ . }}" target="_blank" class="link-transition gitlab link dib z-999 pt3 pt0-l mr1 pr3" title="Strava-Aktivität" rel="noopener" aria-label="Our Strava Club——Opens in a new window">
|
||||
<a href="{{ . }}" target="_blank" class="link-transition gitlab link dib z-999 pt3 pt0-l mr1 pr3" title="Strava-Aktivität" rel="noopener" aria-label="Activity on STRAVA——Opens in a new window">
|
||||
{{ partial "svg/strava.svg" (dict "size" $icon_size) }}
|
||||
</a>
|
||||
{{ end }}
|
||||
@@ -12,3 +18,8 @@
|
||||
</a>
|
||||
{{ end }}
|
||||
|
||||
{{ with .Param "garmin_activity" }}
|
||||
<a href="{{ . }}" target="_blank" class="link-transition facebook link dib z-999 pt3 pt0-l mr1" title="Garmin-Aktivität" rel="noopener" aria-label="Track on Garmin Connect——Opens in a new window">
|
||||
{{ partial "svg/garmin.svg" (dict "size" $icon_size) }}
|
||||
</a>
|
||||
{{ end }}
|
||||
|
||||
@@ -1,11 +1,17 @@
|
||||
<!-- TODO: Add follow intents where available TODO: Revisit color and hover color -->
|
||||
{{ $icon_size := "32px" }}
|
||||
{{ with .Param "strava" }}
|
||||
<a href="{{ . }}" target="_blank" class="link-transition gitlab link dib z-999 pt3 pt0-l mr1" title="Strava link" rel="noopener" aria-label="Our Strava Club——Opens in a new window">
|
||||
<a href="{{ . }}" target="_blank" class="link-transition gitlab link dib z-999 pt3 pt0-l mr1" title="Unser Strava-Club" rel="noopener" aria-label="Unser Strava Club——Opens in a new window">
|
||||
{{ partial "svg/strava.svg" (dict "size" $icon_size) }}
|
||||
{{- partial "new-window-icon.html" . -}}
|
||||
</a>
|
||||
{{ end }}
|
||||
{{ with .Param "garmin" }}
|
||||
<a href="{{ . }}" target="_blank" class="link-transition gitlab link dib z-999 pt3 pt0-l mr1" title="Unser Garmin-Club" rel="noopener" aria-label="Unser Garmin Club——Opens in a new window">
|
||||
{{ partial "svg/garmin.svg" (dict "size" $icon_size) }}
|
||||
{{- partial "new-window-icon.html" . -}}
|
||||
</a>
|
||||
{{ end }}
|
||||
{{ with .Param "stackoverflow" }}
|
||||
<a href="{{ . }}" target="_blank" class="link-transition stackoverflow link dib z-999 pt3 pt0-l mr1" title="Stack Overflow link" rel="noopener" aria-label="follow on Stack Overflow——Opens in a new window">
|
||||
{{ partial "svg/stackoverflow.svg" (dict "size" $icon_size) }}
|
||||
@@ -48,6 +54,12 @@
|
||||
{{- partial "new-window-icon.html" . -}}
|
||||
</a>
|
||||
{{ end }}
|
||||
{{ with .Param "gitea" }}
|
||||
<a href="{{ . }}" target="_blank" class="link-transition github link dib z-999 pt3 pt0-l mr1" title="Gitea-Redaktion" rel="noopener" aria-label="Source and Content on Gitea——Opens in a new window">
|
||||
{{ partial "svg/gitea.svg" (dict "size" $icon_size) }}
|
||||
{{- partial "new-window-icon.html" . -}}
|
||||
</a>
|
||||
{{ end }}
|
||||
{{ with .Param "gitlab" }}
|
||||
<a href="{{ . }}" target="_blank" class="link-transition gitlab link dib z-999 pt3 pt0-l mr1" title="Gitlab link" rel="noopener" aria-label="follow on Gitlab——Opens in a new window">
|
||||
{{ partial "svg/gitlab.svg" (dict "size" $icon_size) }}
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
{{ if $image_link }}
|
||||
<div class="pr3-ns mb4 mb0-ns w-100 w-40-ns">
|
||||
<a href="{{.Permalink}}" class="db grow">
|
||||
<img src="{{ $image_link }}" class="img" alt="image from {{ .Title }}">
|
||||
<img src="{{ $image_link }}" class="img" loading="lazy" alt="image from {{ .Title }}">
|
||||
</a>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
{{ $image := partial "func/GetNamedImage.html" (dict "context" . "name" "featured_image") }}
|
||||
{{ $image_link := ""}}
|
||||
{{ with $image }}
|
||||
{{ $image_link = $image.Permalink }}
|
||||
{{ end }}
|
||||
|
||||
<article class="bb b--light-gray">
|
||||
<div class="db no-underline dark-gray">
|
||||
<div class="f6 pa1 small-caps b pa1 gray bg-light-gray">
|
||||
<div class="flex justify-between">
|
||||
<div>
|
||||
{{- .Params.Sports -}}
|
||||
</div>
|
||||
{{ partial "formatted-date.html" . }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex flex-column flex-row-ns pl1 pr1">
|
||||
{{ if $image_link }}
|
||||
<div class="pr3-ns pt1 w-50 w-20-ns">
|
||||
<a href="{{.Permalink}}" class="db grow">
|
||||
<img src="{{ $image_link }}" class="img" loading="lazy" alt="image from {{ .Title }}">
|
||||
</a>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
<div class="blah w-100{{ if $image_link }} w-60-ns {{ end }}">
|
||||
<h1 class="f3 fw1 athelas mt3 lh-title">
|
||||
<a href="{{.Permalink}}" class="color-inherit dim link">
|
||||
{{ .Title }}
|
||||
</a>
|
||||
</h1>
|
||||
<div class="f6 f5-l lh-copy nested-copy-line-height nested-links">
|
||||
{{ .Summary }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</article>
|
||||
@@ -1,4 +1,10 @@
|
||||
<div class="mb3 pa4 mid-gray overflow-hidden">
|
||||
{{ $image := partial "func/GetNamedImage.html" (dict "context" . "name" "featured_image") }}
|
||||
{{ $image_link := ""}}
|
||||
{{ with $image }}
|
||||
{{ $image_link = $image.Permalink }}
|
||||
{{ end }}
|
||||
|
||||
<div class=" pt2 pb2 pb3 pa3 mid-gray overflow-hidden">
|
||||
{{ if .Date }}
|
||||
<div class="f6">
|
||||
<div class="flex justify-between">
|
||||
@@ -12,6 +18,15 @@
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
<div class="flex">
|
||||
{{ if $image_link }}
|
||||
<div class="pr3-ns mb4 mb0-ns w-20">
|
||||
<a href="{{.Permalink}}" class="db grow">
|
||||
<img src="{{ $image_link }}" class="img" loading="lazy" alt="image from {{ .Title }}">
|
||||
</a>
|
||||
</div>
|
||||
{{ end }}
|
||||
<div class="flex flex-column w-80">
|
||||
<h1 class="f3 near-black">
|
||||
<a href="{{ .Permalink }}" class="link black dim">
|
||||
{{ .Title }}
|
||||
@@ -21,3 +36,6 @@
|
||||
{{ .Summary }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
<svg {{ with .size }}
|
||||
height="{{ . }}" {{ end }}
|
||||
style="enable-background:new 0 0 100 100;"
|
||||
version="1.1"
|
||||
viewBox="0 0 100 100"
|
||||
width="{{ .size }}"
|
||||
xml:space="preserve" xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
|
||||
<g
|
||||
id="g2247"
|
||||
transform="matrix(3.0403395,0,0,3.0403395,-720.82231,0)"
|
||||
style="fill-rule:evenodd;clip-rule:evenodd;">
|
||||
<g
|
||||
id="g2249"
|
||||
style="fill-rule:evenodd;clip-rule:evenodd;">
|
||||
<defs
|
||||
id="defs2251">
|
||||
<path
|
||||
d="M 265.682,27.688 239.69,27.687 c -0.953,0 -1.771,-0.474 -2.247,-1.299 -0.476,-0.825 -0.476,-1.769 10e-4,-2.594 L 250.441,1.296 C 250.917,0.472 251.734,0 252.687,0 c 0.952,0 1.77,0.472 2.246,1.296 l 12.995,22.499 c 0.478,0.825 0.478,1.77 10e-4,2.595 -0.476,0.824 -1.294,1.298 -2.247,1.298 z"
|
||||
id="XMLID_1_" />
|
||||
</defs>
|
||||
<path
|
||||
d="m 265.682,27.688 c -8.72299,-0.004 -17.44621,0.0067 -26.16905,-0.0065 -1.92457,-0.02958 -3.12092,-2.489356 -1.98548,-4.031957 4.33714,-7.500347 8.66172,-15.0082173 13.00673,-22.5038637 0.98691,-1.65150549 3.71307,-1.45740513 4.48225,0.2948344 4.33032,7.5043733 8.67294,15.0018843 12.99557,22.5105463 0.88998,1.640456 -0.46631,3.81037 -2.33002,3.736965 z"
|
||||
id="use2254"
|
||||
style="fill-rule:evenodd;clip-rule:evenodd;" />
|
||||
<clipPath
|
||||
id="XMLID_3_">
|
||||
<use
|
||||
id="use2257"
|
||||
x="0"
|
||||
y="0"
|
||||
width="289.12399"
|
||||
height="77.842003"
|
||||
xlink:href="#XMLID_1_" />
|
||||
</clipPath>
|
||||
</g>
|
||||
</g>
|
||||
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.5 KiB |
@@ -0,0 +1,24 @@
|
||||
<svg
|
||||
{{ with .size }} height="{{ . }}" {{ end }}
|
||||
width="{{ .size }}"
|
||||
style="enable-background:new 0 0 130 130;"
|
||||
viewBox="0 0 130 130"
|
||||
version="1.1"
|
||||
xml:space="preserve"
|
||||
xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
|
||||
<g transform="translate(0,-161.53334)" style="display:inline">
|
||||
<path style="fill-opacity:1;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;stroke-miterlimit:4;stroke-dasharray:none" d="m 27.709937,195.15095 c -9.546573,-0.0272 -22.3392732,6.79805 -21.6317552,23.90397 1.105534,26.72889 25.4565952,29.20839 35.1916502,29.42301 1.068023,5.01357 12.521798,22.30563 21.001818,23.21667 h 37.15277 c 22.27763,-1.66785 38.9607,-75.75671 26.59321,-76.03825 -46.781583,2.47691 -49.995146,2.13838 -88.599758,0 -2.495053,-0.0266 -5.972321,-0.49474 -9.707935,-0.5054 z m 2.491319,9.45886 c 1.351378,13.69267 3.555849,21.70359 8.018216,33.94345 -11.382872,-1.50473 -21.069822,-5.22443 -22.851515,-19.10984 -0.950962,-7.4112 2.390428,-15.16769 14.833299,-14.83361 z" />
|
||||
</g>
|
||||
<g style="display:inline">
|
||||
<rect style="display:inline;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:0.24757317;stroke-opacity:1" id="rect4599" width="34.762054" height="34.762054" x="87.508659" y="18.291576" transform="rotate(25.914715)" ry="5.4825778"/>
|
||||
<path style="display:inline;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:0.26644793px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" d="m 79.804947,57.359056 3.241146,1.609954 V 35.255731 h -3.262698 z"/>
|
||||
</g>
|
||||
<g style="display:inline">
|
||||
<circle transform="rotate(-19.796137)" r="3.4745038" cy="90.077766" cx="49.064713" id="path4606" style="fill-opacity:1;stroke:none;stroke-width:0.26458332;stroke-opacity:1"/>
|
||||
<circle transform="rotate(-19.796137)" r="3.4745038" cy="102.1049" cx="36.810425" id="path4606-3" style="fill-opacity:1;stroke:none;stroke-width:0.26458332;stroke-opacity:1"/>
|
||||
<circle transform="rotate(-19.796137)" r="3.4745038" cy="111.43928" cx="46.484283" id="path4606-1" style="fill-opacity:1;stroke:none;stroke-width:0.26458332;stroke-opacity:1"/>
|
||||
<rect transform="rotate(26.024158)" y="18.061695" x="97.333458" height="27.261492" width="2.6726954" id="rect4629-8" style="fill-opacity:1;stroke:none;stroke-width:0.27444693;stroke-opacity:1"/>
|
||||
<path d="m 76.558096,68.116343 c 12.97589,6.395378 13.012989,4.101862 4.890858,20.907244" style="fill:none;stroke:#B5B5B5;stroke-width:2.68000007;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"/>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 2.6 KiB |
@@ -0,0 +1,13 @@
|
||||
<svg{{ with .size }}
|
||||
height="{{ . }}" {{ end }}
|
||||
aria-hidden="true" focusable="false" width="1em" height="1em"
|
||||
style="-ms-transform: rotate(360deg); -webkit-transform: rotate(360deg); transform: rotate(360deg);"
|
||||
preserveAspectRatio="xMidYMid meet"
|
||||
viewBox="0 0 24 24"
|
||||
width="{{ .size }}"
|
||||
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" >
|
||||
|
||||
<path
|
||||
d="M9.8 14.829l2.2-3.43l2.2 3.43l5.962 5.962A11.946 11.946 0 0 1 12 24c-3.043 0-5.935-1.14-8.162-3.209zM0 12C0 5.385 5.385 0 12 0c6.62 0 12 5.385 12 12c0 2.663-.855 5.175-2.469 7.284l-6.018-6.018c.15-.412.226-.839.226-1.27A3.743 3.743 0 0 0 12 8.257a3.743 3.743 0 0 0-3.739 3.739c0 .431.075.858.226 1.27l-6.018 6.018A11.865 11.865 0 0 1 0 12z"
|
||||
/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 754 B |
@@ -6,7 +6,7 @@ viewBox="0 0 512 512"
|
||||
width="{{ .size }}"
|
||||
xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
|
||||
<path fill="#418AC9" d="M496.262,58.5c-27.346-21.826-109.516-26.801-177.253-19.826c-66.118,6.812-106.564,23.399-162.844,64.305
|
||||
<path d="M496.262,58.5c-27.346-21.826-109.516-26.801-177.253-19.826c-66.118,6.812-106.564,23.399-162.844,64.305
|
||||
c-12.462,9.069-2.103,27.05,12.065,20.644c54.933-24.761,116.668-36.11,176.575-35.83c34.142,0.164,67.924,5.231,101.256,12.275
|
||||
c15.241,3.23,30.443,7.637,46.082,5.48C519.98,101.726,515.885,74.155,496.262,58.5z"/>
|
||||
<path d="M120.973,200.133c-4.164-15.958-2.327-29.432,4.04-40.704c-11.816-8.336-30.155-11.045-48.845-5.784
|
||||
|
||||
|
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.1 KiB |
@@ -0,0 +1,58 @@
|
||||
{{ $key := .page.Title }}
|
||||
{{ $pages := where .page.Site.RegularPages "Type" "in" (slice "posts") }}
|
||||
{{ $count := len $pages }}
|
||||
{{ $param_name := .param_name }}
|
||||
{{ $param_title := .param_title }}
|
||||
{{ $totalWidth := 100.0 }}
|
||||
{{ $totalHeight := 50.0 }}
|
||||
{{ $width := div $totalWidth ( len ( $pages.GroupByDate "2006" ) ) }}
|
||||
|
||||
{{ $color := "#a8c7f0" }}
|
||||
{{ $strokecolor := "#d3e3f8" }}
|
||||
|
||||
<script>
|
||||
function onyearover(year, key, count){
|
||||
// alert( year + key + "!")
|
||||
document.getElementById( key ).innerHTML = year + ": " + count;
|
||||
}
|
||||
|
||||
function onyearout(key){
|
||||
// alert( year + key + "!")
|
||||
document.getElementById( key ).innerHTML = "<div style='color: transparent'>:</div>";
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
<svg width="{{ $totalWidth }}%" height="{{ $totalHeight }}"
|
||||
xmlns="http://www.w3.org/2000/svg">
|
||||
<rect height="100%" width="100%" opacity="0.1" fill="{{ $color }}"/>
|
||||
|
||||
{{ $x := 0 }}
|
||||
{{ $year := 0 }}
|
||||
{{ range sort ( $pages.GroupByDate "2006" ) "Key" }}
|
||||
|
||||
{{ $maxCount := 0 }}
|
||||
{{ $count := 0 }}
|
||||
|
||||
{{ range .Pages }}
|
||||
{{ $maxCount = add 1 $maxCount }}
|
||||
{{ $year = dateFormat "2006" .Date }}
|
||||
{{ $isMember := false }}
|
||||
|
||||
{{ if eq (.Param $param_name ) $key }}
|
||||
{{ $isMember = true }}
|
||||
{{ $count = add 1 $count }}
|
||||
{{ end }}
|
||||
|
||||
{{ end }}
|
||||
|
||||
{{ $height := 0 }}
|
||||
{{ $height = mul (float $totalHeight ) ( div (float $count ) ( float $maxCount ) ) }}
|
||||
<rect onmouseover="onyearover({{ $year }}, {{ $param_title }}, {{ $count }} )" onmouseout="onyearout({{ $param_title }})" height="{{ $height }}" y="{{ sub $totalHeight $height }}" x="{{ $x }}%"
|
||||
width="{{ $width }}%" fill="{{ $color }}" stroke-width="1.5" stroke="{{$strokecolor}}"
|
||||
class="dim"/>
|
||||
|
||||
{{ $x = add $x $width }}
|
||||
{{ end }}
|
||||
</svg>
|
||||
@@ -0,0 +1,85 @@
|
||||
{{ $key := .page.Title }}
|
||||
{{ $pages := .pages }}
|
||||
{{ $count := len $pages }}
|
||||
{{ $param_name := .param_name }}
|
||||
{{ $param_title := .param_title }}
|
||||
{{ $totalWidth := 100.0 }}
|
||||
{{ $totalHeight := 50.0 }}
|
||||
{{ $width := div $totalWidth 12 }}
|
||||
{{ $month_map := .page.Site.Data.month }}
|
||||
|
||||
{{ $color := "#a8c7f0" }}
|
||||
{{ $strokecolor := "#d3e3f8" }}
|
||||
|
||||
<script>
|
||||
function onyearover(key, month, text){
|
||||
// alert( year + key + "!")
|
||||
document.getElementById( key ).innerHTML = month + ": " + text;
|
||||
|
||||
}
|
||||
|
||||
function onyearout(key){
|
||||
// alert( year + key + "!")
|
||||
document.getElementById( key ).innerHTML = "<div style='color: transparent'>:</div>";
|
||||
}
|
||||
</script>
|
||||
|
||||
<svg width="{{ $totalWidth }}%" height="{{ $totalHeight }}"
|
||||
xmlns="http://www.w3.org/2000/svg">
|
||||
{{ $month := 0 }}
|
||||
{{ $actMonth := 0 }}
|
||||
{{ $maxCount := 0 }}
|
||||
{{ $actCount := 0 }}
|
||||
{{ range $pages }}
|
||||
{{ $month = dateFormat "2006-01" .Date }}
|
||||
{{ if ne $month $actMonth }}
|
||||
{{ $actMonth = $month }}
|
||||
{{ $actCount = 0 }}
|
||||
{{ end }}
|
||||
|
||||
{{ $actCount = add 1 $actCount }}
|
||||
|
||||
{{ $maxCount = add 1 $maxCount }}
|
||||
{{ $month = dateFormat "2006-01" .Date }}
|
||||
|
||||
{{ if gt $actCount $maxCount }}
|
||||
{{ $maxCount = $actCount }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
{{ $x := 0 }}
|
||||
{{ $month := 0 }}
|
||||
|
||||
{{ range $i, $sequence := (seq 12) }}
|
||||
{{ $i }}: {{ $sequence }}
|
||||
{{ $x = mul ( sub ( float $sequence ) 1 ) $width }}
|
||||
{{ $m:= printf "%02d" $sequence }}
|
||||
{{ $d:= (print "2006-" $m "-01")}}
|
||||
<rect height="100%" y="0" x="{{ $x }}%" opacity="0.8"
|
||||
width="{{ $width }}%" fill="transparent" stroke-width="2" stroke="{{ $color }}"/>
|
||||
<text y="{{ mul $totalHeight 0.7 }}" x="{{ sub (mul $width $sequence) (div $width 2) }}%" text-anchor="middle" fill="{{ $color }}" font-size="25" font-weight="bold" opacity="0.8">{{ substr (dateFormat "Jan" $d) 0 1 }} </text>
|
||||
{{ end }}
|
||||
|
||||
{{ $adate := "" }}
|
||||
{{ range sort ( $pages.GroupByDate "2006-01" ) "Key" }}
|
||||
{{ range first 1 .Pages }}
|
||||
{{ $month = .Params.Date.Format "1" }}
|
||||
{{ end }}
|
||||
{{ $height := 0 }}
|
||||
{{ $height = mul (float $totalHeight ) ( div (float ( len .Pages ) ) ( float $maxCount ) ) }}
|
||||
|
||||
{{ $x = mul ( sub ( float $month ) 1 ) $width }}
|
||||
|
||||
<rect height="{{ $height }}" y="{{ sub $totalHeight $height }}" x="{{ $x }}%"
|
||||
opacity="0.6"
|
||||
width="{{ $width }}%" fill="{{ $color }}" stroke-width="1.5" stroke="{{$strokecolor}}"/>
|
||||
|
||||
<rect onmouseover="onyearover( {{ $param_title }}, {{index $month_map ($month)}}, {{ i18n "tours" ( len .Pages ) }} )"
|
||||
onmouseout="onyearout({{ $param_title }})"
|
||||
height="100%" y="0" x="{{ $x }}%"
|
||||
width="{{ $width }}%" fill="{{ $color }}" stroke-width="1.5" stroke="{{$strokecolor}}"
|
||||
class="o-10"/>
|
||||
{{$x }}
|
||||
{{ end }}
|
||||
|
||||
</svg>
|
||||
@@ -1,11 +1,10 @@
|
||||
|
||||
{{ define "header" }}{{ partial "page-header.html" . }}{{ end }}
|
||||
|
||||
{{ define "main" }}
|
||||
|
||||
{{ partial "navigation-bar.html" ( dict "context" . "items" (slice "/" ) )}}
|
||||
|
||||
<div class="flex-l mt2 mw8 center">
|
||||
<article class="center cf pv5 ph3 ph4-ns mw7">
|
||||
<article class="center cf pv5 ph3 ph4-ns">
|
||||
<header>
|
||||
<div class="flex justify-between">
|
||||
<div class=" w-50 ">
|
||||
@@ -72,34 +71,13 @@
|
||||
{{ .Content }}
|
||||
</div>
|
||||
|
||||
{{ partial "gallary.html" . }}
|
||||
|
||||
<h1 class="f2">
|
||||
Bilder des Tages
|
||||
</h1>
|
||||
{{ $page := .}}
|
||||
{{ with .Resources.Match "images/*" }}
|
||||
{{ range . }}
|
||||
{{ $gallary_img := .Resize "600x" }}
|
||||
<div class="pv4 b--black-10 ph3 ph0-l">
|
||||
<a href="{{.Permalink}}" class="db ">
|
||||
<img style="max-width: 100%; width: auto; height: auto;" src="{{ $gallary_img.RelPermalink }}"
|
||||
width="{{ .Width }}" height="{{ .Height }}" alt="{{ .Title }}" >
|
||||
</a>
|
||||
{{ if isset $page.Params "captions" }}
|
||||
{{ range first 1 (where $page.Params.captions "name" .Name) }}
|
||||
{{ .text }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
|
||||
</div>
|
||||
<hr>
|
||||
{{ partial "social-activity.html" . }}
|
||||
|
||||
</article>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
<section class="flex-ns flex-wrap justify-around mt5">
|
||||
{{ range .Pages }}
|
||||
<div class="relative w-100 mb4 bg-white">
|
||||
{{ partial "summary.html" . }}
|
||||
{{ partial "summary-with-thumbnail.html" . }}
|
||||
</div>
|
||||
{{ end }}
|
||||
</section>
|
||||
|
||||
@@ -1,19 +1,50 @@
|
||||
|
||||
|
||||
{{ define "main" }}
|
||||
|
||||
{{ partial "navigation-bar.html" ( dict "context" . "items" (slice "/" ) )}}
|
||||
|
||||
<article class="cf pa3 pa4-m pa4-l">
|
||||
<div class="measure-wide-l center f4 lh-copy nested-copy-line-height nested-links nested-img mid-gray">
|
||||
<p>Events nach Sportarten. Navigiere weiter in die Posts einer Sportart.</p>
|
||||
<article class="measure-wide center pa3 pa4-ns nested-copy-line-height nested-img">
|
||||
<section class="cf pv3 pv4-l f4 tc-l measure-wide lh-copy mid-gray">
|
||||
<div class="cf pv3 pv4-l f4 tc-l measure-wide lh-copy mid-gray">
|
||||
<p>Events nach Sportarten. Die Pulsbar zeigt die relative Anzahl pro Jahr. Navigiere weiter in die Posts einer Sportart.</p>
|
||||
</div>
|
||||
</article>
|
||||
<div class="mw8 center">
|
||||
<section class="flex-ns flex-wrap justify-around mt5">
|
||||
{{ range .Data.Terms.ByCount }}
|
||||
<div class="relative w-100 mb4 bg-white">
|
||||
{{ partial "numbered-summary.html" .Page }}
|
||||
</div>
|
||||
{{ end }}
|
||||
</section>
|
||||
|
||||
<div class="w-100">
|
||||
{{ range .Data.Terms.ByCount }}
|
||||
<section class="mt1">
|
||||
<div class="flex flex-column bg-white ba b--white bw2 ">
|
||||
|
||||
<div class="flex bg-white">
|
||||
|
||||
<div class="flex">
|
||||
<div class="f1 w4 tr pr4 pt1 bg-blue white">
|
||||
{{ len .Pages }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="flex flex-column pl2">
|
||||
<div class=" pl2 ">
|
||||
{{ humanize .Page.Section }}
|
||||
</div>
|
||||
|
||||
<a href="{{ .Page.Permalink }}" class="f3 b near-black link black dim pr4 pt2 pb2">
|
||||
{{ .Page.Title }}
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="flex pt1">
|
||||
{{ partial "term-summary.html" (dict "page" .Page "param_name" "sports" "param_title" .Page.Title) }}
|
||||
</div>
|
||||
<div id="{{ .Page.Title }}" class="flex justify-center pt1">
|
||||
<div style="color:transparent">:</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
{{ end }}
|
||||
</div>
|
||||
</article>
|
||||
{{ end }}
|
||||
|
||||
@@ -99,7 +99,7 @@
|
||||
<div class="center flex flex-wrap bg-white">
|
||||
<div class="flex ">
|
||||
<div class="f3 pt3 blue b">
|
||||
<a href="../posts/#{{ .Key }}" class="link black dim">
|
||||
<a href="../years/{{ .Key }}" class="link black dim">
|
||||
{{ .Key }}
|
||||
</a>
|
||||
</div>
|
||||
|
||||
@@ -0,0 +1,71 @@
|
||||
{{ define "main" }}
|
||||
{{ $pages := .Pages }}
|
||||
{{ $year := .Title}}
|
||||
{{ $all_pages := where .Site.RegularPages "Type" "in" (slice "posts") }}
|
||||
{{ $all_pages = sort $all_pages "Date" }}
|
||||
|
||||
{{ $previous_year := "" }}
|
||||
{{ $next_year := "" }}
|
||||
{{ range $all_pages }}
|
||||
{{ if lt (dateFormat "2006" .Params.Date) $year }}
|
||||
{{ $previous_year = dateFormat "2006" .Params.Date }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ range ( sort $all_pages "Date" "desc" ) }}
|
||||
{{ if gt (dateFormat "2006" .Params.Date) $year }}
|
||||
{{ $next_year = dateFormat "2006" .Params.Date }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
{{ partial "navigation-bar.html" ( dict "context" . "items" (slice "years" ) )}}
|
||||
|
||||
{{ $next := printf "../%s" $next_year }}
|
||||
{{ $previous := printf "../%s" $previous_year }}
|
||||
|
||||
<article class="cf pa3 pa4-m pa4-l">
|
||||
<div class="mw8 center flex justify-between">
|
||||
<div>
|
||||
{{ if ne $previous_year "" }}
|
||||
<a href="{{ $previous }}" class="{{ .Site.Params.background_color_class | default "bg-black" }} tc link f5 grow no-underline dib hover-white white-80 pl3 pr3 pt2 pb2">
|
||||
< {{ $previous_year }}
|
||||
</a>
|
||||
{{ end }}
|
||||
</div>
|
||||
<div>
|
||||
{{ if ne $next_year "" }}
|
||||
<a href="{{ $next }}" class="{{ .Site.Params.background_color_class | default "bg-black" }} tc link f5 grow no-underline dib hover-white white-80 pl3 pr3 pt2 pb2">
|
||||
{{ $next_year }} >
|
||||
</a>
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{ $total_distance := 0 }}
|
||||
{{ $total_ascent := 0 }}
|
||||
{{ $total_nr_of_tours := 0 }}
|
||||
|
||||
{{ range .Pages }}
|
||||
{{ $act_ascent:= int .Params.ascent_m }}
|
||||
{{ $total_ascent = add $act_ascent $total_ascent }}
|
||||
|
||||
{{ $act_distance:= int .Params.distance_km }}
|
||||
{{ $total_distance = add $act_distance $total_distance }}
|
||||
|
||||
{{ $total_nr_of_tours = add 1 $total_nr_of_tours }}
|
||||
{{ end }}
|
||||
|
||||
<div class="measure-wide-l center f4 lh-copy nested-copy-line-height nested-links nested-img mid-gray">
|
||||
<p>Touren des Jahres {{ .Title }}!</p>
|
||||
{{ partial "statistic-summary.html" ( dict "total_nr" $total_nr_of_tours "distance" $total_distance "ascent" $total_ascent ) }}
|
||||
</div>
|
||||
</article>
|
||||
<div class="mw8 center">
|
||||
<section class="flex-ns flex-wrap justify-around mt5">
|
||||
{{ range .Pages }}
|
||||
<div class="relative w-100 mb4 bg-white">
|
||||
{{ partial "summary-with-thumbnail.html" . }}
|
||||
</div>
|
||||
{{ end }}
|
||||
</section>
|
||||
</div>
|
||||
{{ end }}
|
||||
@@ -0,0 +1,38 @@
|
||||
{{ define "main" }}
|
||||
|
||||
{{ partial "navigation-bar.html" ( dict "context" . "items" (slice "/" ) )}}
|
||||
|
||||
<article class="measure-wide center pa3 pa4-ns nested-copy-line-height nested-img">
|
||||
<section class="cf pv3 pv4-l f4 tc-l measure-wide lh-copy mid-gray">
|
||||
<div class="cf pv3 pv4-l f4 tc-l measure-wide lh-copy mid-gray">
|
||||
<p>Events nach Jahren. Die Pulsbar zeigt die relative Anzahl pro Monat. Navigiere weiter in die Posts eines Jahres.</p>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<div class="w-100">
|
||||
{{ range .Data.Terms.Alphabetical.Reverse }}
|
||||
<section class="mt1">
|
||||
<div class="flex flex-column bg-white ba b--white bw2 ">
|
||||
|
||||
<a href="{{ .Page.Permalink }}" class=" link black dim ">
|
||||
<div class="flex flex-box justify-between bg-blue white">
|
||||
<div class="flex f1 pl2">
|
||||
{{ .Page.Title }}
|
||||
</div>
|
||||
<div class="f5 pr2 pt4 ">
|
||||
{{ T "tours" (len .Pages) }}
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
<div class="flex pt1">
|
||||
{{ partial "years-summary.html" (dict "page" .Page "param_title" .Page.Title "pages" .Pages) }}
|
||||
</div>
|
||||
<div id="{{ .Page.Title }}" class="flex justify-center pt1">
|
||||
<div style="color:transparent">:</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
{{ end }}
|
||||
</div>
|
||||
</article>
|
||||
{{ end }}
|
||||
|
After Width: | Height: | Size: 4.2 KiB |