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:
-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]