mirror of
https://github.com/ItsDrike/itsdrike.com.git
synced 2024-11-09 21:49:41 +00:00
Add option to add changelog
This commit is contained in:
parent
60e87eddfe
commit
8a4a518487
|
@ -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 }}
|
||||
|
|
|
@ -103,3 +103,9 @@ img {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
#changelog {
|
||||
font-family: $font-family-mono;
|
||||
font-size: $font-size-base * 0.9;
|
||||
font-weight: 400;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue