From 02469d6793bb216d81b209854bb3057dab9cc3ed Mon Sep 17 00:00:00 2001 From: Johannes Stoelp Date: Wed, 21 Dec 2022 21:03:24 +0100 Subject: remove unused shortcodes --- templates/shortcodes/include_range.md | 17 ----------------- templates/shortcodes/include_url.md | 2 -- 2 files changed, 19 deletions(-) delete mode 100644 templates/shortcodes/include_range.md delete mode 100644 templates/shortcodes/include_url.md (limited to 'templates/shortcodes') diff --git a/templates/shortcodes/include_range.md b/templates/shortcodes/include_range.md deleted file mode 100644 index bed515a..0000000 --- a/templates/shortcodes/include_range.md +++ /dev/null @@ -1,17 +0,0 @@ -{#- 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) -%} -{% for line in data -%} - {{ line }} -{% endfor -%} - -{#- 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. -#} diff --git a/templates/shortcodes/include_url.md b/templates/shortcodes/include_url.md deleted file mode 100644 index 3cb1f67..0000000 --- a/templates/shortcodes/include_url.md +++ /dev/null @@ -1,2 +0,0 @@ -{% set data = load_data(url=url) %} -{{ data }} -- cgit v1.2.3