{{ include 'partials/head' }} {{~ # ============ 解析 column_config sidebar_content 三模块 ============ ~}} {{ cfg_sidebar = column_config.sidebar_content cfg_hot_mod = cfg_sidebar ? cfg_sidebar.hot : null cfg_show_hot = !cfg_hot_mod || cfg_hot_mod.enabled != false cfg_hot_title = (cfg_hot_mod && cfg_hot_mod.title ? cfg_hot_mod.title : "热门文章") cfg_latest_mod = cfg_sidebar ? cfg_sidebar.latest : null cfg_show_latest = cfg_latest_mod && cfg_latest_mod.enabled cfg_latest_title = (cfg_latest_mod && cfg_latest_mod.title ? cfg_latest_mod.title : "最新文章") cfg_cols_mod = cfg_sidebar ? cfg_sidebar.columns : null cfg_show_columns = !cfg_cols_mod || cfg_cols_mod.enabled != false cfg_cols_title = (cfg_cols_mod && cfg_cols_mod.title ? cfg_cols_mod.title : "所有栏目") }}
{{~ # ============ 栏目 Hero ============ ~}}

{{ current_column.Name }}

{{ if current_column.Description }}

{{ current_column.Description }}

{{ end }}
{{~ # ============ 列表 + 侧栏 ============ ~}}
{{ if articles.size == 0 }}

该栏目暂无文章

新文章发布后将自动出现在这里。

{{ else }}
{{ for article in articles }} {{ card_variant = 'grid' }} {{ include 'partials/article_card' }} {{ end }}
{{ end }}
{{ include 'partials/footer' }}