From c40672e762a3193fe57e80fcbd94e8de46744600 Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Sun, 27 Dec 2020 20:08:18 -0800 Subject: [PATCH] Add a way to generate TOML template for Stork. --- themes/vanilla/layouts/_default/baseof.toml | 1 + themes/vanilla/layouts/_default/list.toml.toml | 12 ++++++++++++ themes/vanilla/layouts/_default/single.toml | 3 +++ 3 files changed, 16 insertions(+) create mode 100644 themes/vanilla/layouts/_default/baseof.toml create mode 100644 themes/vanilla/layouts/_default/list.toml.toml create mode 100644 themes/vanilla/layouts/_default/single.toml diff --git a/themes/vanilla/layouts/_default/baseof.toml b/themes/vanilla/layouts/_default/baseof.toml new file mode 100644 index 0000000..49d010f --- /dev/null +++ b/themes/vanilla/layouts/_default/baseof.toml @@ -0,0 +1 @@ +{{- block "main" . }}{{- end }} diff --git a/themes/vanilla/layouts/_default/list.toml.toml b/themes/vanilla/layouts/_default/list.toml.toml new file mode 100644 index 0000000..2faed97 --- /dev/null +++ b/themes/vanilla/layouts/_default/list.toml.toml @@ -0,0 +1,12 @@ +[input] +base_directory = "content/" +title_boost = "Large" +files = [ + {{ range $index , $e := .Site.RegularPages }}{{ if $index }}, {{end}}{ path = {{ $e.File.Path | jsonify }}, title = {{ $e.Title | jsonify }}, url = {{ $e.Permalink | jsonify }} } + {{ end }} +] + +[output] +filename = "index.st" +excerpts_per_result = 2 +displayed_results_count = 5 diff --git a/themes/vanilla/layouts/_default/single.toml b/themes/vanilla/layouts/_default/single.toml new file mode 100644 index 0000000..9983b08 --- /dev/null +++ b/themes/vanilla/layouts/_default/single.toml @@ -0,0 +1,3 @@ +{{ define "main" }} +{{ .Content }} +{{ end }}