aboutsummaryrefslogtreecommitdiff
path: root/templates/macros/macros.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/macros/macros.html')
-rw-r--r--templates/macros/macros.html9
1 files changed, 9 insertions, 0 deletions
diff --git a/templates/macros/macros.html b/templates/macros/macros.html
index 66673d1..d5ea391 100644
--- a/templates/macros/macros.html
+++ b/templates/macros/macros.html
@@ -297,3 +297,12 @@
</nav>
{%- endif %}
{%- endmacro %}
+
+{%- macro series_link(inner, page) %}
+ {%- set uglyurls = config.extra.uglyurls | default(value=false) -%}
+ {%- if inner.content == page.content %}
+ <li><a href="{{ inner.permalink | safe }}{%- if uglyurls %}index.html{%- endif %}"><b>{{ inner.title }}</b></a></li>
+ {% else %}
+ <li><a href="{{ inner.permalink | safe }}{%- if uglyurls %}index.html{%- endif %}">{{ inner.title }}</a></li>
+ {%- endif %}
+{%- endmacro %} \ No newline at end of file