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

github.com/AngeloStavrow/indigo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAngelo Stavrow <contact@angelostavrow.com>2019-10-03 15:53:27 +0300
committerAngelo Stavrow <contact@angelostavrow.com>2019-10-03 15:53:27 +0300
commitecf2ddc9e0c28fcf8e312dd30131db4edd425b01 (patch)
tree20c2c3a1e0a743fde5ce33ce22b0909e07e42ed9 /layouts
parent2701271d298c6e35da45a1dcf003a604fea48924 (diff)
Adds taxonomy.html layout for tag and category lists
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/list.html12
-rw-r--r--layouts/_default/taxonomy.html12
2 files changed, 18 insertions, 6 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index c975ac5..2db2af7 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -1,10 +1,10 @@
{{ partial "header.html" . }}
<h2>{{ .Title }}</h2>
<div id="content">
-{{ range $index, $page := (.Paginate (where .Site.RegularPages "Type" "in" site.Params.mainSections)).Pages }}
-{{ if ne $index 0 }}
-{{ end }}
-{{ .Render "li" }}
-{{ end }}
+ {{ range $index, $page := (.Paginate (where .Site.RegularPages "Type" "in" site.Params.mainSections)).Pages }}
+ {{ if ne $index 0 }}
+ {{ end }}
+ {{ .Render "li" }}
+ {{ end }}
</div>
-{{ partial "footer.html" . }} \ No newline at end of file
+{{ partial "footer.html" . }}
diff --git a/layouts/_default/taxonomy.html b/layouts/_default/taxonomy.html
new file mode 100644
index 0000000..a54dc4f
--- /dev/null
+++ b/layouts/_default/taxonomy.html
@@ -0,0 +1,12 @@
+{{ partial "header.html" . }}
+<h2>
+ <span class="list-heading-type">{{ .Section }}:</span>
+ <span class="list-heading-tag">{{ .Title }}</span>
+</h2>
+
+<div id="content">
+ {{ range.Pages }}
+ {{ .Render "li" }}
+ {{ end }}
+</div>
+{{ partial "footer.html" . }}