aboutsummaryrefslogtreecommitdiff
path: root/templates/macros
diff options
context:
space:
mode:
authorHysterelius2023-09-26 14:36:59 +1000
committerGitHub2023-09-25 21:36:59 -0700
commit0e3727b97a6297ac9cdbbf3753a301c182e356d6 (patch)
tree250ea7b60b6ebac5e1df3d3dbf3d21cf2989cafc /templates/macros
parentba30a59c478715056ac2d01d16aac75a22ea0628 (diff)
downloadabridge-0e3727b97a6297ac9cdbbf3753a301c182e356d6.tar.gz
abridge-0e3727b97a6297ac9cdbbf3753a301c182e356d6.tar.bz2
abridge-0e3727b97a6297ac9cdbbf3753a301c182e356d6.zip
Add collapsing for sections (#148)
Add collapsing for sections
Diffstat (limited to 'templates/macros')
-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