diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2022-04-16 10:28:41 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2022-04-16 10:28:41 +0300 |
commit | c20b13372e9b24fd6df42de1d98a54cc29635f4f (patch) | |
tree | 672ee1690d2489cb085595e8fb3efb4cf8cc0381 | |
parent | paginator: add empty lines for readability (diff) | |
download | jekyll-theme-c20b13372e9b24fd6df42de1d98a54cc29635f4f.tar.gz jekyll-theme-c20b13372e9b24fd6df42de1d98a54cc29635f4f.zip |
paginator: move the text-center block to the include
-rw-r--r-- | _includes/jekyll-theme/posts/feed.html | 4 | ||||
-rw-r--r-- | _includes/jekyll-theme/posts/paginator.html | 4 |
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 %} |