diff options
author | Johannes Stoelp <johannes.stoelp@gmail.com> | 2022-12-19 18:53:26 +0100 |
---|---|---|
committer | Johannes Stoelp <johannes.stoelp@gmail.com> | 2022-12-19 18:53:26 +0100 |
commit | df9ac27b1048713207d2314407079586a080fc4f (patch) | |
tree | 63eba74e1bbf281d460658a2829c0e1cd05159c2 /templates/shortcodes | |
parent | 2f6ebc372c392069c378f7826cd5d85d51bb7b52 (diff) | |
download | blog-df9ac27b1048713207d2314407079586a080fc4f.tar.gz blog-df9ac27b1048713207d2314407079586a080fc4f.zip |
fix whitespace in shortcodes
Diffstat (limited to 'templates/shortcodes')
-rw-r--r-- | templates/shortcodes/include.md | 2 | ||||
-rw-r--r-- | templates/shortcodes/include_range.md | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/templates/shortcodes/include.md b/templates/shortcodes/include.md index 163f5a0..b9a2141 100644 --- a/templates/shortcodes/include.md +++ b/templates/shortcodes/include.md @@ -1,2 +1,2 @@ {% set data = load_data(path=path) -%} -{{ data -}} +{{ data }} diff --git a/templates/shortcodes/include_range.md b/templates/shortcodes/include_range.md index b8ec9e5..bed515a 100644 --- a/templates/shortcodes/include_range.md +++ b/templates/shortcodes/include_range.md @@ -8,7 +8,7 @@ {% set data = load_data(path=path) | split(pat="\n") | slice(start=start-1, end=end) -%} {% for line in data -%} - {{ line -}} + {{ line }} {% endfor -%} {#- The '-' in the for loop is important, it removes the whitespaces after the stmt. -#} |