From 80b1f0ddebb6c8ec65509ce22c0d0979e5d0f8d4 Mon Sep 17 00:00:00 2001 From: panr Date: Tue, 29 Jan 2019 11:11:48 +0100 Subject: [PATCH] Fix typos --- exampleSite/config.toml | 2 +- exampleSite/content/{posts => post}/hello.md | 0 layouts/_default/baseof.html | 2 +- layouts/_default/list.html | 12 ++++++------ layouts/_default/single.html | 8 ++++---- layouts/partials/footer.html | 8 ++++---- layouts/partials/head.html | 20 ++++++++++---------- layouts/partials/header.html | 2 +- layouts/partials/logo.html | 8 ++++---- layouts/partials/menu.html | 4 ++-- 10 files changed, 33 insertions(+), 33 deletions(-) rename exampleSite/content/{posts => post}/hello.md (100%) diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 0bc9e04..8fa56b3 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -5,7 +5,7 @@ paginate = 5 [params] # dir name of your blog content (default is `content/posts`) - contentTypeName = "posts" + contentTypeName = "post" # "light" or "dark" defaultTheme = "dark" diff --git a/exampleSite/content/posts/hello.md b/exampleSite/content/post/hello.md similarity index 100% rename from exampleSite/content/posts/hello.md rename to exampleSite/content/post/hello.md diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 1e91b7d..7dbd8c3 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -1,5 +1,5 @@ - + {{ block "title" . }} {{ if .IsHome }}{{ $.Site.Title }}{{ with $.Site.Params.Subtitle }} — {{ . }}{{ end }}{{ else }}{{ .Title }} :: {{ $.Site.Title }}{{ with $.Site.Params.Subtitle }} — {{ . }}{{ end }}{{ end }} diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 74e2885..4789212 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -1,7 +1,7 @@ {{ define "main" }}
- {{ $isntDefault := not (or (eq (trim .Site.Params.contentTypeName " ") "posts") (eq (trim .Site.Params.contentTypeName " ") "")) }} - {{ $contentTypeName := cond $isntDefault (string .Site.Params.contentTypeName) "posts" }} + {{ $isntDefault := not (or (eq (trim $.Site.Params.contentTypeName " ") "posts") (eq (trim $.Site.Params.contentTypeName " ") "")) }} + {{ $contentTypeName := cond $isntDefault (string $.Site.Params.contentTypeName) "posts" }} {{ $paginator := .Paginate (where .Data.Pages "Type" $contentTypeName) }} {{ range $paginator.Pages }} @@ -11,19 +11,19 @@ - +
{{ if .Params.tags }} {{ range .Params.tags }} - #{{ . }}  + #{{ . }}  {{ end }} {{ end }} {{ with .Params.Cover }} - + {{ end }}
@@ -35,7 +35,7 @@ {{ end }} {{ end }}
-
{{ .Site.Params.ReadMore }} →
+
{{ $.Site.Params.ReadMore }} →
{{ end }} {{ partial "pagination.html" . }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index f3bddd4..cbb3753 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -5,19 +5,19 @@ {{ .Date.Format "2006-01-02" }} - {{ .Site.Params.WrittenBy }} {{ .Params.Author }} + {{ $.Site.Params.WrittenBy }} {{ .Params.Author }} {{ if .Params.tags }} {{ range .Params.tags }} - #{{ . }}  + #{{ . }}  {{ end }} {{ end }} {{ with .Params.Cover }} - + {{ end }}
@@ -26,7 +26,7 @@ {{ if or .NextInSection .PrevInSection }}