Skip to content

Commit

Permalink
Merge pull request #116 from d13/fix/see-annotation-group
Browse files Browse the repository at this point in the history
fix: add group to see url
  • Loading branch information
valeriangalliat authored Apr 19, 2022
2 parents cfe58fb + c755d29 commit 7b2ae17
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 7b2ae17

Please # to comment.