2
0
mirror of https://github.com/inventree/inventree-website.git synced 2025-06-14 02:55:34 +00:00

refactor functions

This commit is contained in:
2022-02-07 01:16:35 +01:00
parent b1f3c19052
commit 41e8c5c3e7
6 changed files with 7 additions and 7 deletions

11
_includes/fnc/link.html Normal file
View File

@ -0,0 +1,11 @@
{% if include.item.site %}
{{ site[include.item.site] }}
{% elsif include.item.internal %}
{{ include.item.internal | relativurl }}
{% elsif include.item.link %}
{{ include.item.link }}
{% elsif include.item.home %}
{{ '/' | relative_url }}
{% else %}
{{ include.item }}
{% endif %}