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 @@ + 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 @@ +
+ + + + +