feat: Add notes as post type
This commit is contained in:
@@ -42,15 +42,16 @@ preserveTaxonomyNames = true
|
|||||||
oxitraffic_url = "https://traffic.hyteck.de/count.js"
|
oxitraffic_url = "https://traffic.hyteck.de/count.js"
|
||||||
|
|
||||||
# Nav links in the side bar
|
# Nav links in the side bar
|
||||||
|
|
||||||
[[menu.main]]
|
[[menu.main]]
|
||||||
name = "Home"
|
name = "Notes"
|
||||||
url = "/"
|
url = "notes/"
|
||||||
weight = 1
|
weight = 1
|
||||||
|
|
||||||
[[menu.main]]
|
[[menu.main]]
|
||||||
name = "Services"
|
name = "Services"
|
||||||
url = "services/"
|
url = "services/"
|
||||||
weight = 3
|
weight = 2
|
||||||
|
|
||||||
[[menu.main]]
|
[[menu.main]]
|
||||||
name = "About"
|
name = "About"
|
||||||
|
|||||||
6
content/notes/_index.md
Normal file
6
content/notes/_index.md
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
---
|
||||||
|
title: "Notes"
|
||||||
|
---
|
||||||
|
|
||||||
|
My notes are mainly a store of information for my future self. Here you find titbits of information, small HowTos and
|
||||||
|
such. Do not expect the quality of a blogpost for these.
|
||||||
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