Skip to content

Commit

Permalink
add jekyll-paginate - attempt_6
Browse files Browse the repository at this point in the history
  • Loading branch information
Miro0o committed Feb 6, 2024
1 parent cc66c27 commit def028f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ feed:

# Pagination - https://jekyllrb.com/docs/pagination/
paginate: 10
paginate_path: /page:num/
paginate_path: ./page:num/

# Search
search_full_content: false
Expand Down
7 changes: 3 additions & 4 deletions _layouts/home.html
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
---
layout: page
paginate: true
---

{{ content }}

<div class="entries-{{ page.entries_layout | default: 'list' }}">
<!-- {%- if site.plugins contains 'jekyll-paginate' and page.paginate or site.gems contains 'jekyll-paginate' and page.paginate -%}
{%- if site.plugins contains 'jekyll-paginate' and page.paginate or site.gems contains 'jekyll-paginate' and page.paginate -%}
{%- comment -%}
Add paginator.posts loop if jekyll-paginate plugin is enabled
and page.paginate == true
{%- endcomment -%}
{% include posts-paginated.html %}
{%- else -%}
{% include posts-limit.html %}
{%- endif -%} -->
{% include posts-paginated.html %}
{%- endif -%}
<!-- {% include posts-paginated.html %} -->
</div>

0 comments on commit def028f

Please sign in to comment.