Compare commits

..

2 commits

Author SHA1 Message Date
c543664ef5 initial list.html template 2020-12-12 05:23:04 +01:00
de9e594785 allow for HTML in markdown 2020-12-12 05:22:33 +01:00
2 changed files with 17 additions and 5 deletions

View file

@ -25,13 +25,17 @@ disableKinds = ["RSS", "sitemap"]
[outputs]
list = ["html", "js"]
[markup]
[markup.tableOfContents]
[markup.tableOfContents]
endLevel=4
ordered = true
startLevel = 1
[markup.goldmark.renderer]
unsafe = true
[module]
# replacement allow for easier local development
replacements = "git.sandpoints.org/Drawwell/SandpointsTheme -> /home/m/devel/SandpointsTheme"
[[module.imports]]
path = "git.sandpoints.org/Drawwell/SandpointsTheme"

View file

@ -1,3 +1,11 @@
<ul>
<li>{{ .Title }}</li>
</ul>
{{ define "singlebody" }}
{{ $s := partialCached "scratch.html" . }}
{{ range $p := .Site.Pages }}
{{ $scratch := $s.Get (printf "/%s" .File) }}
<div>{{ . }}: {{ .Title }}</div>
{{ with ($scratch.depth) }}
<div>Depth: {{ . }}
{{ end }}
<hr />
{{ end }}
{{ end }}