summaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
authorMichał M. Sapka <michal@sapka.me>2023-05-09 19:41:36 +0200
committerMichał M. Sapka <michal@sapka.me>2023-05-09 19:41:36 +0200
commitef00e77dd8350847843fcaea71aff62700db0e63 (patch)
tree0a7d7ac6c735c62eb2910e6f7e0e6c366b37ef5b /layouts
parentf1e3ee5231d01d50414412c65cc1f5399a1d5213 (diff)
feat: list on homepage
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/index.html22
1 files changed, 10 insertions, 12 deletions
diff --git a/layouts/_default/index.html b/layouts/_default/index.html
index 3260a96..0985c5e 100644
--- a/layouts/_default/index.html
+++ b/layouts/_default/index.html
@@ -1,14 +1,12 @@
{{ define "main" }}
- {{ $paginator := .Paginate (where site.RegularPages "Type" "!=" "special")}}
- {{ range $paginator.Pages }}
- <article class="list">
- {{ partial "partials/full_post.html" . }}
- </article>
- {{ end }}
-
- <nav id="pagination">
- <ul>
- {{ if .Paginator.HasPrev }}<li id="page-previous"><a href="{{ .Paginator.Prev.URL }}">← Newer</a></li>{{ end }}<li id="page-number"><span>Page {{ .Paginator.PageNumber }} of {{ .Paginator.TotalPages }}</span></li>{{ if .Paginator.HasNext }}<li id="page-next"><a href="{{ .Paginator.Next.URL }}">Older →</a></li>{{ end }}
- </ul>
- </nav>
+<article class="list taxonomy">
+ <ul>
+ {{ range (where site.RegularPages "Type" "!=" "special") }}
+ {{ partial "partials/article_list_item.html" . }}
+ {{ end }}
+ </ul>
+</article>
{{ end }}
+
+
+