web/_layouts/page.html
2023-10-04 18:15:22 +08:00

20 lines
441 B
HTML

---
layout: default
---
{% include lang.html %}
<article class="px-1">
{% if page.layout == 'page' or page.collection == 'tabs' %}
{% assign tab_key = page.title | downcase %}
{% assign title = site.data.locales[lang].tabs[tab_key] | default: page.title %}
<h1 class="dynamic-title">
{{ title }}
</h1>
<div class="content">
{{ content }}
</div>
{% else %}
{{ content }}
{% endif %}
</article>