File tree Expand file tree Collapse file tree 4 files changed +5367
-6162
lines changed
11ty/_includes/components Expand file tree Collapse file tree 4 files changed +5367
-6162
lines changed Original file line number Diff line number Diff line change 1
1
{% macro renderAltWords (words , labels ) %}
2
2
{%- if words | isArray -%}
3
3
{# Array #}
4
- <ul
5
- class =" list-semicolon"
6
- {% if labels %}aria-labelledby =" {{ labels | join(' ') }}" {% endif %}
7
- >
4
+ <ul class =" list-semicolon" {% if labels %} aria-labelledby =" {{ labels | join(' ') }}" {% endif %} >
8
5
{%- for word in words -%}
9
6
<li >
10
7
{{ word | linkIfExistsInCollection (collections .definedWords ) | safe }}
15
12
{# Object #}
16
13
{# With class="", the list loses padding via the CSS reset style. #}
17
14
{# For multi-level category support, we may want an actual class. #}
18
- <ul class =" " >
19
- {%- for category , list in words -%}
15
+ <ul class =" " > {%- for category , list in words -%}
20
16
<li >
21
17
{% set categoryId = (" alt-words-" + category ) | replace (' ' , ' -' ) %}
22
18
<strong id =" {{ categoryId }}" >{{ category }} </strong >
26
22
</ul >
27
23
{%- endif -%}
28
24
{% endmacro %}
29
-
30
25
<section class =" definition-content" >
31
26
<section class =" definition-content__content" >
32
27
{{ content | safe }}
40
35
{%- if reading -%}
41
36
<section class =" definition-content__content" >
42
37
<h2 id =" further-reading" >Further Reading</h2 >
43
- <ul class =" list-semicolon " aria-labelledby =" further-reading" >
38
+ <ul class =" list-no-bullets " aria-labelledby =" further-reading" >
44
39
{% for link in reading %}
45
40
<li >
46
- <a href =" {{link.href}}" >{{ link .text }} </a >
41
+ <a href =" {{ link.href }}" >{{ link .text }} </a >
47
42
</li >
48
43
{% endfor %}
49
44
</ul >
50
45
</section >
51
46
{% endif %}
52
- </section >
47
+ </section >
Original file line number Diff line number Diff line change 1
- ol , dl {
1
+ ol ,
2
+ dl {
2
3
margin : 0 ;
3
4
padding : 0 0 0 1em ;
4
5
}
25
26
font-weight : $bold ;
26
27
}
27
28
28
- .list-semicolon {
29
+ .list-no-bullets {
29
30
list-style : none ;
30
31
margin : 0 ;
31
32
padding : 0 ;
32
-
33
- & > li {
34
- display : inline ;
35
-
36
- & :not (:last-child )::after {
37
- content : ' ; ' ;
38
- }
39
- }
40
33
}
41
34
42
35
.list-default {
Original file line number Diff line number Diff line change 1
1
module . exports = {
2
2
ci : {
3
3
upload : {
4
- target : 'temporary-public-storage' ,
4
+ target : 'temporary-public-storage'
5
5
} ,
6
6
assert : {
7
- preset : " lighthouse:no-pwa" ,
7
+ preset : ' lighthouse:no-pwa' ,
8
8
assertions : {
9
- " font-display" : " off" ,
10
- " uses-rel-preconnect" : " off" ,
11
- " render-blocking-resources" : " off" ,
12
- " uses-long-cache-ttl" : " off"
9
+ ' font-display' : ' off' ,
10
+ ' uses-rel-preconnect' : ' off' ,
11
+ ' render-blocking-resources' : ' off' ,
12
+ ' uses-long-cache-ttl' : ' off'
13
13
}
14
14
}
15
- } ,
15
+ }
16
16
} ;
You can’t perform that action at this time.
0 commit comments