Add a way to generate TOML template for Stork.

This commit is contained in:
Danila Fedorin 2020-12-27 20:08:18 -08:00
parent 565d4a6955
commit c40672e762
3 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1 @@
{{- block "main" . }}{{- end }}

View 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

View File

@ -0,0 +1,3 @@
{{ define "main" }}
{{ .Content }}
{{ end }}