Skip to content

Commit a6e5a7d

Browse files
committed
Add distinct id's for subsections of the same name
Add {{include.id}} to the id's for classes 'org-type clearfix' and 'alt-h3 mb-3' to permit subsections under Government/Civic Hackers/Research to have the same name.
1 parent 9274016 commit a6e5a7d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

_includes/org-table.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ <h2 class="alt-h2 mb-3" id="{{ include.id }}">{{ include.name }}</h2>
77
{% assign columns = 4 %}
88
{% for type_hash in include.orgs %}
99
{% assign slug = type_hash[0] | downcase | replace: ' ','-' | replace: '.','' %}
10-
<div class="org-type clearfix" id="type-{{ slug }}">
11-
<h3 class="alt-h3 mb-3" id="{{ slug }}">{{ type_hash[0] }} ({{ type_hash[1] | size }})</h3>
10+
<div class="org-type clearfix" id="type-{{ include.id }}-{{ slug }}">
11+
<h3 class="alt-h3 mb-3" id="{{ include.id }}-{{ slug }}">{{ type_hash[0] }} ({{ type_hash[1] | size }})</h3>
1212

1313
<div class="orgs">
1414
{% for org in type_hash[1] %}

0 commit comments

Comments
 (0)