aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/material/templates/partials/tabs-item.html
diff options
context:
space:
mode:
author简律纯 <i@jyunko.cn>2023-12-15 09:17:18 +0800
committer简律纯 <i@jyunko.cn>2023-12-15 09:17:18 +0800
commitefb0730e641f575368e7e80fec80be16a03c95f4 (patch)
tree1732934333d589234eb92ca880364b6e1acfb378 /material/templates/partials/tabs-item.html
parent31c55c2ea7d7aad1df6748f91101dcf69bb29475 (diff)
downloadinfini-efb0730e641f575368e7e80fec80be16a03c95f4.tar.gz
infini-efb0730e641f575368e7e80fec80be16a03c95f4.zip
refactor(dir-tree): `material` -> `src/material`
Diffstat (limited to 'material/templates/partials/tabs-item.html')
-rw-r--r--material/templates/partials/tabs-item.html35
1 files changed, 0 insertions, 35 deletions
diff --git a/material/templates/partials/tabs-item.html b/material/templates/partials/tabs-item.html
deleted file mode 100644
index 0e80035c..00000000
--- a/material/templates/partials/tabs-item.html
+++ /dev/null
@@ -1,35 +0,0 @@
-{#-
- This file was automatically generated - do not edit
--#}
-{% macro render_content(nav_item, ref = nav_item) %}
- {% if nav_item == ref or "navigation.indexes" in features %}
- {% if nav_item.is_index and nav_item.meta.icon %}
- {% include ".icons/" ~ nav_item.meta.icon ~ ".svg" %}
- {% endif %}
- {% endif %}
- {{ ref.title }}
-{% endmacro %}
-{% macro render(nav_item, ref = nav_item) %}
- {% set class = "md-tabs__item" %}
- {% if ref.active %}
- {% set class = class ~ " md-tabs__item--active" %}
- {% endif %}
- {% if nav_item.children %}
- {% set first = nav_item.children | first %}
- {% if first.children %}
- {{ render(first, ref) }}
- {% else %}
- <li class="{{ class }}">
- <a href="{{ first.url | url }}" class="md-tabs__link">
- {{ render_content(first, ref) }}
- </a>
- </li>
- {% endif %}
- {% else %}
- <li class="{{ class }}">
- <a href="{{ nav_item.url | url }}" class="md-tabs__link">
- {{ render_content(nav_item) }}
- </a>
- </li>
- {% endif %}
-{% endmacro %}