Add a way to generate TOML template for Stork.
This commit is contained in:
parent
565d4a6955
commit
c40672e762
|
@ -0,0 +1 @@
|
|||
{{- block "main" . }}{{- end }}
|
|
@ -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
|
|
@ -0,0 +1,3 @@
|
|||
{{ define "main" }}
|
||||
{{ .Content }}
|
||||
{{ end }}
|
Loading…
Reference in New Issue