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

github.com/fiatjaf/classless-hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfiatjaf <fiatjaf@gmail.com>2018-04-16 01:23:53 +0300
committerfiatjaf <fiatjaf@gmail.com>2019-07-08 21:21:46 +0300
commit0b99da439e484fbc8c37369a2a36d1f19b379ee0 (patch)
tree3e486b38d000e1f2e5beada247ec2d1032ac85ae
parentacdcad3dc9ed615b50aeff981d22f610d2a40e7e (diff)
support pagination.HEADmaster
-rw-r--r--LICENSE.md2
-rw-r--r--layouts/_default/list.html11
-rw-r--r--theme.toml2
3 files changed, 12 insertions, 3 deletions
diff --git a/LICENSE.md b/LICENSE.md
index 422275f..63e35ea 100644
--- a/LICENSE.md
+++ b/LICENSE.md
@@ -1,6 +1,6 @@
The MIT License
-Copyright 2018 Giovanni T. Parra
+Copyright 2018 fiatjaf
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index 888ff4f..0f65485 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -11,7 +11,7 @@
</article>
{{ end }}
<ul>
- {{ range .Data.Pages.ByDate }}
+ {{ range .Paginator.Pages }}
<li>
<article>
{{ partial "article-header.html" . }}
@@ -23,4 +23,13 @@
{{ end }}
</ul>
</section>
+
+<footer>
+ <nav>
+ <ul>
+ <li><a {{ if .Paginator.HasPrev }}href="{{ .Paginator.Prev.URL }}"{{ end }}>prev</a></li>
+ <li><a {{ if .Paginator.HasNext }}href="{{ .Paginator.Next.URL }}"{{ end }}>next</a></li>
+ </ul>
+ </nav>
+</footer>
{{ end }}
diff --git a/theme.toml b/theme.toml
index b25730d..0525c70 100644
--- a/theme.toml
+++ b/theme.toml
@@ -8,7 +8,7 @@ features = ["multiple themes", "not extensible"]
min_version = "0.38.2"
[author]
- name = "Giovanni T"
+ name = "fiatjaf"
homepage = "https://fiatjaf.alhur.es/"
[original]