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

github.com/natarajmb/charaka-hugo-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--layouts/_default/list.html4
-rw-r--r--layouts/index.html4
2 files changed, 4 insertions, 4 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index 0fcf803..684c16c 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -3,8 +3,8 @@
{{ partial "header" . }}
{{ partial "nav" . }}
<main class="container">
- {{ if .Pages }}
- {{ range (.Paginate (.Pages.GroupByDate "2006")).PageGroups}}
+ {{ if .Site.RegularPages }}
+ {{ range (.Paginate (.Site.RegularPages.GroupByDate "2006")).PageGroups }}
<h1 class="title is-3">{{ .Key }}</h1>
{{ range where .Pages "Section" "posts" }}
<article class="columns">
diff --git a/layouts/index.html b/layouts/index.html
index 3319df1..d26ded6 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -2,8 +2,8 @@
{{ partial "header" . }}
{{ partial "nav" . }}
<main class="container">
- {{ if .Pages }}
- {{ range (.Paginate (.Pages.GroupByDate "2006")).PageGroups}}
+ {{ if .Site.RegularPages }}
+ {{ range (.Paginate (.Site.RegularPages.GroupByDate "2006")).PageGroups}}
<h1 class="title is-3">{{ .Key }}</h1>
{{ range where .Pages "Section" "posts" }}
<article class="columns">