mirror of
https://github.com/rvtr/wiki.git
synced 2025-10-31 06:31:13 -04:00
- They now work as tabs without JS - Use an include for cleaner markdown - A little bit nicer code overall, annoying that the split is needed, but otherwise pretty nice now
8 lines
408 B
HTML
8 lines
408 B
HTML
<div class="tab-container">
|
|
{% for tab in page.tabs[include.index] %}
|
|
<input id="tab-{{ tab[0] }}" class="d-none" name="tabs" type="radio" {% if forloop.first %}checked{% endif %}>
|
|
<label for="tab-{{ tab[0] }}" class="tab-link btn btn-outline-secondary" onclick="setTab('{{ tab[0] }}')">{{ tab[1] }}</label>
|
|
<div class="tab">{{ include.tabs[forloop.index0] | markdownify }}</div>
|
|
{% endfor %}
|
|
</div>
|