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 @@
{{ .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 }}
@@ -35,7 +35,7 @@
{{ end }}
{{ end }}
-
+
{{ 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 }}