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

github.com/wlh320/hugo-theme-hulga.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/archives/single.html')
-rw-r--r--layouts/archives/single.html63
1 files changed, 26 insertions, 37 deletions
diff --git a/layouts/archives/single.html b/layouts/archives/single.html
index 9cec5f7..f19ccac 100644
--- a/layouts/archives/single.html
+++ b/layouts/archives/single.html
@@ -1,39 +1,28 @@
-<!DOCTYPE html>
-<html>
-{{- partial "head.html" . -}}
-
-<body>
- <div id="main">
- {{- partial "header.html" . -}}
- <section class="section">
- {{- block "archives-main" . }}{{- end }}
- </section>
- </div>
- {{- partial "footer.html" . -}}
- {{- partial "backtotop.html" . -}}
- {{- block "script" . }}{{- end }}
-</body>
-
-</html>
-
-{{ define "archives-main" }}
-<div class="container">
- <div class="box content">
- {{ $count := len (where (where .Site.Pages "Type" "post") "Kind" "page") }}
- <p>{{ i18n "archives" (dict "Count" $count) }}</p>
- <div class="post-archive">
- {{ range (where (where .Site.Pages "Type" "post") "Kind" "page").GroupByDate "2006" }}
- <h2>{{ .Key }}</h2>
- <ul class="listing">
- {{ range .Pages }}
- <li>
- <span class="date">{{ .Date.Format "2006/01/02" }} </span>
- <a href="{{ .Permalink }}" title="{{ .Title }}">{{ .Title }}</a>
- </li>
- {{ end }}
- </ul>
- {{ end }}
+{{ define "main" }}
+{{ partial "header.html" . }}
+<section class="section">
+ <div class="container content">
+ <div class="columns">
+ <div class="column is-8 is-offset-2">
+ {{ $count := len (where (where .Site.Pages "Type" "post") "Kind" "page") }}
+ <h2 class="has-text-centered">{{ i18n "archives" (dict "Count" $count) }}</h2>
+ <div class="post-archive">
+ {{ range (where (where .Site.Pages "Type" "post") "Kind" "page").GroupByDate "2006" }}
+ <div class="box container">
+ <h3>{{ .Key }}</h3>
+ <ul class="listing">
+ {{ range .Pages }}
+ <li>
+ <span class="date">{{ .Date.Format "2006/01/02" }} </span>
+ <a href="{{ .Permalink }}" title="{{ .Title }}">{{ .Title }}</a>
+ </li>
+ {{ end }}
+ </ul>
+ </div>
+ {{ end }}
+ </div>
+ </div>
</div>
</div>
-</div>
-{{ end }}
+</section>
+{{ end }} \ No newline at end of file