From b10d1e959c25a36cf58f570d12d15820ca1d3ee7 Mon Sep 17 00:00:00 2001 From: Alex Shpak Date: Mon, 22 Apr 2019 22:19:08 +0200 Subject: Improve logic in title template for less warnings --- layouts/404.html | 2 +- layouts/home.html | 2 +- layouts/partials/docs/html-head.html | 2 +- layouts/partials/docs/shared.html | 8 +++++--- 4 files changed, 8 insertions(+), 6 deletions(-) (limited to 'layouts') diff --git a/layouts/404.html b/layouts/404.html index f0b35fb..468ba6f 100644 --- a/layouts/404.html +++ b/layouts/404.html @@ -9,7 +9,7 @@
-

404 Not Found

+

404 Not Found

{{ partial "docs/inject/body" . }} diff --git a/layouts/home.html b/layouts/home.html index bf76fc7..07057b4 100644 --- a/layouts/home.html +++ b/layouts/home.html @@ -17,7 +17,7 @@ You can override this page in: ` }}
-
+
{{ replace $content "`" "`" | markdownify }}
diff --git a/layouts/partials/docs/html-head.html b/layouts/partials/docs/html-head.html index 7f7c0cc..ab05a59 100644 --- a/layouts/partials/docs/html-head.html +++ b/layouts/partials/docs/html-head.html @@ -15,7 +15,7 @@ {{ with .OutputFormats.Get "rss" -}} - {{ printf `` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} + {{ printf `` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} {{ end -}} {{ "