add ability to put changelog in front matter of each page
This commit is contained in:
parent
a7f4ac1240
commit
96d5805abd
|
@ -4,6 +4,18 @@
|
|||
|
||||
<main>
|
||||
{{ .Content }}
|
||||
|
||||
{{ if .Params.changelog }}
|
||||
<h2>Changelog</h2>
|
||||
<div id="Changelog">
|
||||
<dl>
|
||||
{{ range .Params.changelog }}
|
||||
<dt><strong>{{ .date }}</strong></dt>
|
||||
<dd>{{ .text }}</dd>
|
||||
{{ end }}
|
||||
</dl>
|
||||
</div>
|
||||
{{ end }}
|
||||
</main>
|
||||
|
||||
{{ partial "footer.html" . }}
|
||||
|
|
|
@ -59,6 +59,7 @@
|
|||
<a id="top" />
|
||||
|
||||
{{ if .Params.toc }}
|
||||
<h2>Table of Contents</h2>
|
||||
{{ .TableOfContents }}
|
||||
{{ else }}
|
||||
{{ end }}
|
|
@ -27,6 +27,10 @@ hr {
|
|||
border: 1px solid #eee;
|
||||
border-radius: 5px;
|
||||
}
|
||||
#Changelog {
|
||||
border: 1px solid #eee;
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
/* pagination */
|
||||
.pagination { text-align: center; }
|
||||
|
|
Loading…
Reference in a new issue