diff options
| author | Hysterelius | 2023-09-26 14:36:59 +1000 |
|---|---|---|
| committer | GitHub | 2023-09-25 21:36:59 -0700 |
| commit | 0e3727b97a6297ac9cdbbf3753a301c182e356d6 (patch) | |
| tree | 250ea7b60b6ebac5e1df3d3dbf3d21cf2989cafc /templates/macros/macros.html | |
| parent | ba30a59c478715056ac2d01d16aac75a22ea0628 (diff) | |
| download | abridge-0e3727b97a6297ac9cdbbf3753a301c182e356d6.tar.gz abridge-0e3727b97a6297ac9cdbbf3753a301c182e356d6.tar.bz2 abridge-0e3727b97a6297ac9cdbbf3753a301c182e356d6.zip | |
Add collapsing for sections (#148)
Add collapsing for sections
Diffstat (limited to 'templates/macros/macros.html')
| -rw-r--r-- | templates/macros/macros.html | 9 |
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 |
