aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/_includes
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2022-04-16 10:28:41 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2022-04-16 10:28:41 +0300
commitc20b13372e9b24fd6df42de1d98a54cc29635f4f (patch)
tree672ee1690d2489cb085595e8fb3efb4cf8cc0381 /_includes
parentpaginator: add empty lines for readability (diff)
downloadjekyll-theme-c20b13372e9b24fd6df42de1d98a54cc29635f4f.tar.gz
jekyll-theme-c20b13372e9b24fd6df42de1d98a54cc29635f4f.zip
paginator: move the text-center block to the include
Diffstat (limited to '_includes')
-rw-r--r--_includes/jekyll-theme/posts/feed.html4
-rw-r--r--_includes/jekyll-theme/posts/paginator.html4
2 files changed, 5 insertions, 3 deletions
diff --git a/_includes/jekyll-theme/posts/feed.html b/_includes/jekyll-theme/posts/feed.html
index 1baea3c..f3bfe14 100644
--- a/_includes/jekyll-theme/posts/feed.html
+++ b/_includes/jekyll-theme/posts/feed.html
@@ -17,7 +17,5 @@
{{ post.excerpt | markdownify }}
</div>
{% endfor %}
- <div class="text-center">
- {% include jekyll-theme/posts/paginator.html %}
- </div>
+ {% include jekyll-theme/posts/paginator.html %}
{% endif %}
diff --git a/_includes/jekyll-theme/posts/paginator.html b/_includes/jekyll-theme/posts/paginator.html
index 1525868..f61bc0b 100644
--- a/_includes/jekyll-theme/posts/paginator.html
+++ b/_includes/jekyll-theme/posts/paginator.html
@@ -18,6 +18,8 @@
{% assign page1_url = page.url | split: '/' | pop | join: '/' | append: '/' %}
{% endif %}
+<div class="text-center">
+
<ul class="pagination">
{% if paginator.previous_page %}
<li>
@@ -54,4 +56,6 @@
{% endif %}
</ul>
+</div>
+
{% endif %}