Skip to content

Commit 8e59d72

Browse files
author
Ivan Santiago Guevara
committed
add warning banner
1 parent f802118 commit 8e59d72

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

layouts/_default/faq-question.html

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,21 @@
22
{{- partial "navbar_temp.html" . -}}
33
<div class="faq-question__page">
44
<div class="faq-question__content">
5+
{{ $last := time .Params.last_updated }} {{ $sixMonthsAgo := now.AddDate 0
6+
-6 0 }} {{ if lt $last $sixMonthsAgo }}
7+
<div
8+
style="
9+
background-color: #ea0e0e;
10+
color: #000000;
11+
border: 1px solid #ffeeba;
12+
padding: 1rem;
13+
margin-top: 1rem;
14+
"
15+
>
16+
⚠️ <strong>Note:</strong> This page was last updated more than 6 months
17+
ago and may be out of date.
18+
</div>
19+
{{ end }}
520
<h1 class="faq-question__title">{{ title .Title }}</h1>
621
<p class="faq-question__summary">
722
<i><b>Summary:</b> {{ .Params.summary }}</i>

0 commit comments

Comments
 (0)