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

github.com/mikeblum/hugo-now.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.html17
1 files changed, 17 insertions, 0 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
new file mode 100644
index 0000000..9b5c3b6
--- /dev/null
+++ b/layouts/_default/list.html
@@ -0,0 +1,17 @@
+{{ partial "header" . }}
+{{ partial "nav" . }}
+<div class="container">
+ <section class="section">
+ {{ $paginator := .Paginate (where .Data.Pages "Type" "post") }}
+ {{ range sort $paginator.Pages }}
+ <article>
+ {{ partial "post-metadata-list" . }}
+ <div class="content">
+ {{ .Summary | safeHTML }}
+ </div>
+ </article>
+ {{ end }}
+ </section>
+</div>
+{{ partial "paginate" . }}
+{{ partial "footer" . }} \ No newline at end of file