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

github.com/EmielH/tale-hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/_default/taxonomy.html')
-rw-r--r--layouts/_default/taxonomy.html34
1 files changed, 34 insertions, 0 deletions
diff --git a/layouts/_default/taxonomy.html b/layouts/_default/taxonomy.html
new file mode 100644
index 0000000..34fc2fc
--- /dev/null
+++ b/layouts/_default/taxonomy.html
@@ -0,0 +1,34 @@
+{{ define "main" }}
+
+<main>
+ <h1>{{ strings.FirstUpper .Data.Singular }} {{ .Title }}</h1>
+ <div class="catalogue">
+ {{ range (.Paginate .Pages).Pages }}
+ <a href="{{ .Permalink }}" class="catalogue-item">
+ <div>
+ <time datetime="{{ .PublishDate }}" class="catalogue-time">{{ i18n "publishdate" . }}</time>
+ <h1 class="catalogue-title">{{ .Title }}</h1>
+ <div class="catalogue-line"></div>
+
+ <p>
+ {{ if isset .Params "summary" }}{{ .Params.Summary }}{{ else }}{{ .Summary }}{{ end }}
+ </p>
+
+ </div>
+ </a>
+ {{ end }}
+ </div>
+
+ <div class="pagination">
+ {{ if .Paginator.HasPrev }}
+ <a href="{{ .Paginator.Prev.URL }}" class="left arrow">&#8592;</a>
+ {{ end }}
+ {{ if .Paginator.HasNext }}
+ <a href="{{ .Paginator.Next.URL }}" class="right arrow">&#8594;</a>
+ {{ end }}
+
+ <span>{{ .Paginator.PageNumber }}</span>
+ </div>
+</main>
+
+{{ end }} \ No newline at end of file