{{ include 'partials/head' }} {{~ # ============ 公告条(可选,默认关;渲染在 header 下方主内容上方) ============ ~}} {{ if content.announcement_enabled && content.announcement_text }}
{{ content.announcement_text }}
{{ if content.announcement_url }} 查看详情 → {{ end }}
{{ end }}
{{~ # ============ Hero(必选:只要有 title 或 subtitle 即渲染) ============ ~}} {{ if content.hero_title || content.hero_subtitle }}
{{ if content.hero_eyebrow }}
{{ content.hero_eyebrow }}
{{ end }} {{ if content.hero_title }}

{{ content.hero_title }}

{{ end }} {{ if content.hero_subtitle }}

{{ content.hero_subtitle }}

{{ end }} {{ if content.hero_cta_label && content.hero_cta_url }} {{ end }}
{{ end }} {{~ # ============ 精选文章 (recommended) — 发布时勾选"推荐"的文章,可选,默认开 ============ ~}} {{~ # 布局:flex-1 大卡(对齐下方"最新文章")+ lg:w-80 右侧 2 张小卡(对齐下方"热门文章"侧栏),固定 3 篇 hero ~}} {{~ # items-stretch 让大卡与右侧列等高;大卡内 flex-col + 图片 flex-1 实现视觉底部对齐 ~}} {{ if content.recommended_enabled && recommended_articles.size > 0 }}
{{ if content.recommended_title }}

{{ content.recommended_title }}

{{ end }}
{{ for article in recommended_articles limit:1 }}
{{ if article.CoverImageUrl }} {{ article.Title }} {{ end }}
{{ if article.ColumnName }} {{ article.ColumnName }} {{ end }} {{ article.Title }} {{ if article.Description }} {{ article.Description }} {{ end }}
{{ if article.Author }} {{ article.Author }} · {{ end }}
{{ end }}
{{ end }}
{{~ # ============ 最新文章 (latest) — 可选,默认开 ============ ~}} {{ if content.latest_enabled }}

{{ if content.latest_title }}{{ content.latest_title }}{{ else }}最新文章{{ end }}

{{ for article in latest_articles }} {{ include 'partials/article_card' }} {{ end }}
{{~ # 无文章时的占位卡片:新站发布后前台不至于是空白 ~}} {{ if latest_articles.size == 0 }}

内容持续更新中,敬请期待

第一篇文章发布后,将自动展示在这里。

{{ end }}
{{ end }}
{{ include 'partials/footer' }}