Add a way to generate TOML template for Stork.
This commit is contained in:
parent
565d4a6955
commit
c40672e762
1
themes/vanilla/layouts/_default/baseof.toml
Normal file
1
themes/vanilla/layouts/_default/baseof.toml
Normal file
|
@ -0,0 +1 @@
|
|||
{{- block "main" . }}{{- end }}
|
12
themes/vanilla/layouts/_default/list.toml.toml
Normal file
12
themes/vanilla/layouts/_default/list.toml.toml
Normal file
|
@ -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
|
3
themes/vanilla/layouts/_default/single.toml
Normal file
3
themes/vanilla/layouts/_default/single.toml
Normal file
|
@ -0,0 +1,3 @@
|
|||
{{ define "main" }}
|
||||
{{ .Content }}
|
||||
{{ end }}
|
Loading…
Reference in New Issue
Block a user