From: M. Taylor Saotome-Westlake Date: Sat, 9 Sep 2017 00:24:51 +0000 (-0700) Subject: paginate main site X-Git-Url: http://unremediatedgender.space/source?a=commitdiff_plain;h=d0efa54edb3657c212462dcf6391bf179a05f0f8;p=Ultimately_Untrue_Thought.git paginate main site --- 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 %}