Compare commits

..
28 Commits
Author SHA1 Message Date
chris d1d6a60aa3 garmin activity link enabled 2023-08-25 21:31:18 +02:00
chris 8717ff83a7 Subdomain enabled 2023-08-23 09:55:43 +02:00
chris 9d0754e45c Merge branch 'master' of https://kollegen.uber.space/gitea/kollegenrunde/kollegen-hugo 2022-02-23 20:02:22 +01:00
chris 8b2dea6ffd favicon 2022-02-23 20:00:36 +01:00
chris 65b88b6885 „README.md“ ändern 2022-02-08 21:05:55 +01:00
chris 24b917629c Komoot tour link 2021-06-20 08:09:09 +02:00
chris 3b1797061e Merge branch 'master' of https://kollegen.uber.space/gitea/kollegenrunde/kollegen-hugo 2021-02-21 22:10:04 +01:00
chris ed28d29e9b changed to locale hugo_cachedir by using --cacheDir 2021-02-21 22:09:37 +01:00
chris 162e87b9ca Removed npm parapgraph 2020-11-29 11:54:33 +01:00
chris 65791c68cb fresh design for years 2020-11-28 19:16:23 +01:00
chris 846e7132a4 added license 2020-11-24 20:54:00 +01:00
chris 221f067d64 renamed term eventtypes to events 2020-11-21 09:06:26 +01:00
chris 249f5ee69c renamed term eventtypes to events 2020-11-21 08:59:46 +01:00
chris 9d70193ebb fixed members pulsbar 2020-11-19 22:13:09 +01:00
chris 91efca62cd added navigations 2020-11-15 22:25:34 +01:00
chris f25b5ea0a8 added years 2020-11-14 03:03:40 +01:00
chris 3976984458 terms list with thumbnails 2020-11-12 22:10:20 +01:00
chris 9c739fc0e5 terms list with thumbnails 2020-11-12 22:05:39 +01:00
chris 5986899c43 List all posts 2020-11-12 00:32:07 +01:00
chris 2864a34525 smaller caption 2020-11-11 23:30:20 +01:00
chris e0437f7164 dark theme 2020-11-09 21:44:12 +01:00
chris ca65e84af8 Added image viewer 2020-11-08 14:49:15 +01:00
chris eaba241b14 „README.md“ ändern 2020-11-07 08:43:04 +01:00
chris 99fded6896 „README.md“ ändern 2020-11-04 18:57:40 +01:00
chris f17d03dfe2 added home tiles 2020-11-03 21:48:03 +01:00
chris 75bdd4e384 switched to events per year 2020-11-02 23:58:44 +01:00
chris 8eacfe70a6 fixed terms hover 2020-11-02 23:55:36 +01:00
chris 782f4498e8 fixed members hover 2020-11-02 23:51:16 +01:00
37 changed files with 1015 additions and 182 deletions
+1
View File
@@ -1,2 +1,3 @@
/public/ /public/
/resources/_gen/ /resources/_gen/
*.lock
+3 -20
View File
@@ -1,21 +1,4 @@
MIT License CREATIVE COMMONS BY 4.0
Copyright (c) 2020 Christian Schulzendorff Creative Commons Namensnennung 4.0 International Lizenz
http://creativecommons.org/licenses/by/4.0/
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.
+104 -62
View File
@@ -16,43 +16,55 @@ 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: 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 ```console
>$ cd ~/kred $ mkdir ~/kred
>$ mkdir hugo $ cd ~/kred
$ mkdir hugo
```
### Hugo-Release installieren ### 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: Wenn das aktuelle Hugo-Relase 0.78.1 ist, gilt für Linux:
>$ wget https://github.com/gohugoio/hugo/releases/download/v0.76.4/hugo_0.76.4_Linux-64bit.tar.gz
> ... ```console
> hugo_0.76.4_Linux-64bit.tar. 100%[============================================>] 13,31M 1,54MB/s in 25s $ wget https://github.com/gohugoio/hugo/releases/download/v0.78.1/hugo_0.78.1_Linux-64bit.tar.gz
> 2020-10-13 21:09:43 (547 KB/s) - »hugo_0.76.4_Linux-64bit.tar.gz« gespeichert [13953675/13953675] ...
> hugo_0.78.1_Linux-64bit.tar. 100%[============================================>] 13,31M 1,54MB/s in 25s
>$ tar -xvf hugo_0.76.4_Linux-64bit.tar.gz --directory hugo 2020-10-13 21:09:43 (547 KB/s) - »hugo_0.78.1_Linux-64bit.tar.gz« gespeichert [13953675/13953675]
>$ rm hugo_0.76.4_Linux-64bit.tar.gz $ 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: Nach erfolgreicher Installation sollte Hugo seine Version ausgeben können:
>$ hugo/hugo version ```console
> Hugo Static Site Generator v0.76.4-50DFE40B linux/amd64 BuildDate: 2020-10-12T08:36:20Z $ hugo/hugo version
Hugo Static Site Generator v0.78.1-347F2DE6 linux/amd64 BuildDate: 2020-11-05T09:39:06Z
```
### Web-Repository holen ### Web-Repository holen
Das Repository wird geklont und installiert sich im Unterverzeichnis: Das Repository wird geklont und installiert sich im Unterverzeichnis:
>$ git clone --recurse-submodules https://kollegen.uber.space/gitea/kollegenrunde/kollegen-hugo.git ```console
>$ ls kollegen-hugo $ git clone --recurse-submodules https://kollegen.uber.space/gitea/kollegenrunde/kollegen-hugo.git
> archetypes config.toml data layouts LICENSE README.md resources static themes $ ls kollegen-hugo
archetypes config.toml data layouts LICENSE README.md resources static themes
```
Als Theme wird Ananke verwendet (wurde einmalig als Submodul eingebunden mit 'git submodule add https://github.com/budparr/gohugo-theme-ananke.git themes/ananke'). Als Theme wird Ananke verwendet (wurde einmalig als Submodul eingebunden mit 'git submodule add https://github.com/budparr/gohugo-theme-ananke.git themes/ananke').
### Content/Repository holen (Posts) ### 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: 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. Damit ist das Setup abgeschlossen.
@@ -60,73 +72,103 @@ Damit ist das Setup abgeschlossen.
Die Pflege des Servers erfolgt über ssh: Die Pflege des Servers erfolgt über ssh:
>$ ssh kollegen@despina.uberspace.de ```console
>Password: $ ssh kollegen@despina.uberspace.de
>... Password:
>[kollegen@despina ~]$ ...
[kollegen@despina ~]$
```
**Gitea** wird im im Lab beschrieben installiert: (https://lab.uberspace.de/guide_gitea.html). Einzige Abweichung ist die Root-Url in der app.ini: ### Subdomain
>[kollegen@despina ~]$ cat gitea/custom/conf/app.ini | grep ROOT_URL 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.
> ROOT_URL = https://%(DOMAIN)s/gitea/
Im Gitea ist die Organisation 'kollegenrunde' mit die beiden Repositories kollegen-hugo und kollegen-posts anzulegen. Einrichten der Subdomain:
**Hugo** wird ebenfalls wie im Lab beschrieben installiert: (https://lab.uberspace.de/guide_hugo.html). Es wird lediglich ~/bin/hugo benötigt. ```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.
>[kollegen@despina ~]$ ~/bin/hugo version
Hugo Static Site Generator v0.74.3-DA0437B4 linux/amd64 BuildDate: 2020-07-23T16:22:34Z
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. 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.
>[kollegen@despina ~]$ mkdir ~/kollegengen ```console
>[kollegen@despina ~]$ git clone https://kollegen.uber.space/gitea/kollegenrunde/kollegen-hugo.git ~/kollegengen/kollegen-hugo [kollegen@despina ~]$ mkdir ~/kollegengen
>[kollegen@despina ~]$ cp ~/kollegengen/kollegen-hugo/admin/generate.sh ~/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: Zur Erfolgskontrolle kann die Website nun generiert und gepublished werden:
>[kollegen@despina ~]$ ~/kollegengen/generate.sh ```console
[kollegen@despina ~]$ ~/kollegengen/generate.sh
```
Es sollte die Ausgabe "Ready, Blog created in /var/www/virtual/kollegen/html/kollegenrunde!" erfolgen. Es sollte die Ausgabe "Ready, Blog created in /var/www/virtual/kollegen/html/kollegenrunde!" erfolgen.
### Git-Hook einrichten ### ### Git-Hook einrichten ###
Per **Gitea-Hook** wird das Skript generate.sh nun in das git-update-Event der beiden Repositories eingebunden. Damit wird die Website mit jeden Push neu erzeugt. 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
Das Hook Skript ist für beide Repositories das gleiche und wird ebenfalls im admin-Verzeichnis von kollegen-hugo gepfelgt. Die Aktivierung kann entweder mit der Gitea-Webkonsole oder auf dem Server erfolgen.
***Serverseitig*** installiert man das Script durch kopieren in die Hooks (darauf achten, dass die Skripte ausführbar sind - 0775): ***Serverseitig*** installiert man das Script durch kopieren in die Hooks (darauf achten, dass die Skripte ausführbar sind - 0775):
>[kollegen@despina ~]$ cp ~/kollegengen/kollegen-hugo/admin/post-receive ~/gitea-repositories/kollegenrunde/kollegen-hugo.git/hooks/post-receive.d/ ```console
>[kollegen@despina ~]$ cp ~/kollegengen/kollegen-hugo/admin/post-receive ~/gitea-repositories/kollegenrunde/kollegen-posts.git/hooks/post-receive.d/ [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. 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 kann man nun sehen, dass die post-receive-Hooks aktiv sind (grüner Punkt), s. 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(
(https://kollegen.uber.space/gitea/kollegenrunde/kollegen-hugo/settings/hooks/git) bzw. (https://kollegen.uber.space/gitea/kollegenrunde/kollegen-posts/settings/hooks/git).
# Backup and Restore # Backup and Restore
Das Backup ist ein manueller Vorgang. Es wird beschrieben, wie alle Daten auf dem lokalen Server gespeichert werden. Da alles in gitea abgelegt ist, wird nur dieses gesichert.
## Gitea-Backup Da alles in gitea abgelegt ist, s. Backup dort.
Auf Uberspace wird ein dump erzeugt und dann auf den lokalen Server kopiert.
Auf den Server per ssh:
>$ ssh kollegen@despina.uberspace.de
>Password:
>[kollegen@despina ~]$ gitea/gitea dump
>...
>[kollegen@despina ~]$ ls gitea-dump-*
> gitea-dump-1603992523.zip
Lokal:
>$ scp kollegen@kollegen.uber.space:gitea-dump-1603992523.zip /media/diskstation/externalAccess/backups/uberspace-kollegen/
>Password:
>...
>gitea-dump-1603992523.zip 100% 365MB 1.6MB/s 03:55
Server:
>[kollegen@despina ~]$ rm gitea-dump-1603992523.zip
## Restore
tbc
+2 -3
View File
@@ -11,7 +11,7 @@ HUGO=~/bin/hugo
#HUGO=~/kred/hugo/hugo #HUGO=~/kred/hugo/hugo
# Path to output destination on uberspace and local (for testing). Folder must exists. # Path to output destination on uberspace and local (for testing). Folder must exists.
PUBLIC_WWW=/var/www/virtual/$USER/html/kollegenrunde PUBLIC_WWW=/var/www/virtual/$USER/kollegenrunde.kollegen.uber.space
#PUBLIC_WWW=~/hugotest/html/kollegenrunde #PUBLIC_WWW=~/hugotest/html/kollegenrunde
# Working dir: here is the script and git's working dirs # Working dir: here is the script and git's working dirs
@@ -39,7 +39,6 @@ TMPGIT_POSTS=$GENDIR/kollegen-posts
GIT_HUGO=https://kollegen.uber.space/gitea/kollegenrunde/kollegen-hugo.git GIT_HUGO=https://kollegen.uber.space/gitea/kollegenrunde/kollegen-hugo.git
GIT_POSTS=https://kollegen.uber.space/gitea/kollegenrunde/kollegen-posts.git GIT_POSTS=https://kollegen.uber.space/gitea/kollegenrunde/kollegen-posts.git
# Log a text file content # Log a text file content
log_file () { log_file () {
cat $1 cat $1
@@ -123,7 +122,7 @@ fi
# Hugo anschmeißen # Hugo anschmeißen
log "Starting hugo" log "Starting hugo"
cd $TMPGIT_HUGO && $HUGO --destination $TMPPUBLIC > $TMPLOG 2> $TMPERR cd $TMPGIT_HUGO && $HUGO --cacheDir=$HOME/tmp/hugo_cache --destination $TMPPUBLIC > $TMPLOG 2> $TMPERR
if [ -f $TMPLOG ] if [ -f $TMPLOG ]
then then
+4
View File
@@ -1,2 +1,6 @@
#!/bin/sh #!/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 ~/kollegengen/generate.sh
+235
View File
@@ -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; } }
File diff suppressed because one or more lines are too long
+14 -7
View File
@@ -1,6 +1,6 @@
title = "Kollegenrunde" title = "Kollegenrunde"
baseURL = "https://kollegen.uber.space/kollegenrunde" baseURL = "https://kollegenrunde.kollegen.uber.space/"
languageCode = "de-de" languageCode = "de"
theme = "ananke" theme = "ananke"
DefaultContentLanguage = "de" DefaultContentLanguage = "de"
@@ -11,26 +11,28 @@ enableRobotsTXT = true
contentDir = "../kollegen-posts/content" contentDir = "../kollegen-posts/content"
archetypeDir = "../kollegen-posts/archetypes" archetypeDir = "../kollegen-posts/archetypes"
[de]
title = "Kollegenrunde"
[taxonomies] [taxonomies]
category = "categories" category = "categories"
tag = "tags" tag = "tags"
sport = "sports" sport = "sports"
eventtype = "eventtypes" event = "events"
member = "members" member = "members"
location = "locations" location = "locations"
year = "years"
[sitemap] [sitemap]
changefreq = "monthly" changefreq = "monthly"
priority = 0.5 priority = 0.5
filename = "sitemap.xml" filename = "sitemap.xml"
[permalinks]
# :title is used if :slug is not defined in post frontmatter
posts = "posts/:year/:title/"
[params] [params]
sectionPagesMenu = "main" sectionPagesMenu = "main"
favicon = "" favicon = "/images/favicon.ico"
site_logo = "" site_logo = ""
title_short = "KR" title_short = "KR"
@@ -42,12 +44,12 @@ archetypeDir = "../kollegen-posts/archetypes"
gitea = "https://kollegen.uber.space/gitea/kollegenrunde/kollegen-posts" gitea = "https://kollegen.uber.space/gitea/kollegenrunde/kollegen-posts"
gitlab = "" gitlab = ""
strava = "https://www.strava.com/clubs/kollegenrunde" strava = "https://www.strava.com/clubs/kollegenrunde"
garmin = "https://connect.garmin.com/modern/group/3195407"
linkedin = "" linkedin = ""
mastodon = "" mastodon = ""
slack = "" slack = ""
stackoverflow = "" stackoverflow = ""
rss = "" 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-" # 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" background_color_class = "bg-dark-blue"
featured_image = "/images/070830-schatten.jpg" featured_image = "/images/070830-schatten.jpg"
@@ -62,3 +64,8 @@ archetypeDir = "../kollegen-posts/archetypes"
name = "Statistik" name = "Statistik"
identifier = "stats" identifier = "stats"
url = "/stats/" url = "/stats/"
[languages]
[languages.de]
title = "Kollegenrunde"
weight = 1
+4
View File
@@ -0,0 +1,4 @@
[tours]
one = "Eine Tour"
other = "{{ .Count }} Touren"
@@ -1,6 +1,6 @@
{{ define "main" }} {{ 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"> <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"> <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"> <div class="mw8 center">
<section class="flex-ns flex-wrap justify-around mt5"> <section class="flex-ns flex-wrap justify-around mt5">
{{ range .Pages }} {{ range .Pages }}
<div class="relative w-100 mb4 bg-white"> <div class="relative w-100 mb3 bg-white">
{{ partial "summary.html" . }} {{ partial "summary-with-thumbnail.html" . }}
</div> </div>
{{ end }} {{ end }}
</section> </section>
@@ -34,10 +34,10 @@
</div> </div>
<div class="flex pt1"> <div class="flex pt1">
{{ partial "term-summary.html" (dict "page" .Page "param_name" "eventtypes" "param_title" .Page.Title ) }} {{ partial "term-summary.html" (dict "page" .Page "param_name" "events" "param_title" .Page.Title ) }}
</div> </div>
<div id="{{ .Page.Title }}" class="flex justify-center pt1"> <div id="{{ .Page.Title }}" class="flex justify-center pt1">
<br> <div style="color:transparent">:</div>
</div> </div>
</div> </div>
+53 -5
View File
@@ -1,6 +1,6 @@
{{ define "main" }} {{ define "main" }}
{{ partial "navigation-bar.html" ( dict "context" . "items" (slice "sports" "eventtypes" "members" "locations") )}} {{ 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 measure-wide lh-copy mid-gray"> <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. Der Kollege lädt ein, man trifft sich zum Radeln.
@@ -21,9 +21,57 @@
{{ end }} {{ end }}
{{ end }} {{ end }}
<p></p> <div class="flex flex-wrap justify-center">
{{ partial "statistic-summary.html" ( dict "total_nr" $total_nr_of_tours "distance" $total_distance "ascent" $total_ascent ) }} <div class="flex flex-column items-center pa3 ma3 bg-white">
</article> <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. */}} {{/* 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") }} {{ $mainSections := .Site.Params.mainSections | default (slice "post") }}
{{/* Create a variable with that section to use in multiple places. */}} {{/* Create a variable with that section to use in multiple places. */}}
+1 -1
View File
@@ -26,7 +26,7 @@
<section class="flex-ns flex-wrap justify-around mt5"> <section class="flex-ns flex-wrap justify-around mt5">
{{ range .Pages }} {{ range .Pages }}
<div class="relative w-100 mb4 bg-white"> <div class="relative w-100 mb4 bg-white">
{{ partial "summary.html" . }} {{ partial "summary-with-thumbnail.html" . }}
</div> </div>
{{ end }} {{ end }}
</section> </section>
+1 -1
View File
@@ -38,7 +38,7 @@
{{ partial "term-summary.html" (dict "page" .Page "param_name" "locations" "param_title" .Page.Title ) }} {{ partial "term-summary.html" (dict "page" .Page "param_name" "locations" "param_title" .Page.Title ) }}
</div> </div>
<div id="{{ .Page.Title }}" class="flex justify-center pt1"> <div id="{{ .Page.Title }}" class="flex justify-center pt1">
<br> <div style="color:transparent">:</div>
</div> </div>
</div> </div>
+1 -1
View File
@@ -27,7 +27,7 @@
<section class="flex-ns flex-wrap justify-around mt5"> <section class="flex-ns flex-wrap justify-around mt5">
{{ range .Pages }} {{ range .Pages }}
<div class="relative w-100 mb4 bg-white"> <div class="relative w-100 mb4 bg-white">
{{ partial "summary.html" . }} {{ partial "summary-with-thumbnail.html" . }}
</div> </div>
{{ end }} {{ end }}
</section> </section>
+2 -2
View File
@@ -5,7 +5,7 @@
<article class="measure-wide center pa3 pa4-ns nested-copy-line-height nested-img"> <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"> <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"> <div class="cf pv3 pv4-l f4 tc-l measure-wide lh-copy mid-gray">
<p>Events nach Teilnehmenden. Die Pulsbar 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> </div>
</section> </section>
@@ -37,7 +37,7 @@
{{ partial "members-summary.html" (dict "page" .Page "param_title" .Page.Title ) }} {{ partial "members-summary.html" (dict "page" .Page "param_title" .Page.Title ) }}
</div> </div>
<div id="{{ .Page.Title }}" class="flex justify-center pt1"> <div id="{{ .Page.Title }}" class="flex justify-center pt1">
<br> <div style="color:transparent">:</div>
</div> </div>
</div> </div>
+72
View File
@@ -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>
+137
View File
@@ -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>
+6 -9
View File
@@ -8,15 +8,16 @@
{{/* {{ $width := div $totalWidth ( len ( $pages.GroupByDate "2006" ) ) }} */}} {{/* {{ $width := div $totalWidth ( len ( $pages.GroupByDate "2006" ) ) }} */}}
{{ $width := div $totalWidth ( len ( $pages.GroupByDate "2006" ) ) }} {{ $width := div $totalWidth ( len ( $pages.GroupByDate "2006" ) ) }}
{{ $color := "#357edd" }} {{ $color := "#a8c7f0" }}
{{ $strokecolor := "#d3e3f8" }}
<script> <script>
function onyearover(year, key, count){ function onyearover(year, key, count){
document.getElementById( key ).innerHTML = year + ": " + count + " km"; document.getElementById( key ).innerHTML = year + ": " + count;
} }
function onyearout(key){ function onyearout(key){
document.getElementById( key ).innerHTML = "<br>"; document.getElementById( key ).innerHTML = "<div style='color: transparent'>:</div>";
} }
</script> </script>
@@ -53,17 +54,13 @@ document.getElementById( key ).innerHTML = "<br>";
{{ end }} {{ end }}
{{ $height := 0 }} {{ $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 ) ) }} {{ $height = mul (float $totalHeight ) ( div (float $count ) ( float $maxCount ) ) }}
{{ end }}
{{/* $maxDist */}} {{/* $maxDist */}}
{{/* $dist */}} {{/* $dist */}}
{{/* $x */}} {{/* $x */}}
{{/* $height */}} {{/* $height */}}
<rect onmouseover="onyearover({{ $year }}, {{ $param_title }}, {{ math.Round $dist }} )" onmouseout="onyearout({{ $param_title }})" opacity="0.2" height="{{ $height }}" y="{{ sub $totalHeight $height }}" x="{{ $x }}%" <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="{{$color}}"/> width="{{ $width }}%" fill="{{ $color }}" stroke-width="1.5" stroke="{{$strokecolor}}" class="dim"/>
{{ $x = add $x $width }} {{ $x = add $x $width }}
{{ end }} {{ end }}
+8 -4
View File
@@ -1,10 +1,14 @@
<footer class="{{ .Site.Params.background_color_class | default "bg-black" }} bottom-0 w-100 pa3" role="contentinfo"> <footer class="{{ .Site.Params.background_color_class | default "bg-black" }} bottom-0 w-100 pa3" role="contentinfo">
<div class="flex justify-between"> <div class="flex justify-between flex-wrap">
<a class="f4 fw4 hover-white no-underline white-70 dn dib-ns pv2 ph3" href="{{ .Site.BaseURL }}" > <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">
&copy; {{ with .Site.Copyright | default .Site.Title }} {{ . | safeHTML }} {{ now.Format "2006"}} {{ end }} &copy; {{ with .Site.Copyright | default .Site.Title }} {{ . | safeHTML }} {{ now.Format "2006"}} {{ end }}
</a> </a>
<div class="white-40 pv2">Generiert am {{ .PublishDate.Format "2.1.2006 15:04:05" }}</div> <a rel="license" href="http://creativecommons.org/licenses/by/4.0/">
<div>{{ partial "social-follow.html" . }}</div> <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> </div>
</footer> </footer>
+12 -1
View File
@@ -1,7 +1,13 @@
{{ $icon_size := "32px" }} {{ $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" }} {{ 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) }} {{ partial "svg/strava.svg" (dict "size" $icon_size) }}
</a> </a>
{{ end }} {{ end }}
@@ -12,3 +18,8 @@
</a> </a>
{{ end }} {{ 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 }}
+6
View File
@@ -6,6 +6,12 @@
{{- partial "new-window-icon.html" . -}} {{- partial "new-window-icon.html" . -}}
</a> </a>
{{ end }} {{ 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" }} {{ 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"> <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) }} {{ partial "svg/stackoverflow.svg" (dict "size" $icon_size) }}
+1 -1
View File
@@ -18,7 +18,7 @@
{{ if $image_link }} {{ if $image_link }}
<div class="pr3-ns mb4 mb0-ns w-100 w-40-ns"> <div class="pr3-ns mb4 mb0-ns w-100 w-40-ns">
<a href="{{.Permalink}}" class="db grow"> <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> </a>
</div> </div>
{{ end }} {{ 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>
+19 -1
View File
@@ -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 }} {{ if .Date }}
<div class="f6"> <div class="f6">
<div class="flex justify-between"> <div class="flex justify-between">
@@ -12,6 +18,15 @@
</div> </div>
</div> </div>
{{ end }} {{ 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"> <h1 class="f3 near-black">
<a href="{{ .Permalink }}" class="link black dim"> <a href="{{ .Permalink }}" class="link black dim">
{{ .Title }} {{ .Title }}
@@ -21,3 +36,6 @@
{{ .Summary }} {{ .Summary }}
</div> </div>
</div> </div>
</div>
</div>
+40
View File
@@ -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

+13
View File
@@ -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

+1 -1
View File
@@ -6,7 +6,7 @@ viewBox="0 0 512 512"
width="{{ .size }}" width="{{ .size }}"
xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> 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 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"/> 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 <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

+1 -1
View File
@@ -18,7 +18,7 @@ document.getElementById( key ).innerHTML = year + ": " + count;
function onyearout(key){ function onyearout(key){
// alert( year + key + "!") // alert( year + key + "!")
document.getElementById( key ).innerHTML = "<br>"; document.getElementById( key ).innerHTML = "<div style='color: transparent'>:</div>";
} }
</script> </script>
+85
View File
@@ -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>
+4 -26
View File
@@ -1,11 +1,10 @@
{{ define "header" }}{{ partial "page-header.html" . }}{{ end }} {{ define "header" }}{{ partial "page-header.html" . }}{{ end }}
{{ define "main" }} {{ define "main" }}
{{ partial "navigation-bar.html" ( dict "context" . "items" (slice "/" ) )}} {{ partial "navigation-bar.html" ( dict "context" . "items" (slice "/" ) )}}
<div class="flex-l mt2 mw8 center"> <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> <header>
<div class="flex justify-between"> <div class="flex justify-between">
<div class=" w-50 "> <div class=" w-50 ">
@@ -72,34 +71,13 @@
{{ .Content }} {{ .Content }}
</div> </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> <hr>
{{ partial "social-activity.html" . }} {{ partial "social-activity.html" . }}
</article> </article>
</div> </div>
+1 -1
View File
@@ -26,7 +26,7 @@
<section class="flex-ns flex-wrap justify-around mt5"> <section class="flex-ns flex-wrap justify-around mt5">
{{ range .Pages }} {{ range .Pages }}
<div class="relative w-100 mb4 bg-white"> <div class="relative w-100 mb4 bg-white">
{{ partial "summary.html" . }} {{ partial "summary-with-thumbnail.html" . }}
</div> </div>
{{ end }} {{ end }}
</section> </section>
+1 -1
View File
@@ -39,7 +39,7 @@
{{ partial "term-summary.html" (dict "page" .Page "param_name" "sports" "param_title" .Page.Title) }} {{ partial "term-summary.html" (dict "page" .Page "param_name" "sports" "param_title" .Page.Title) }}
</div> </div>
<div id="{{ .Page.Title }}" class="flex justify-center pt1"> <div id="{{ .Page.Title }}" class="flex justify-center pt1">
<br> <div style="color:transparent">:</div>
</div> </div>
</div> </div>
+1 -1
View File
@@ -99,7 +99,7 @@
<div class="center flex flex-wrap bg-white"> <div class="center flex flex-wrap bg-white">
<div class="flex "> <div class="flex ">
<div class="f3 pt3 blue b"> <div class="f3 pt3 blue b">
<a href="../posts/#{{ .Key }}" class="link black dim"> <a href="../years/{{ .Key }}" class="link black dim">
{{ .Key }} {{ .Key }}
</a> </a>
</div> </div>
+71
View File
@@ -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 }}
+38
View File
@@ -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 }}
Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB