Skip to content

Commit 918dbb2

Browse files
committed
Fix incorrect 'WC' tag display on sidebar on individual component pages. Closes #110.
1 parent 190fb4c commit 918dbb2

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

docs/templates/base.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,9 @@
6767
<ul>
6868
<li><a href="/components">All components</a></li>
6969
{% set components = get_section(path="components/_index.md") %}
70-
{% for page in components.pages %}
71-
<li><a href="/components/#{{ page.slug }}">{{ page.title }}
72-
{% if page.extra.webcomponent | default(value=false) %}<sup title="WebComponent">WC</sup>{% endif %}</a></li>
70+
{% for component in components.pages %}
71+
<li><a href="/components/#{{ component.slug }}">{{ component.title }}
72+
{% if component.extra.webcomponent | default(value=false) %}<sup title="WebComponent">WC</sup>{% endif %}</a></li>
7373
{% endfor %}
7474
</ul>
7575
</details>

0 commit comments

Comments
 (0)