Compare commits
6
Commits
3b1797061e
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d1d6a60aa3 | ||
|
|
8717ff83a7 | ||
|
|
9d0754e45c | ||
|
|
8b2dea6ffd | ||
|
|
65b88b6885 | ||
|
|
24b917629c |
@@ -1,2 +1,3 @@
|
|||||||
/public/
|
/public/
|
||||||
/resources/_gen/
|
/resources/_gen/
|
||||||
|
*.lock
|
||||||
|
|||||||
@@ -16,36 +16,44 @@ 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] (die extended Version wird nicht benötigt).
|
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.78.1 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.78.1/hugo_0.78.1_Linux-64bit.tar.gz
|
|
||||||
> ...
|
```console
|
||||||
> hugo_0.78.1_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.78.1_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.78.1_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.78.1_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.78.1-347F2DE6 linux/amd64 BuildDate: 2020-11-05T09:39:06Z
|
$ 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').
|
||||||
|
|
||||||
@@ -54,7 +62,9 @@ Als Theme wird Ananke verwendet (wurde einmalig als Submodul eingebunden mit 'gi
|
|||||||
|
|
||||||
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.
|
||||||
|
|
||||||
@@ -62,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/gitea-dump.zip
|
|
||||||
>Password:
|
|
||||||
>...
|
|
||||||
>gitea-dump-1603992523.zip 100% 365MB 1.6MB/s 03:55
|
|
||||||
|
|
||||||
Server:
|
|
||||||
>[kollegen@despina ~]$ rm gitea-dump-1603992523.zip
|
|
||||||
|
|
||||||
|
|
||||||
## Restore
|
|
||||||
tbc
|
|
||||||
|
|||||||
+1
-1
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
+3
-2
@@ -1,5 +1,5 @@
|
|||||||
title = "Kollegenrunde"
|
title = "Kollegenrunde"
|
||||||
baseURL = "https://kollegen.uber.space/kollegenrunde"
|
baseURL = "https://kollegenrunde.kollegen.uber.space/"
|
||||||
languageCode = "de"
|
languageCode = "de"
|
||||||
theme = "ananke"
|
theme = "ananke"
|
||||||
|
|
||||||
@@ -32,7 +32,7 @@ archetypeDir = "../kollegen-posts/archetypes"
|
|||||||
|
|
||||||
[params]
|
[params]
|
||||||
sectionPagesMenu = "main"
|
sectionPagesMenu = "main"
|
||||||
favicon = ""
|
favicon = "/images/favicon.ico"
|
||||||
|
|
||||||
site_logo = ""
|
site_logo = ""
|
||||||
title_short = "KR"
|
title_short = "KR"
|
||||||
@@ -44,6 +44,7 @@ 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 = ""
|
||||||
|
|||||||
@@ -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,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) }}
|
||||||
|
|||||||
@@ -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,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,12 +1,12 @@
|
|||||||
<svg{{ with .size }}
|
<svg{{ with .size }}
|
||||||
height="{{ . }}" {{ end }}
|
height="{{ . }}" {{ end }}
|
||||||
style="enable-background:new 0 0 100 100;"
|
style="enable-background:new 0 0 100 100;"
|
||||||
version="1.1"
|
version="1.1"
|
||||||
viewBox="0 0 512 512"
|
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 |
Binary file not shown.
|
After Width: | Height: | Size: 4.2 KiB |
Reference in New Issue
Block a user