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

github.com/CaiJimmy/hugo-theme-stack.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/page/archive.html')
-rw-r--r--layouts/page/archive.html39
1 files changed, 39 insertions, 0 deletions
diff --git a/layouts/page/archive.html b/layouts/page/archive.html
new file mode 100644
index 0000000..c63544e
--- /dev/null
+++ b/layouts/page/archive.html
@@ -0,0 +1,39 @@
+{{ define "body_class" }}2-column{{ end }}
+{{ define "main" }}
+<div class="container extended flex on-phone--column align-items--flex-start">
+
+ {{ partial "sidebar/left.html" . }}
+
+ <main class="main template-archive">
+ <div class="widget">
+ <h1 class="widget-title">Categories</h1>
+ <div class="category-list">
+ <div class="article-list--tile">
+ {{ range ($.Site.GetPage "taxonomyTerm" "categories").Pages }}
+ {{ partial "article-list/tile" (dict "context" . "size" "250x150") }}
+ {{ end }}
+ </div>
+ </div>
+ </div>
+
+ {{ $postSection := $.Site.Params.postSection }}
+ {{ $v1 := where .Site.RegularPages "Section" $postSection }}
+ {{ $v2 := where .Site.RegularPages "Params.hidden" "!=" true }}
+ {{ $filtered := $v1 | intersect $v2 }}
+ {{ range $filtered.GroupByDate "2006" }}
+ {{ $id := lower (replace .Key " " "-") }}
+ <div class="archive-group" id="{{ $id }}">
+ <h3 class="archive-date"><a href="{{ $.Permalink }}#{{ $id }}">{{ .Key }}</a></h3>
+ <div class="article-list--compact">
+ {{ range .Pages }}
+ {{ partial "article-list/compact" . }}
+ {{ end }}
+ </div>
+ </div>
+ {{ end }}
+
+ {{ partial "footer.html" . }}
+ </main>
+</div>
+
+{{ end }} \ No newline at end of file