-
Notifications
You must be signed in to change notification settings - Fork 28
Expand file tree
/
Copy pathfaq-question.html
More file actions
70 lines (70 loc) · 2.33 KB
/
faq-question.html
File metadata and controls
70 lines (70 loc) · 2.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
{{ define "main" }}
{{- partial "navbar_temp.html" . -}}
<div class="faq-question__page">
<div class="faq-question__content">
{{ $last := time .Params.last_updated }} {{ $sixMonthsAgo := now.AddDate 0
-6 0 }} {{ if lt $last $sixMonthsAgo }}
<div
style="
background-color: #ea0e0e;
color: #000000;
border: 1px solid #ffeeba;
padding: 1rem;
margin-top: 1rem;
"
>
⚠️ <strong>Note:</strong> This page was last updated more than 6 months
ago and may be out of date.
</div>
{{ end }}
<h1 class="faq-question__title">{{ title .Title }}</h1>
<p class="faq-question__summary">
<i><b>Summary:</b> {{ .Params.summary }}</i>
</p>
<div class="resource__updated-at" style="margin-top: -1rem;">
<i class="far fa-clock" aria-hidden="true"></i>
Updated:
{{ .Params.last_updated | time | dateFormat "January 2, 2006" }}
</div>
<hr class="resource__separator" />
<div class="faq-question__body">
{{ .Content }}
</div>
<hr class="resource__separator" />
<div style="height: 0.5rem"></div>
{{ with .Params.contributors }}
<div class="resource__contributors">
<span><i class="far fa-user" aria-hidden="true"></i></span>
<span class="resource__contributors-list">
{{ range $index, $contributor := . }}
<span class="resource__contributor-pill">
{{ $contributor }}
</span>
{{ end }}
</span>
</div>
{{ end }}
<div style="height: 0.2rem"></div>
<div class="faq-question__related">
{{ partial "resources-related-content.html" . }}
</div>
<div style="height: 0.2rem"></div>
{{ with .Params.sources }}
{{ if gt (len .) 0 }}
<div class="resource__sources">
<div>
<i class="fas fa-external-link-alt" aria-hidden="true"></i>
<span class="resource__sources__heading">Links and Sources</span>
</div>
{{ range $index, $source := . }}
<p>
({{ add $index 1 }})
<a href="{{ $source.link }}">{{ $source.name }}</a>
</p>
{{ end }}
</div>
{{ end }}
{{ end }}
</div>
</div>
{{ end }}