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

gitlab.com/rmaguiar/hugo-theme-color-your-world.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/_default/list.html')
-rw-r--r--layouts/_default/list.html18
1 files changed, 3 insertions, 15 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index d0aab9c..07d2c6a 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -9,7 +9,7 @@
<!-- Display search form before listing posts -->
{{ if and .Site.Params.Search.enable (gt (len $searchPages) 0) (eq .Kind "section") }}
- {{ partial "search-form" . }}
+ {{ partialCached "search-form" . }}
{{ end }}
<h1>{{ $currentTitle }}</h1>
@@ -22,25 +22,13 @@
{{ end }}
{{ else }}
- {{ $paginator := .Paginate (where .Site.RegularPages "Type" "in" .Site.Params.mainSections) }}
-
- <ul class="posts">
- {{ range $paginator.Pages }}
- <li>
- <a class="btn" href="{{ .RelPermalink }}">
- <p>{{ .LinkTitle | emojify }}</p>
- {{ if not .Date.IsZero }}<time datetime="{{ .Date | dateFormat "2006-01-02" }}">{{ .Date.Format "2006-01-02" }}</time>{{ end }}
- </a>
- </li>
- {{ end }}
- </ul>
-
+ {{ partial "post-list" . }}
{{ partial "pagination" . }}
{{ partialCached "tag-list" . }}
{{ end }}
-
+
</main>
{{ end }}