Browse Source

Use Hugo's plaintext instead of file path for Stork index.

search
Danila Fedorin 10 months ago
parent
commit
1f1345477f
  1. 2
      themes/vanilla/layouts/_default/list.toml.toml

2
themes/vanilla/layouts/_default/list.toml.toml

@ -2,7 +2,7 @@
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 }} }
{{ range $index , $e := .Site.RegularPages }}{{ if $index }}, {{end}}{ filetype = "PlainText", contents = {{ $e.Plain | jsonify }}, title = {{ $e.Title | jsonify }}, url = {{ $e.Permalink | jsonify }} }
{{ end }}
]

Loading…
Cancel
Save