From d0efa54edb3657c212462dcf6391bf179a05f0f8 Mon Sep 17 00:00:00 2001 From: "M. Taylor Saotome-Westlake" Date: Fri, 8 Sep 2017 17:24:51 -0700 Subject: [PATCH] paginate main site --- notes/tech_tasks.txt | 6 +++--- pelicanconf.py | 2 +- theme/templates/index.html | 4 +++- theme/templates/pagination.inc.html | 10 +++++++++- 4 files changed, 16 insertions(+), 6 deletions(-) diff --git a/notes/tech_tasks.txt b/notes/tech_tasks.txt index 3ae85c1..db0e9ad 100644 --- a/notes/tech_tasks.txt +++ b/notes/tech_tasks.txt @@ -6,6 +6,6 @@ configure scheduled posting with cron self-promotion: Reddit, Crossdreamers, Third Way Trans Pelican bug report or patch re spacing in file favicon -CSS size (my browser things look better at 90%) -"Read more" breaks -paginate main site +"Read more" breaks (problem: plugin for this uses fixed length cutoff) + + diff --git a/pelicanconf.py b/pelicanconf.py index edb94ce..162365b 100644 --- a/pelicanconf.py +++ b/pelicanconf.py @@ -33,7 +33,7 @@ LINKS = ( ('My Only Path to Power', "https://transwidow.wordpress.com/"), ) -DEFAULT_PAGINATION = 12 +DEFAULT_PAGINATION = 20 WITH_FUTURE_DATES = False diff --git a/theme/templates/index.html b/theme/templates/index.html index 233c8a8..4095ae9 100644 --- a/theme/templates/index.html +++ b/theme/templates/index.html @@ -3,7 +3,7 @@ {% block content %} -{% for article in articles %} +{% for article in articles_page.object_list %}

{{ article.title }}

{% include 'metadata.inc.html' %} @@ -12,4 +12,6 @@
{% endfor %} +{% include 'pagination.inc.html' %} + {% endblock content %} diff --git a/theme/templates/pagination.inc.html b/theme/templates/pagination.inc.html index 5784130..fbbf7c1 100644 --- a/theme/templates/pagination.inc.html +++ b/theme/templates/pagination.inc.html @@ -2,14 +2,22 @@ {% endif %} -- 2.17.1