aboutsummaryrefslogtreecommitdiff
path: root/layouts/_default
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/_default')
-rw-r--r--layouts/_default/list.html19
-rw-r--r--layouts/_default/single.html4
-rw-r--r--layouts/_default/summary.html2
3 files changed, 18 insertions, 7 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index cf36155..a86ef3a 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -1,10 +1,21 @@
1{{ define "main" }} 1{{ define "main" }}
2 <article> 2 <article>
3 <section>{{- .Content -}}</section> 3 <h1>{{ .Title }}</h1>
4 <section> 4 <section>
5 {{ range .Paginator.Pages }} 5 {{ range sort (.Paginator 3).Pages "Date" "desc" }}
6 <div> 6 <div>{{ .Render "summary" }}</div>
7 {{ .Render "summary" }} 7 {{ end }}
8 {{ with .Paginator }}
9 <div class="grid">
10 <div class='flex'>
11 {{ if .HasPrev }}
12 <a href="{{ .Prev.URL }}">prev</a>
13 {{ end }}
14 <p>{{ .PageNumber }} of {{ .TotalPages }}</p>
15 {{ if .HasNext }}
16 <a href="{{ .Next.URL }}">next</a>
17 {{ end }}
18 </div>
8 </div> 19 </div>
9 {{ end }} 20 {{ end }}
10 </section> 21 </section>
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index db0c449..1564845 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -1,10 +1,10 @@
1{{ define "main" }} 1{{ define "main" }}
2 <article> 2 <article>
3 <section> 3 <section>
4 <h1>{{ .Title }}</h1> 4 <h1>{{- .Title -}}</h1>
5 </section> 5 </section>
6 <section> 6 <section>
7 {{- .Content -}} 7 {{- .Content -}}
8 </section> 8 </section>
9 </article> 9 </article>
10{{ end }} \ No newline at end of file 10{{ end }}
diff --git a/layouts/_default/summary.html b/layouts/_default/summary.html
index 6ae4fd0..0753995 100644
--- a/layouts/_default/summary.html
+++ b/layouts/_default/summary.html
@@ -1,4 +1,4 @@
1<div> 1<div class='post' style="margin-bottom: 2em;">
2 <div> 2 <div>
3 <h1 class="f3 near-black"> 3 <h1 class="f3 near-black">
4 <a href="{{ .RelPermalink }}" class="link black dim"> 4 <a href="{{ .RelPermalink }}" class="link black dim">