diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 25e9069..3bd2cf0 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -4,7 +4,7 @@ theme = "hugo-theme-terminal" paginate = 5 [params] - contentTypeName = "posts" + contentTypeName = "post" themeColor = "orange" [params.logo] 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/list.html b/layouts/_default/list.html index ab9d3bb..9b41c04 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -17,13 +17,13 @@ {{ if .Params.tags }} {{ range .Params.tags }} - #{{ . }}  + #{{ . }}  {{ end }} {{ end }} {{ with .Params.Cover }} - + {{ end }}
diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 6c69efd..371895a 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -11,13 +11,13 @@ {{ if .Params.tags }} {{ range .Params.tags }} - #{{ . }}  + #{{ . }}  {{ end }} {{ end }} {{ with .Params.Cover }} - + {{ end }}
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 2c8d795..e4fd1d8 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -11,5 +11,5 @@
- - + + diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 85abb9f..ea1c20d 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -6,18 +6,18 @@ - -{{ if (ne .Site.Params.ThemeColor "orange") }} - + +{{ if (ne $.Site.Params.ThemeColor "orange") }} + {{ end }} - + - -{{ with .Site.Params.ThemeColor }} - + +{{ with $.Site.Params.ThemeColor }} + {{ end }} @@ -26,7 +26,7 @@ - + @@ -35,7 +35,7 @@ - + {{ range .Params.categories }}{{ end }} @@ -48,5 +48,5 @@ {{ if .OutputFormats.Get "json" }} - + {{ end }} diff --git a/layouts/partials/logo.html b/layouts/partials/logo.html index 515523e..0bf8f36 100644 --- a/layouts/partials/logo.html +++ b/layouts/partials/logo.html @@ -1,4 +1,4 @@ - +