diff options
Diffstat (limited to 'assets/templates/markdown-feed.yaml')
-rw-r--r-- | assets/templates/markdown-feed.yaml | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/assets/templates/markdown-feed.yaml b/assets/templates/markdown-feed.yaml new file mode 100644 index 0000000..afb8c8a --- /dev/null +++ b/assets/templates/markdown-feed.yaml @@ -0,0 +1,22 @@ +--- +{{ range $key, $value := . -}} +{{- if or + (eq $key "date") + (eq $key "tags") +-}} +{{- $key }}: {{ $value }} +{{ end -}} +{{ end -}} +feed: +{{ range $key, $value := . -}} +{{- if and + (ne $key "content") + (ne $key "date") + (ne $key "tags") +-}} +{{ print " " }}{{- $key }}: {{ $value }} +{{ end -}} +{{ end -}} +--- + +{{ .content }} |