From 82170a7ee5a3aecd983680fb366d1ad864acb596 Mon Sep 17 00:00:00 2001 From: Vezpi Date: Mon, 2 Jun 2025 12:52:40 +0000 Subject: [PATCH] add: index.json layout --- layouts/index.json.json | 11 +++++++++++ themes/PaperMod | 1 + themes/hugo-coder | 1 + 3 files changed, 13 insertions(+) create mode 100644 layouts/index.json.json create mode 160000 themes/PaperMod create mode 160000 themes/hugo-coder diff --git a/layouts/index.json.json b/layouts/index.json.json new file mode 100644 index 0000000..a5c98f1 --- /dev/null +++ b/layouts/index.json.json @@ -0,0 +1,11 @@ +{{- $.Scratch.Add "index" slice -}} +{{- range .Site.RegularPages -}} + {{- $.Scratch.Add "index" (dict + "title" .Title + "permalink" .Permalink + "summary" .Summary + "tags" .Params.tags + "date" (.Date.Format "2006-01-02") + ) -}} +{{- end -}} +{{- $.Scratch.Get "index" | jsonify -}} \ No newline at end of file diff --git a/themes/PaperMod b/themes/PaperMod new file mode 160000 index 0000000..ee1e0f3 --- /dev/null +++ b/themes/PaperMod @@ -0,0 +1 @@ +Subproject commit ee1e0f3aa3c3575a756c9b17be5823e21de09c30 diff --git a/themes/hugo-coder b/themes/hugo-coder new file mode 160000 index 0000000..6bc0059 --- /dev/null +++ b/themes/hugo-coder @@ -0,0 +1 @@ +Subproject commit 6bc00595434affd85e9d55af98779460de6fb1cd