Skip to content

Commit

Permalink
Move pagination into an include
Browse files Browse the repository at this point in the history
  • Loading branch information
huntermacd committed Aug 29, 2024
1 parent 743d6b6 commit 7dd401a
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 47 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
8 changes: 8 additions & 0 deletions src/COPYME_sample-ebook/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
title: "Sample eBook"
layout: layout
---

{% include 'chapter.liquid' %}

{% include 'pagination.liquid' %}
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
---
title: "Sample eBook"
layout: layout
---

{% include 'chapter.liquid' %}

<div class="nav-container">
{% if pagination.href.previous %}
<div class="nav-button">
Expand All @@ -17,4 +10,4 @@
<a href="{{ pagination.href.next }}"><i class="gg-arrow-right"></i></a>
</div>
{% endif %}
</div>
</div>
14 changes: 1 addition & 13 deletions src/ebooks/large-team-challenges/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,4 @@

{% include 'chapter.liquid' %}

<div class="nav-container">
{% if pagination.href.previous %}
<div class="nav-button">
<a href="{{ pagination.href.previous }}"><i class="gg-arrow-left"></i></a>
</div>
{% endif %}

{% if pagination.href.next %}
<div class="nav-button">
<a href="{{ pagination.href.next }}"><i class="gg-arrow-right"></i></a>
</div>
{% endif %}
</div>
{% include 'pagination.liquid' %}
14 changes: 1 addition & 13 deletions src/ebooks/over-structured-content/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,4 @@

{% include 'chapter.liquid' %}

<div class="nav-container">
{% if pagination.href.previous %}
<div class="nav-button">
<a href="{{ pagination.href.previous }}"><i class="gg-arrow-left"></i></a>
</div>
{% endif %}

{% if pagination.href.next %}
<div class="nav-button">
<a href="{{ pagination.href.next }}"><i class="gg-arrow-right"></i></a>
</div>
{% endif %}
</div>
{% include 'pagination.liquid' %}
14 changes: 1 addition & 13 deletions src/ebooks/rogue-university/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,4 @@

{% include 'chapter.liquid' %}

<div class="nav-container">
{% if pagination.href.previous %}
<div class="nav-button">
<a href="{{ pagination.href.previous }}"><i class="gg-arrow-left"></i></a>
</div>
{% endif %}

{% if pagination.href.next %}
<div class="nav-button">
<a href="{{ pagination.href.next }}"><i class="gg-arrow-right"></i></a>
</div>
{% endif %}
</div>
{% include 'pagination.liquid' %}

0 comments on commit 7dd401a

Please sign in to comment.