aboutsummaryrefslogtreecommitdiff
path: root/assets/templates
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2022-05-26 16:27:32 -0400
committertdro <tdro@noreply.example.com>2022-05-26 16:27:32 -0400
commitf4fc7fcc6228cb5bdf69fe7a3d2c75070a7a7fb4 (patch)
tree47a7b9a2e6df94cfd7e010ce0d0308ae53a4b515 /assets/templates
parentd233708dcf098fa80feb035f709674f9d6fbc65b (diff)
downloadcanory-f4fc7fcc6228cb5bdf69fe7a3d2c75070a7a7fb4.tar.gz
canory-f4fc7fcc6228cb5bdf69fe7a3d2c75070a7a7fb4.tar.bz2
canory-f4fc7fcc6228cb5bdf69fe7a3d2c75070a7a7fb4.zip
assets/templates/markdown-feed: Namespace feed meta
Diffstat (limited to 'assets/templates')
-rw-r--r--assets/templates/markdown-feed.yaml22
-rw-r--r--assets/templates/markdown.yaml9
2 files changed, 22 insertions, 9 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 }}
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 }}