Skip to content

Commit

Permalink
fix: add group to see url
Browse files Browse the repository at this point in the history
  • Loading branch information
d13 committed Apr 19, 2022
1 parent cfe58fb commit c755d29
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion views/includes/annotations/see.html.njk
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,13 @@
<h3 class="item__sub-heading">See</h3>
<ul class="list-unstyled">
{% endif %}

{% set group_name = '' %}
{% if see.group %}
{% set group_name = see.group + '-' %}
{% endif %}

<li><span class="item__cross-type">[{{ see.context.type }}]</span> <a href="#{{ see.context.type }}-{{ see.context.name }}"><code>{{ see.context.name | unescape }}</code></a></li>
<li><span class="item__cross-type">[{{ see.context.type }}]</span> <a href="#{{ group_name }}{{ see.context.type }}-{{ see.context.name }}"><code>{{ see.context.name | unescape }}</code></a></li>
{% endif %}

{% endfor %}
Expand Down

0 comments on commit c755d29

Please sign in to comment.