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/terms.html
parent11587f7efe568e46075321af7f4a1bec54a6ae04 (diff)
Use baseof temple to dry code
Diffstat (limited to 'layouts/_default/terms.html')
-rw-r--r--layouts/_default/terms.html32
1 files changed, 7 insertions, 25 deletions
diff --git a/layouts/_default/terms.html b/layouts/_default/terms.html
index ee7ac1f..9a9a796 100644
--- a/layouts/_default/terms.html
+++ b/layouts/_default/terms.html
@@ -1,30 +1,12 @@
-{{ 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">{{ .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 "main" }}
+ <div class="container">
<article>
{{ .Content }}
</article>
- <div class="container">
- <div class="section tags-list">
- {{ range $name, $taxonomy := .Site.Taxonomies.tags }}
- <a class="tag-cloud" href="{{"tags/" | relLangURL }}{{ $name | urlize }}">{{ lower $name }} ({{ len $taxonomy }})</a>
- {{ end }}
- </div>
+ <div class="section tags-list">
+ {{ range $name, $taxonomy := .Site.Taxonomies.tags }}
+ <a class="tag-cloud" href="{{"tags/" | relLangURL }}{{ $name | urlize }}">{{ lower $name }}&nbsp;({{ len $taxonomy }})</a>
+ {{ end }}
</div>
- {{ partial "top-icon-with-hr.html" . }}
- {{ partial "footer.html" . }}
</div>
- <!-- End fade in two -->
-</div>
-<!-- End parent section -->
-</body>
+{{ end }}