mirror of
https://github.com/nix-community/dream2nix.git
synced 2024-11-26 09:46:04 +03:00
docs: don't render full paths in reference toc
This commit is contained in:
parent
eeb48666ca
commit
5f3051487a
4
docs/theme/partials/toc-item.html
vendored
4
docs/theme/partials/toc-item.html
vendored
@ -29,7 +29,11 @@
|
||||
{%- endif %}
|
||||
<a href="{{ toc_item.url }}" class="md-nav__link">
|
||||
<span class="md-ellipsis">
|
||||
{%- if page.url.split("/")[-3] == "reference" -%}
|
||||
{{ toc_item.title.split(".")[-1] }}
|
||||
{%- else -%}
|
||||
{{ toc_item.title }}
|
||||
{%- endif -%}
|
||||
</span>
|
||||
</a>
|
||||
{% if should_collapse -%}
|
||||
|
Loading…
Reference in New Issue
Block a user