diff --git a/README.md b/README.md index 65663c4..47e0681 100644 --- a/README.md +++ b/README.md @@ -78,6 +78,8 @@ paginate = 5 writtenBy = "Written by" readMore = "Read more" readOtherPosts = "Read other posts" + newerPosts = "Newer posts" + olderPosts = "Older posts" [languages.en.params.logo] logoText = "hello friend" diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 7573f11..e315abf 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -20,6 +20,8 @@ paginate = 5 writtenBy = "Written by" readMore = "Read more" readOtherPosts = "Read other posts" + newerPosts = "Newer posts" + olderPosts = "Older posts" [languages.en.params.logo] logoText = "hello friend" 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 }}