aboutsummaryrefslogtreecommitdiffhomepage
path: root/templates/shortcodes/include_range.md
diff options
context:
space:
mode:
authorJohannes Stoelp <johannes.stoelp@gmail.com>2022-12-17 22:07:18 +0100
committerJohannes Stoelp <johannes.stoelp@gmail.com>2022-12-17 22:07:18 +0100
commitb6b157bc9f9445a716692ea599af7f6e4a69c849 (patch)
tree3c5bad829159181d7fbed5b7d7e1612c8ec42046 /templates/shortcodes/include_range.md
parent2e90f71d547dd9294a26861b66b6344bc49ab9af (diff)
downloadblog-b6b157bc9f9445a716692ea599af7f6e4a69c849.tar.gz
blog-b6b157bc9f9445a716692ea599af7f6e4a69c849.zip
template: fix whitespacing
Diffstat (limited to 'templates/shortcodes/include_range.md')
-rw-r--r--templates/shortcodes/include_range.md26
1 files changed, 13 insertions, 13 deletions
diff --git a/templates/shortcodes/include_range.md b/templates/shortcodes/include_range.md
index cfcce76..b8ec9e5 100644
--- a/templates/shortcodes/include_range.md
+++ b/templates/shortcodes/include_range.md
@@ -1,17 +1,17 @@
-{# Args: #}
-{# path - file to load #}
-{# start - start line #}
-{# end - end line #}
-{# #}
-{# Example: #}
-{# {{ include_range(path="..", start=1, end=2) }} #}
+{#- Args: -#}
+{#- path - file to load -#}
+{#- start - start line -#}
+{#- end - end line -#}
+{#- -#}
+{#- Example: -#}
+{#- {{ include_range(path="..", start=1, end=2) }} -#}
-{% set data = load_data(path=path) | split(pat="\n") | slice(start=start-1, end=end) %}
+{% set data = load_data(path=path) | split(pat="\n") | slice(start=start-1, end=end) -%}
{% for line in data -%}
- {{ line }}
-{% endfor %}
+ {{ line -}}
+{% endfor -%}
-{# The '-' in the for loop is important, it removes the whitespaces after the stmt. #}
-{# See: https://tera.netlify.app/docs/#whitespace-control #}
+{#- The '-' in the for loop is important, it removes the whitespaces after the stmt. -#}
+{#- See: https://tera.netlify.app/docs/#whitespace-control -#}
-{# Note: I wasn't able to pull this off with a join(), maybe I'll debug one day. #}
+{#- Note: I wasn't able to pull this off with a join(), maybe I'll debug one day. -#}