mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Use numbers instead of [Link] in duplicate index entries.
This commit is contained in:
parent
e34a6e22a6
commit
436aa42b5d
@ -19,7 +19,7 @@
|
|||||||
<dd><dl>
|
<dd><dl>
|
||||||
{%- for subentryname, subentrylinks in subitems %}
|
{%- for subentryname, subentrylinks in subitems %}
|
||||||
<dt><a href="{{ subentrylinks[0] }}">{{ subentryname|e }}</a>
|
<dt><a href="{{ subentrylinks[0] }}">{{ subentryname|e }}</a>
|
||||||
{%- for link in subentrylinks[1:] %}, <a href="{{ link }}">[Link]</a>{% endfor -%}
|
{%- for link in subentrylinks[1:] %}, <a href="{{ link }}">[{{ loop.index }}]</a>{% endfor -%}
|
||||||
</dt>
|
</dt>
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
</dl></dd>
|
</dl></dd>
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
{%- set numitems = 0 %}
|
{%- set numitems = 0 %}
|
||||||
{% for entryname, (links, subitems) in entries %}
|
{% for entryname, (links, subitems) in entries %}
|
||||||
<dt>{%- if links -%}<a href="{{ links[0] }}">{{ entryname|e }}</a>
|
<dt>{%- if links -%}<a href="{{ links[0] }}">{{ entryname|e }}</a>
|
||||||
{%- for link in links[1:] %}, <a href="{{ link }}">[Link]</a>{% endfor -%}
|
{%- for link in links[1:] %}, <a href="{{ link }}">[{{ loop.index }}]</a>{% endfor -%}
|
||||||
{%- else -%}
|
{%- else -%}
|
||||||
{{ entryname|e }}
|
{{ entryname|e }}
|
||||||
{%- endif -%}</dt>
|
{%- endif -%}</dt>
|
||||||
@ -27,7 +27,7 @@
|
|||||||
<dd><dl>
|
<dd><dl>
|
||||||
{%- for subentryname, subentrylinks in subitems %}
|
{%- for subentryname, subentrylinks in subitems %}
|
||||||
<dt><a href="{{ subentrylinks[0] }}">{{ subentryname|e }}</a>
|
<dt><a href="{{ subentrylinks[0] }}">{{ subentryname|e }}</a>
|
||||||
{%- for link in subentrylinks[1:] %}, <a href="{{ link }}">[Link]</a>{% endfor -%}
|
{%- for link in subentrylinks[1:] %}, <a href="{{ link }}">[{{ loop.index }}]</a>{% endfor -%}
|
||||||
</dt>
|
</dt>
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
</dl></dd>
|
</dl></dd>
|
||||||
|
Loading…
Reference in New Issue
Block a user