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/terms.html')
-rw-r--r--layouts/_default/terms.html24
1 files changed, 24 insertions, 0 deletions
diff --git a/layouts/_default/terms.html b/layouts/_default/terms.html
new file mode 100644
index 0000000..4d2f9d2
--- /dev/null
+++ b/layouts/_default/terms.html
@@ -0,0 +1,24 @@
+{{ define "main" }}
+<main>
+ <h1>{{ .Title }}</h1>
+ <div class="catalogue">
+ <ul>
+ {{- range (.Paginate .Data.Pages).Pages -}}
+ <li><a href="{{ .Permalink }}">{{ .Title }}</a></li>
+ {{- end -}}
+ </ul>
+ </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