mirror of
https://github.com/nix-community/dream2nix.git
synced 2024-08-16 18:00:30 +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 %}
|
{%- endif %}
|
||||||
<a href="{{ toc_item.url }}" class="md-nav__link">
|
<a href="{{ toc_item.url }}" class="md-nav__link">
|
||||||
<span class="md-ellipsis">
|
<span class="md-ellipsis">
|
||||||
|
{%- if page.url.split("/")[-3] == "reference" -%}
|
||||||
|
{{ toc_item.title.split(".")[-1] }}
|
||||||
|
{%- else -%}
|
||||||
{{ toc_item.title }}
|
{{ toc_item.title }}
|
||||||
|
{%- endif -%}
|
||||||
</span>
|
</span>
|
||||||
</a>
|
</a>
|
||||||
{% if should_collapse -%}
|
{% if should_collapse -%}
|
||||||
|
Loading…
Reference in New Issue
Block a user