refactor: refactor to 11ty to support Tencent Cloud EdgeOne Maker
continuous-integration/drone/push Build is failing

This commit is contained in:
2026-11-02 17:06:03 +08:00
parent 338858bd57
commit 21253ee102
174 changed files with 22956 additions and 30 deletions
@@ -0,0 +1,27 @@
---
layout: default
---
{%- assign locale = page.locale | default: layout.locale | default: site.locale %}
{% if page.header.overlay_color or page.header.overlay_image or page.header.image %}
{% include page__hero.html locale=locale %}
{% elsif page.header.video.id and page.header.video.provider %}
{% include page__hero_video.html %}
{% endif %}
{% if page.url != "/" and site.breadcrumbs %}
{% unless paginator %}
{% include breadcrumbs.html locale=locale %}
{% endunless %}
{% endif %}
<div id="main" role="main">
{% include sidebar.html locale=locale %}
<div class="archive">
{% unless page.header.overlay_color or page.header.overlay_image %}
<h1 id="page-title" class="page__title"{% if page.locale %} lang="{{ page.locale }}"{% endif %}>{{ page.title }}</h1>
{% endunless %}
{{ content }}
</div>
</div>