aboutsummaryrefslogtreecommitdiffhomepage
path: root/templates/shortcodes
diff options
context:
space:
mode:
authorJohannes Stoelp <johannes.stoelp@gmail.com>2023-11-21 21:43:51 +0100
committerJohannes Stoelp <johannes.stoelp@gmail.com>2023-11-21 21:43:51 +0100
commit5857d01501091e3a357fed24da4161ae5b955108 (patch)
tree12d30b8488899b711b0f2b107b0fac81806a9117 /templates/shortcodes
parent574913d40969628b768606383db7cf797a59442f (diff)
downloadblog-5857d01501091e3a357fed24da4161ae5b955108.tar.gz
blog-5857d01501091e3a357fed24da4161ae5b955108.zip
shortcodes: remove variable and rm surrounding whitepsaces
ref: https://keats.github.io/tera/docs/#whitespace-control
Diffstat (limited to 'templates/shortcodes')
-rw-r--r--templates/shortcodes/fetch_url.md3
-rw-r--r--templates/shortcodes/include.md3
2 files changed, 2 insertions, 4 deletions
diff --git a/templates/shortcodes/fetch_url.md b/templates/shortcodes/fetch_url.md
index 1079fca..9ead229 100644
--- a/templates/shortcodes/fetch_url.md
+++ b/templates/shortcodes/fetch_url.md
@@ -1,2 +1 @@
-{% set data = load_data(url=url) -%}
-{{ data }}
+{{- load_data(url=url) -}}
diff --git a/templates/shortcodes/include.md b/templates/shortcodes/include.md
index b9a2141..71b6438 100644
--- a/templates/shortcodes/include.md
+++ b/templates/shortcodes/include.md
@@ -1,2 +1 @@
-{% set data = load_data(path=path) -%}
-{{ data }}
+{{- load_data(path=path) -}}