diff options
author | Johannes Stoelp <johannes.stoelp@gmail.com> | 2023-11-21 21:43:51 +0100 |
---|---|---|
committer | Johannes Stoelp <johannes.stoelp@gmail.com> | 2023-11-21 21:43:51 +0100 |
commit | 5857d01501091e3a357fed24da4161ae5b955108 (patch) | |
tree | 12d30b8488899b711b0f2b107b0fac81806a9117 /templates/shortcodes | |
parent | 574913d40969628b768606383db7cf797a59442f (diff) | |
download | blog-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.md | 3 | ||||
-rw-r--r-- | templates/shortcodes/include.md | 3 |
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) -}} |