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

github.com/jonathanjanssens/hugo-casper3.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.html32
1 files changed, 32 insertions, 0 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
new file mode 100644
index 0000000..29aa1b2
--- /dev/null
+++ b/layouts/_default/list.html
@@ -0,0 +1,32 @@
+{{ define "body_class" }} tag-template {{ end }}
+
+{{ define "main" }}
+
+<header class="site-header">
+ {{- partial "site-header.html" $ -}}
+
+ {{- partial "header-background.html" $ -}}
+ <div class="inner site-header-content">
+ <h1 class="site-title">{{ .Title }}</h1>
+ <h2 class="site-description">
+ {{ if .Param "description" }}
+ {{ .Param "description" }}
+ {{ else }}
+ A collection of {{ len .Pages }} post{{ if gt (len .Pages) 1 }}s{{ end }}
+ {{ end }}
+ </h2>
+ </div>
+ </div>
+</header>
+
+<main id="site-main" class="site-main outer">
+ <div class="inner posts">
+ <div class="post-feed">
+ {{ range $index, $element := .Pages }}
+ {{- partial "post-card.html" (dict "context" . "index" $index "home" $.IsHome) -}}
+ {{ end }}
+ </div>
+ </div>
+</main>
+
+{{ end }} \ No newline at end of file