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

github.com/vickylaixy/hugo-theme-introduction.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHanzei <hanzei@mailbox.org>2018-07-01 11:09:29 +0300
committerHanzei <hanzei@mailbox.org>2018-07-01 11:09:29 +0300
commitdaca1fe109da3b57005cfe77c27819f9666c646d (patch)
tree98da048782aae45ddf79463e73969c3fbef67ec1 /layouts/_default/taxonomy.html
parent11587f7efe568e46075321af7f4a1bec54a6ae04 (diff)
Use baseof temple to dry code
Diffstat (limited to 'layouts/_default/taxonomy.html')
-rw-r--r--layouts/_default/taxonomy.html43
1 files changed, 14 insertions, 29 deletions
diff --git a/layouts/_default/taxonomy.html b/layouts/_default/taxonomy.html
index 5ce80cd..786676b 100644
--- a/layouts/_default/taxonomy.html
+++ b/layouts/_default/taxonomy.html
@@ -1,33 +1,18 @@
-{{ partial "header.html" . }}
-<body>
-<!-- Parent section -->
-<div class="section" id="top">
- <!-- Begin Title -->
- <div class="container hero {{ if .Site.Params.fadeIn }} fade-in one {{ end }}">
- <h1 class="bold-title is-1">Tagged "{{ lower .Title }}"</h1>
- </div>
- <!-- End Title -->
- <!-- Everything below fades in two! -->
- <div class="section no-padding {{ if .Site.Params.fadeIn }} fade-in two {{ end }}">
- {{ partial "nav.html" . }}
+{{ define "title" }}
+ <h1 class="bold-title is-1">Tagged "{{ lower .Title }}"</h1>
+{{ end }}
+
+{{ define "main" }}
+ <div class="container">
<article>
{{ .Content }}
</article>
- <!-- Begin Blog container -->
- <div class="container">
- <ul>
- {{ range .Pages.ByPublishDate }}
- <li>
- <a href="{{.Permalink}}">{{.Date.Format (.Site.Params.dateform | default "Jan 02, 2006") }} | {{.Title}}</a>
- </li>
- {{ end }}
- </ul>
- </div>
- <!-- End Blog container -->
- {{ partial "top-icon-with-hr.html" . }}
- {{ partial "footer.html" . }}
+ <ul>
+ {{ range .Pages.ByPublishDate }}
+ <li>
+ <a href="{{.Permalink}}">{{.Date.Format (.Site.Params.dateform | default "Jan 02, 2006") }} | {{.Title}}</a>
+ </li>
+ {{ end }}
+ </ul>
</div>
- <!-- End fade in two -->
-</div>
-<!-- End parent section -->
-</body>
+{{ end }}