From 630fec5db86bcd5f12558ba038c47ecc09a67138 Mon Sep 17 00:00:00 2001 From: Giuseppe Attanasio Date: Tue, 20 Aug 2019 12:24:15 +0200 Subject: Update: add a single page template. Bugfix: update references to static files. --- layouts/_default/baseof.html | 7 +++---- layouts/_default/single.html | 11 +++++++++++ layouts/partials/header.html | 18 +++++++++--------- static/css/main.css | 9 +++++++++ 4 files changed, 32 insertions(+), 13 deletions(-) diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 5f8e2ec..081e2cc 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -1,11 +1,10 @@ - {{- partial "head.html" . -}} + {{ partial "header.html" . }} - {{- partial "header.html" . -}}
- {{- block "main" . }}{{- end }} + {{ block "main" . }}{{end}}
- {{- partial "footer.html" . -}} + {{ partial "footer.html" . }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index e69de29..79e91be 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -0,0 +1,11 @@ +{{ define "main" }} + +
+ +
+ +
+ {{ .Content | markdownify }} +
+ +{{end}} \ No newline at end of file diff --git a/layouts/partials/header.html b/layouts/partials/header.html index c738442..cdb3d8c 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -9,11 +9,11 @@ {{ $title }} - {{ $siteTitle }} {{- end -}} - - - - - + + + + + @@ -26,13 +26,13 @@ {{- template "_internal/twitter_cards.html" . -}} - - + + {{- if and (isset .Site.Params "social") (isset .Site.Params "feathericonscdn") (eq .Site.Params.featherIconsCDN true) -}} {{- else if (isset .Site.Params "social") -}} - + {{- end -}} - + diff --git a/static/css/main.css b/static/css/main.css index fa873fd..49b2350 100644 --- a/static/css/main.css +++ b/static/css/main.css @@ -207,6 +207,15 @@ ul { /* float: left; */ } +.header .logo { + display: block; + margin-left: auto; + margin-right: auto; + max-width: 15%; + height: auto; + border-radius: 50%; +} + .header h1, .header h2 { margin: 0; -- cgit v1.2.3