File tree Expand file tree Collapse file tree 4 files changed +44
-27
lines changed Expand file tree Collapse file tree 4 files changed +44
-27
lines changed Original file line number Diff line number Diff line change 22
22
max-width : 65rem ;
23
23
margin : 0 auto ;
24
24
height : fit-content ;
25
- padding : 2.5rem ;
26
- line-height : 1.6rem ;
25
+ padding : 2.5rem ;
27
26
}
28
27
29
28
& __title {
65
64
& __body {
66
65
font-size : 1.15rem ;
67
66
margin : 3rem 0 ;
67
+ line-height : 1.6rem ;
68
68
}
69
69
70
70
& __sources {
Original file line number Diff line number Diff line change 4
4
min-height : 90vh ;
5
5
height : fit-content ;
6
6
padding-bottom : 5rem ;
7
+ a {
8
+ color : #c40729 ;
9
+ }
10
+
11
+ a :hover {
12
+ color : #ff1f48 ;
13
+ }
14
+
15
+ a :visited {
16
+ color : #c40729 ;
17
+ }
7
18
}
8
19
9
20
& __content {
10
21
max-width : 65rem ;
11
22
margin : 0 auto ;
12
23
height : fit-content ;
13
- padding : 2.5rem ;
24
+ padding : 2.5rem ;
14
25
}
15
26
16
27
& __title {
17
28
font-size : 2.5rem ;
18
29
font-weight : 700 ;
19
- margin-bottom : 2 rem ;
30
+ height : fit-content ;
20
31
}
21
32
22
33
& __contributors {
26
37
& __summary {
27
38
font-size : 1.5rem ;
28
39
margin-bottom : 2rem ;
40
+ line-height : 1.8rem ;
29
41
}
30
42
31
43
& __last-updated {
37
49
font-size : 1.15rem ;
38
50
margin : 3rem 0 ;
39
51
margin-bottom : 4rem ;
52
+ line-height : 1.6rem ;
40
53
}
41
54
42
55
& __sources {
Original file line number Diff line number Diff line change @@ -35,18 +35,20 @@ <h1 class="article-question__title">{{ .Title }}</h1>
35
35
</ div >
36
36
< div style ="height: 0.2rem "> </ div >
37
37
{{ with .Params.sources }}
38
- < div class ="resource__sources ">
39
- < div >
40
- < i class ="fas fa-external-link-alt " aria-hidden ="true "> </ i >
41
- < span class ="resource__sources__heading "> Links and Sources</ span >
38
+ {{ if gt (len .) 0 }}
39
+ < div class ="resource__sources ">
40
+ < div >
41
+ < i class ="fas fa-external-link-alt " aria-hidden ="true "> </ i >
42
+ < span class ="resource__sources__heading "> Links and Sources</ span >
43
+ </ div >
44
+ {{ range $index, $source := . }}
45
+ < p >
46
+ ({{ add $index 1 }})
47
+ < a href ="{{ $source.link }} "> {{ $source.name }}</ a >
48
+ </ p >
49
+ {{ end }}
42
50
</ div >
43
- {{ range $index, $source := . }}
44
- < p >
45
- ({{ add $index 1 }})
46
- < a href ="{{ $source.link }} "> {{ $source.name }}</ a >
47
- </ p >
48
- {{ end }}
49
- </ div >
51
+ {{ end }}
50
52
{{ end }}
51
53
</ div >
52
54
</ div >
Original file line number Diff line number Diff line change @@ -35,19 +35,21 @@ <h1 class="faq-question__title">{{ .Title }}</h1>
35
35
</ div >
36
36
< div style ="height: 0.2rem "> </ div >
37
37
{{ with .Params.sources }}
38
- < div class ="resource__sources ">
39
- < div >
40
- < i class ="fas fa-external-link-alt " aria-hidden ="true "> </ i >
41
- < span class ="resource__sources__heading "> Links and Sources</ span >
38
+ {{ if gt (len .) 0 }}
39
+ < div class ="resource__sources ">
40
+ < div >
41
+ < i class ="fas fa-external-link-alt " aria-hidden ="true "> </ i >
42
+ < span class ="resource__sources__heading "> Links and Sources</ span >
43
+ </ div >
44
+ {{ range $index, $source := . }}
45
+ < p >
46
+ ({{ add $index 1 }})
47
+ < a href ="{{ $source.link }} "> {{ $source.name }}</ a >
48
+ </ p >
49
+ {{ end }}
42
50
</ div >
43
- {{ range $index, $source := . }}
44
- < p >
45
- ({{ add $index 1 }})
46
- < a href ="{{ $source.link }} "> {{ $source.name }}</ a >
47
- </ p >
48
- {{ end }}
49
- </ div >
50
- {{ end }}
51
+ {{ end }}
52
+ {{ end }}
51
53
</ div >
52
54
</ div >
53
55
{{ end }}
You can’t perform that action at this time.
0 commit comments