From 5857d01501091e3a357fed24da4161ae5b955108 Mon Sep 17 00:00:00 2001 From: Johannes Stoelp Date: Tue, 21 Nov 2023 21:43:51 +0100 Subject: shortcodes: remove variable and rm surrounding whitepsaces ref: https://keats.github.io/tera/docs/#whitespace-control --- templates/shortcodes/fetch_url.md | 3 +-- 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) -}} -- cgit v1.2.3