diff options
author | Johannes Stoelp <johannes.stoelp@gmail.com> | 2022-12-21 21:03:24 +0100 |
---|---|---|
committer | Johannes Stoelp <johannes.stoelp@gmail.com> | 2022-12-21 21:03:24 +0100 |
commit | 02469d6793bb216d81b209854bb3057dab9cc3ed (patch) | |
tree | d14455e277cf392cf2c4a80a19c86dd34c051c1d /templates/shortcodes | |
parent | ef6777e506b301110b8426a10929e35b10c5c08c (diff) | |
download | blog-02469d6793bb216d81b209854bb3057dab9cc3ed.tar.gz blog-02469d6793bb216d81b209854bb3057dab9cc3ed.zip |
remove unused shortcodes
Diffstat (limited to 'templates/shortcodes')
-rw-r--r-- | templates/shortcodes/include_range.md | 17 | ||||
-rw-r--r-- | templates/shortcodes/include_url.md | 2 |
2 files changed, 0 insertions, 19 deletions
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 }} |