peter-tanner.github.io/_layouts/page.html

21 lines
441 B
HTML
Raw Normal View History

2024-10-13 04:56:18 +08:00
---
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>