diff options
Diffstat (limited to 'templates/shortcodes/showdata.html')
| -rw-r--r-- | templates/shortcodes/showdata.html | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/templates/shortcodes/showdata.html b/templates/shortcodes/showdata.html deleted file mode 100644 index 7f3d3bc..0000000 --- a/templates/shortcodes/showdata.html +++ /dev/null @@ -1,18 +0,0 @@ -{# showdata(src="../theme.toml" type="toml" key="min_version") #} - -{%- if src and key and type %} - {%- if src is matching("^http[s]?://") %} - {% set data = load_data(url=src, format=type) %} - {%- else %} - {% set data = load_data(path=src, format=type) %} - {%- endif %} - {{ data[key] }} -{%- else %} - {# Load other file types as plain text #} - {%- if src is matching("^http[s]?://") %} - {% set data = load_data(url=src) %} - {%- else %} - {% set data = load_data(path=src) %} - {%- endif %} - {{ data }} -{%- endif %} |
