From 82832c1244f2d536c754efb98fbdb02b1844f4c7 Mon Sep 17 00:00:00 2001 From: digitalcraftsman Date: Thu, 7 Sep 2017 21:41:16 +0200 Subject: Make use of the base template --- layouts/404.html | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) (limited to 'layouts/404.html') diff --git a/layouts/404.html b/layouts/404.html index 8fa1a59..a919514 100644 --- a/layouts/404.html +++ b/layouts/404.html @@ -1,12 +1,4 @@ -{{ partial "head.html" . }} - - -{{ partial "sidebar.html" . }} - -
-

404: Page not found

-

Sorry, we've misplaced that URL or it's pointing to something that doesn't exist. Head back home to try finding it again.

-
- - - +{{ define "main" -}} +

404: Page not found

+

Sorry, we've misplaced that URL or it's pointing to something that doesn't exist. Head back home to try finding it again.

+{{- end }} \ No newline at end of file -- cgit 1.4.1 From fe56862a539d0196b4c6e852d3fa31e0768733c9 Mon Sep 17 00:00:00 2001 From: digitalcraftsman Date: Thu, 7 Sep 2017 21:43:11 +0200 Subject: Trim more whitespace in template logic --- layouts/404.html | 2 +- layouts/partials/head.html | 6 +++--- layouts/partials/sidebar.html | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'layouts/404.html') diff --git a/layouts/404.html b/layouts/404.html index a919514..107267a 100644 --- a/layouts/404.html +++ b/layouts/404.html @@ -1,4 +1,4 @@ {{ define "main" -}}

404: Page not found

Sorry, we've misplaced that URL or it's pointing to something that doesn't exist. Head back home to try finding it again.

-{{- end }} \ No newline at end of file +{{-1 end }} \ No newline at end of file diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 447a27c..d602f3f 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -8,11 +8,11 @@ - {{ if .IsHome }} + {{ if .IsHome -}} {{ .Site.Title }} - {{ else }} + {{- else -}} {{ .Title }} · {{ .Site.Title }} - {{ end }} + {{- end }} diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html index a582955..d4839c8 100644 --- a/layouts/partials/sidebar.html +++ b/layouts/partials/sidebar.html @@ -9,9 +9,9 @@

{{ with .Site.Params.copyright }}{{.}}{{ else }}© {{ now.Format "2006"}}. All rights reserved. {{end}}

-- cgit 1.4.1 From e91b1383eea31bbf6f389506f7f87359b6b69d61 Mon Sep 17 00:00:00 2001 From: digitalcraftsman Date: Thu, 7 Sep 2017 22:01:10 +0200 Subject: Fix url for Google fonts --- layouts/404.html | 2 +- layouts/partials/head.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'layouts/404.html') diff --git a/layouts/404.html b/layouts/404.html index 107267a..a919514 100644 --- a/layouts/404.html +++ b/layouts/404.html @@ -1,4 +1,4 @@ {{ define "main" -}}

404: Page not found

Sorry, we've misplaced that URL or it's pointing to something that doesn't exist. Head back home to try finding it again.

-{{-1 end }} \ No newline at end of file +{{- end }} \ No newline at end of file diff --git a/layouts/partials/head.html b/layouts/partials/head.html index d602f3f..99806aa 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -19,7 +19,7 @@ - + -- cgit 1.4.1