This website works better with JavaScript.
git.jstrong.dev
Home
Explore
Help
Sign In
jstrong
/
zola
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
Update pagination for test_site posts
index-subcmd
Tim DuBois
6 years ago
parent
742987144c
commit
e99bdd07ac
No known key found for this signature in database
GPG Key ID:
4D3183C1C5D8A54F
2 changed files
with
3 additions
and
2 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-0
test_site/content/posts/_index.md
+2
-2
test_site/templates/page.html
+ 1
- 0
test_site/content/posts/_index.md
View File
@@ -3,4 +3,5 @@ title = "Posts"
paginate_by = 2
template = "section_paginated.html"
insert_anchor_links = "left"
sort_by = "date"
+++
+ 2
- 2
test_site/templates/page.html
View File
@@ -3,6 +3,6 @@
{% block content %}
{{ page.content | safe }}
{% if page.
previous %}Previous article: {{ page.previous
.permalink }}{% endif %}
{% if page.
next %}Next article: {{ page.next
.permalink }}{% endif %}
{% if page.
earlier %}Previous article: {{ page.earlier
.permalink }}{% endif %}
{% if page.
later %}Next article: {{ page.later
.permalink }}{% endif %}
{% endblock content %}
Write
Preview
Loading…
Cancel
Save