From a0d73cd693ea1d9c5354d9e43f19cbb1358c6b9d Mon Sep 17 00:00:00 2001 From: Igor Scheller Date: Tue, 5 Feb 2019 14:22:41 +0100 Subject: [PATCH] Allow empty config file --- layouts/_default/list.html | 4 ++-- layouts/_default/single.html | 4 ++-- layouts/partials/menu.html | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 2644fd1..c3d84ac 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -11,7 +11,7 @@ {{ .Date.Format "2006-01-02" }} - {{ with .Params.Author }}— {{ $.Site.Params.WrittenBy }} {{ . }}{{ end }} + {{ with .Params.Author }}— {{ $.Site.Params.WrittenBy | default "Written by" }} {{ . }}{{ end }} {{ if .Params.tags }} @@ -35,7 +35,7 @@ {{ end }} {{ end }} -
{{ $.Site.Params.ReadMore }} →
+
{{ $.Site.Params.ReadMore | default "Read more" }} →
{{ end }} {{ partial "pagination.html" . }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 15f2bad..6cd6f3d 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -7,7 +7,7 @@ {{ .Format "2006-01-02" }} {{ end }} - {{ with .Params.Author }}— {{ $.Site.Params.WrittenBy }} {{ . }}{{ end }} + {{ with .Params.Author }}— {{ $.Site.Params.WrittenBy | default "Written by" }} {{ . }}{{ end }} {{ if .Params.tags }} @@ -28,7 +28,7 @@ {{ if or .NextInSection .PrevInSection }}