From c8bf3c5f68daf4510cd64b8200fe7d5dc2804411 Mon Sep 17 00:00:00 2001 From: sandorfalot Date: Wed, 16 Jun 2021 21:08:38 -0400 Subject: [PATCH] Commit --- layouts/_default/baseof.html | 10 +-- layouts/_default/single.html | 4 +- layouts/index.html | 3 +- layouts/partials/footer.html | 14 +--- layouts/partials/head.html | 138 ++++++++++++++++++++++++++++++--- layouts/partials/header.html | 16 +++- layouts/partials/metadata.html | 5 +- 7 files changed, 156 insertions(+), 34 deletions(-) diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index dbab0e1..91f68ea 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -1,12 +1,12 @@ - - + + {{- partial "head.html" . -}} {{- partial "header.html" . -}} - +
{{- block "main" . }}{{- end }} - +
{{- partial "footer.html" . -}} + diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 244a573..65583de 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,12 +1,12 @@ {{ define "main" }}

{{ .Title }}

- +
{{ if ne .Params.Type "page" }} {{ partial "metadata.html" . }} {{ end }} {{ .Content }} - +
{{ if .Params.categories }}

Related categories:

diff --git a/layouts/index.html b/layouts/index.html index fb068b1..99fcb43 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,6 +1,7 @@ {{ define "main" }} +

{{ .Site.Title }}

{{ .Content }} - +
{{ end }} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 02221f0..bcf4f69 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,14 +1,2 @@ -

Site menu

- - -

Back to top

+

Back to top

diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 1baebc2..5a1cb15 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -1,12 +1,128 @@ - - - - {{ with .OutputFormats.Get "rss" -}} - {{ printf `` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} - {{ end -}} - {{ $title := print .Site.Title " | " .Title }} - {{ if .IsHome }}{{ $title = .Site.Title }}{{ end }} - {{ $title }} - {{ partial "style.html" . }} - + + + {{ .Site.Title }} + + \ No newline at end of file diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 4807571..b123390 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -1,3 +1,17 @@ -

Menu

+
+
+

SanZORB

+ +
+
\ No newline at end of file diff --git a/layouts/partials/metadata.html b/layouts/partials/metadata.html index fc43ecb..dde2ef8 100644 --- a/layouts/partials/metadata.html +++ b/layouts/partials/metadata.html @@ -1,6 +1,7 @@ {{if .Params.author}} -

by {{.Params.author}}{{else}}{{ .Site.Params.author }}

+

by {{.Params.author}}{{else}}{{ .Site.Params.author }} {{end}} +

{{ if not .Date.IsZero }} {{ $dateTime := .PublishDate.Format "2006-01-02" }} @@ -8,3 +9,5 @@

{{ .PublishDate.Format $dateFormat }}

{{end}} + +