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

github.com/pavel-pi/kiss-em.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.html22
1 files changed, 12 insertions, 10 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index 8755d08..238f126 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -11,10 +11,10 @@
<div class ="container">
- <h2 class="areatitle">{{ i18n "microblog_title" }}</h2>
+ <a href="/micro"><h2 class="areatitle">{{ i18n "microblog_title" }}</h2></a>
<!-- show "number" of latest "micro" type articles -->
- {{ range first .Site.Params.microblog.number (where .Data.Pages.ByDate.Reverse "Type" "micro") }}
+ {{ range first .Site.Params.microblog.number (where .Site.RegularPages.ByDate.Reverse "Type" "in" "micro") }}
<!-- Article Tags -->
<div class="subtitle tags is-6 is-pulled-right">
@@ -52,11 +52,11 @@
<div class="container">
- <h2 class="areatitle">{{ i18n "blog_title" }}</h2>
- <!--<h2 class="areatitle">AKTUELLE BEITRÄGE</h2>-->
+
+ <a href="/blog"><h2 class="areatitle">{{ i18n "blog_title" }}</h2></a>
<!-- Loop through all posts filtered by type "article" -->
- {{ $paginator := .Paginate (where .Data.Pages.ByDate.Reverse "Type" "article") }}
+ {{ $paginator := .Paginate (where .Site.RegularPages.ByDate.Reverse "Type" "in" "blog") }}
{{ range .Paginator.Pages }}
<article>
@@ -72,11 +72,11 @@
{{if not .Date.IsZero }}
<h2 class="subtitle is-6">
<!-- Consider german month names -->
- {{if eq .Site.Params.defaultContentLanguage "de" }}
- {{ .Date.Day }}. {{ index $.Site.Data.monate (printf "%d" .Date.Month) }} {{ .Date.Year }}, {{ .Date.Format "15:04" }}
- {{ else }}
- {{ .Date.Format "January 2, 2006 | 15:04" }}
- {{ end }}
+ {{if eq .Site.Language.Lang "de" }}
+ {{ .Date.Day }}. {{ index $.Site.Data.monate (printf "%d" .Date.Month) }} {{ .Date.Year }}, {{ .Date.Format "15:04" }}
+ {{ else }}
+ {{ .Date.Format "January 2, 2006 | 15:04" }}
+ {{ end }}
</h2>
{{ end }}
@@ -105,6 +105,8 @@
</section>
+
+
<!-- "Older Posts" / "Newer Posts" Buttons -->
{{ partial "page-navigation" . }}