From 22599f087d3c8bfd720afe0991ba0845895b227d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julian-Samuel=20Geb=C3=BChr?= Date: Mon, 16 Sep 2019 19:33:47 +0200 Subject: [PATCH] Addeed mastodon social button --- layouts/_default/single.html | 297 ++++++++++++++++++++++++++++ layouts/partials/footer.html | 132 +++++++++++++ layouts/partials/get_cookie.html | 17 ++ layouts/partials/topnavigation.html | 118 +++++++++++ 4 files changed, 564 insertions(+) create mode 100644 layouts/_default/single.html create mode 100644 layouts/partials/footer.html create mode 100644 layouts/partials/get_cookie.html create mode 100644 layouts/partials/topnavigation.html diff --git a/layouts/_default/single.html b/layouts/_default/single.html new file mode 100644 index 0000000..2194098 --- /dev/null +++ b/layouts/_default/single.html @@ -0,0 +1,297 @@ +{{ define "body" }} + + +{{ end }} + + +{{ define "main" }} + {{ $scratch := newScratch }} + {{ if .Site.Params.writers }} + {{ $scratch.Set "writer" (index .Site.Params.writers (lower .Params.writer) | default dict) }} + {{ else }} + {{ $scratch.Set "writer" (.Site.Params.social | default dict) }} + {{ end }} + {{ $writer := $scratch.Get "writer" }} +
+ {{ if and (isset .Params "image") .Params.image }} +
+ + + {{ else }} + +
+ + {{ end }} + +
+

{{ .Title }}

+
+
+
+
+ {{ .Content }} +
+
+ + + + {{ if and (isset .Site.Params "author") .Site.Params.author }} +
+ +
+ {{ if and (isset .Params "writer") $writer.email }} + {{ .Params.writer | default .Site.Params.author }} + {{ else }} + {{ .Params.writer | default .Site.Params.author }} + {{ end }} + + Written by: +
+
+ {{ if and (isset .Params "writer") $writer.bio }} + {{ range $writer.bio }} +

{{ . | default "" | safeHTML }}

+ {{ end }} + {{ else }} + {{ range .Site.Params.bio }} +

{{ . | default "" | safeHTML }}

+ {{ end }} + {{ end }} + {{ if isset .Params "writer" }} + {{ with $writer.facebook }} + + {{end}} + + {{ with $writer.googleplus }} + + + + {{end}} + + + {{ with $writer.twitter }} + +{{end}} +{{ with $writer.linkedin }} + + + +{{end}} + +{{ with $writer.email }} + +{{end}} + +{{ with $writer.instagram }} + + + +{{end}} + +{{ with $writer.stackoverflow }} + + + +{{end}} + +{{ with $writer.github }} + + + +{{end}} + + +{{ with $writer.mastodon }} + + + +{{end}} + + +{{ else }} +{{ with .Site.Params.social.facebook }} + +{{end}} + +{{ with .Site.Params.social.googleplus }} + + + +{{end}} + + +{{ with .Site.Params.social.twitter }} + +{{end}} +{{ with .Site.Params.social.linkedin }} + + + +{{end}} + +{{ with .Site.Params.social.email }} + +{{end}} + +{{ with .Site.Params.social.instagram }} + + + +{{end}} + +{{ with .Site.Params.social.stackoverflow }} + + + +{{end}} + +{{ with .Site.Params.social.github }} + + + +{{end}} + + +{{ with .Site.Params.social.mastodon }} + + + +{{end}} +{{ end }} + + +
+
+{{ end }} +
+
+ +
+ {{ template "_internal/disqus.html" . }} + + + + + + +
+
+ + + + +{{ end }} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html new file mode 100644 index 0000000..ec4f016 --- /dev/null +++ b/layouts/partials/footer.html @@ -0,0 +1,132 @@ +
+

+ {{ with .Site.Title }} + {{ . }} + {{ end }} +

+ + {{ with .Site.Params.Slogan }} +

{{ . | default "" | safeHTML }}

+ {{ end }} + + + +
+ {{ range .Site.Params.copyright }} +

{{ . | markdownify | safeHTML }}

+ {{ else }} +

+ Nederburg Hugo Theme by Appernetic. +

+

+ A port of Tracks by Compete Themes. +

+ {{ end }} +
+
diff --git a/layouts/partials/get_cookie.html b/layouts/partials/get_cookie.html new file mode 100644 index 0000000..cf63d05 --- /dev/null +++ b/layouts/partials/get_cookie.html @@ -0,0 +1,17 @@ + +Get your cookie + diff --git a/layouts/partials/topnavigation.html b/layouts/partials/topnavigation.html new file mode 100644 index 0000000..e01ac25 --- /dev/null +++ b/layouts/partials/topnavigation.html @@ -0,0 +1,118 @@ +
+ + + + +