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

github.com/IvanChou/hugo-theme-vec.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.html37
1 files changed, 37 insertions, 0 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
new file mode 100644
index 0000000..f81bfee
--- /dev/null
+++ b/layouts/_default/list.html
@@ -0,0 +1,37 @@
+<!DOCTYPE html>
+<html lang="{{ .Site.LanguageCode }}">
+
+<head>
+ <title> {{ .Title }} &middot; {{ .Site.Title }} </title>
+
+ {{ partial "head.html" . }}
+</head>
+
+<body>
+
+ {{ partial "header.html" . }}
+ <div class="content">
+ <section class="posts">
+ {{ $paginator := .Paginate (.Data.Pages.GroupByDate "2006-01") 20 }}
+ {{ range $paginator.PageGroups }}
+ <div class="posts-archive">
+ {{ $month := (print .Key "-01") }}
+ <time class="posts-archive-month" datetime="{{ $month }}">{{ dateFormat "Jan 2006" $month }}</time>
+ <ol class="posts-list">
+ {{ range .Pages }}
+ <li><a href="{{ .Permalink }}">{{ .Title }}</a></li>
+ {{ end }}
+ </ol>
+ </div>
+ {{ end }}
+ </section>
+ {{ partial "pagination.html" . }}
+ </div>
+
+ {{ partial "footer.html" . }}
+
+ {{ with .Site.Params.AnalyticsID }}{{ partial "analytics.html" . }}{{ end }}
+
+</body>
+
+</html> \ No newline at end of file