From f4fc7fcc6228cb5bdf69fe7a3d2c75070a7a7fb4 Mon Sep 17 00:00:00 2001 From: tdro Date: Thu, 26 May 2022 16:27:32 -0400 Subject: assets/templates/markdown-feed: Namespace feed meta --- assets/templates/markdown-feed.yaml | 22 ++++++++++++++++++++++ assets/templates/markdown.yaml | 9 --------- 2 files changed, 22 insertions(+), 9 deletions(-) create mode 100644 assets/templates/markdown-feed.yaml (limited to 'assets/templates') 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 }} diff --git a/assets/templates/markdown.yaml b/assets/templates/markdown.yaml index 109f5a1..e69de29 100644 --- a/assets/templates/markdown.yaml +++ b/assets/templates/markdown.yaml @@ -1,9 +0,0 @@ ---- -{{ range $key, $value := . -}} -{{- if ne $key "content" -}} -{{- $key }}: {{ $value }} -{{ end -}} -{{- end -}} ---- - -{{ .content }} -- cgit v1.2.3