summaryrefslogtreecommitdiff
path: root/_includes
diff options
context:
space:
mode:
Diffstat (limited to '_includes')
-rw-r--r--_includes/header.html4
-rw-r--r--_includes/pagetrail.html13
2 files changed, 15 insertions, 2 deletions
diff --git a/_includes/header.html b/_includes/header.html
index dc42cdd..b3489c2 100644
--- a/_includes/header.html
+++ b/_includes/header.html
@@ -19,9 +19,9 @@
that are automatically created by the gem. Check for non-existence to exclude pagination pages from site.pages iterators
-->
- <!-- add exclusion of /index to avoid having the link twice -->
+ <!-- add exclusion of /index to avoid having the link twice -->
- {% for my_page in site.pages %}
+ {% for my_page in site.pages %}
{% if my_page.title and my_page.autogen == nil and my_page.url != "/index.html" %}
<a class="page-link" href="{{ my_page.url | relative_url }}">{{ my_page.title | escape }}</a>
{% endif %}
diff --git a/_includes/pagetrail.html b/_includes/pagetrail.html
new file mode 100644
index 0000000..7ce2712
--- /dev/null
+++ b/_includes/pagetrail.html
@@ -0,0 +1,13 @@
+<div class="pagetrail">
+{% if paginator.page_trail %}
+ {% for trail in paginator.page_trail %}
+ <a
+ href="{{ trail.path | prepend: site.baseurl }}"
+ title="{{trail.title}}"
+ {% if page.url == trail.path %}
+ class="current_pagelink"
+ {% endif %}
+ >{{ trail.num }}</a>
+ {% endfor %}
+{% endif %}
+</div>