Add option to add changelog

This commit is contained in:
ItsDrike 2022-05-23 18:12:15 +02:00
parent 60e87eddfe
commit 8a4a518487
No known key found for this signature in database
GPG key ID: B014E761034AF742
2 changed files with 23 additions and 0 deletions

View file

@ -42,5 +42,22 @@
</ul>
{{ end }}
</div>
<div id="changelog">
{{ if .Params.Changelog }}
<h2> Changelog</h2>
<ul class="changelog-time">
{{ range $i, $e := .Params.Changelog }}
<li>
{{ time $i | time.Format "2006-01-02" }}:
<ul>
{{ range $c := $e }}
<li>{{ markdownify $c }}</li>
{{ end }}
</ul>
</li>
{{ end }}
</ul>
{{ end }}
</div>
</div>
{{ end }}

View file

@ -103,3 +103,9 @@ img {
}
}
}
#changelog {
font-family: $font-family-mono;
font-size: $font-size-base * 0.9;
font-weight: 400;
}