Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/toryanderson/hugo-icarus.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--exampleSite/config.toml3
-rw-r--r--layouts/partials/article_list.html2
2 files changed, 4 insertions, 1 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index 86a7fdd..ee11f32 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -28,6 +28,9 @@ themesDir = "../.."
logo = "css/images/logo.png"
disable_mathjax = false # set to true to disable MathJax
+ # define which types of pages should be shown. By default the type with the most regular pages
+ mainSections = ["post"]
+
# Format dates with Go's time formatting
date_format = "2006-01-02"
diff --git a/layouts/partials/article_list.html b/layouts/partials/article_list.html
index af28570..5e42ee5 100644
--- a/layouts/partials/article_list.html
+++ b/layouts/partials/article_list.html
@@ -1,5 +1,5 @@
<section id="main">
- {{ $paginator := .Paginate (where .Site.RegularPages "Type" "post") }}
+ {{ $paginator := .Paginate (where .Site.Pages "Section" "in" .Site.Params.mainSections) }}
{{ range $paginator.Pages }}
<article class="article article-type-post" itemscope="" itemprop="blogPost">
<div class="article-inner">