feat: Add notes as post type
This commit is contained in:
26
layouts/notes/list.html
Normal file
26
layouts/notes/list.html
Normal file
@@ -0,0 +1,26 @@
|
||||
{{ define "main" }}
|
||||
<h1 style="color: whitesmoke">Notes</h1>
|
||||
|
||||
<div style="color: whitesmoke;">
|
||||
{{ .Content }}
|
||||
</div>
|
||||
|
||||
|
||||
<ul style="list-style-type:none">
|
||||
{{ if (.Pages.ByDate.Reverse) }}
|
||||
{{ range .Pages.ByDate.Reverse }}
|
||||
<li class="block">
|
||||
<h2>
|
||||
<a href="{{ .Permalink }} " style="color: whitesmoke;"> {{ .Title }} </a>
|
||||
</h2>
|
||||
<small style="color: whitesmoke;">{{ .Date.Format "2006-01-02" }}</small>
|
||||
{{ if .Params.subtitle }}
|
||||
<p style="color: whitesmoke">{{ .Params.subtitle }}</p>
|
||||
{{ end }}
|
||||
</li>
|
||||
{{ end }}
|
||||
{{ else }}
|
||||
No notes found.
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user