From 43279295c13bff3d3b8f5440942b2b8592a43656 Mon Sep 17 00:00:00 2001 From: Djordje Atlialp Date: Fri, 15 May 2020 10:52:28 +0200 Subject: [PATCH] Maybe fix for #156 https://github.com/rhazdon/hugo-theme-hello-friend-ng/issues/156 --- README.md | 3 --- exampleSite/config.toml | 8 ++------ layouts/_default/list.html | 2 +- 3 files changed, 3 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 6acb58d..c27abb8 100644 --- a/README.md +++ b/README.md @@ -81,9 +81,6 @@ paginate = 10 keywords = "homepage, blog" images = [""] - # Directory name of your blog content (default is `content/posts`) - contentTypeName = "posts" - # Default theme "light" or "dark" defaultTheme = "dark" diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 2ead911..149a7ef 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -1,8 +1,6 @@ baseURL = "https://example.com" title = "Hello Friend NG" - -DefaultContentLanguage = "en" - +languageCode = "en-us" theme = "hello-friend-ng" PygmentsCodeFences = true @@ -47,6 +45,7 @@ disableHugoGeneratorInject = false [taxonomies] tag = "tags" category = "categories" + series = "series" [params] dateform = "Jan 2, 2006" @@ -75,9 +74,6 @@ disableHugoGeneratorInject = false # Toggle this option need to rebuild SCSS, requires extended version of Hugo justifyContent = false # Set "text-align: justify" to .content. - # Directory name of your blog content (default is `content/posts`) - contentTypeName = "posts" - # Default theme "light" or "dark" defaultTheme = "dark" themeColor = "#252627" diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 1ef062b..ee2e8da 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -1,5 +1,5 @@ {{ define "main" }} - {{ $paginator := .Paginate (where .Site.RegularPages "Type" $.Site.Params.contentTypeName) }} + {{ $paginator := .Paginate .Data.Pages }}

{{ .Title }}