commit 05d04912ed63cf8eff8961d857565472114a93ab Author: Stefan Ritter Date: Sat Apr 1 09:22:13 2023 +0200 Example diff --git a/data.json b/data.json new file mode 100644 index 0000000..252e975 --- /dev/null +++ b/data.json @@ -0,0 +1,10 @@ +{ + "01 Foo": { + "01 Egg": "http://egg", + "02 Ham": "http://ham" + }, + "02 Bar": { + "01 Spam": "http://spam", + "02 Drum": "http://drum" + } +} diff --git a/template.html b/template.html new file mode 100644 index 0000000..35a535a --- /dev/null +++ b/template.html @@ -0,0 +1,10 @@ +{{ range $section, $content := .Site.Data.data }} +{{ $title := substr $section 3 }} +{{ $title }} + +{{ end }}