{# 1011 首帧防白闪(FOUC):主题恢复必须在外置 JS 之前同步执行,且首帧背景按主题硬编码 (外部 style.css 未加载时 --bg 变量取不到,不能依赖 var())——否则每次整页导航先渲染 默认浅色/白底、CSS 应用后才变深色 #} {# 1118 移动端侧边栏抽屉遮罩(点它收起;桌面端不显示/不生效) #}
{# 1020 移动端品牌行:logo+站点名,仅手机显示(桌面顶栏保持原样);有页内标题的页 (.page-title-in-content,如热榜选题)改显示站点名,其余页显示页面标题; LOGO 跳网站首页(index 落地页),返回工作台首页请用顶栏中间的「🏠 首页」 #} {{ site_name }}
{% block page_title %}{{ site_name }}{% endblock %}
{# 1020 移动端「🏠 首页」:顶栏中间,返回工作台首页(热榜选题);仅手机显示,桌面顶栏不加 #} 🏠 首页
{% if standalone_mode %} 👤 {{ current_username or user_id }} {% else %} 数据用户:{{ user_id }} {% endif %} {% if owner_mode or standalone_mode %}
{% endif %} {% if admin_enabled and (is_admin or not (owner_mode or standalone_mode)) %} 🛡 管理{{ ' · 已登录' if is_admin else '' }} {% endif %} ⚙ 设置
{% with messages = get_flashed_messages(with_categories=true) %} {% for category, message in messages %}

{{ message }}

{% endfor %} {% endwith %} {% block content %}{% endblock %}
{# 1020 移动端站点页脚:版本/联系我们/协议放页面底部(仅手机显示;桌面端仍在侧边栏 .side-foot)。 与侧边栏页脚同用 .foot-contact / .fx-ver-new 类钩子,JS 一次绑定两处 #} {% if fx_show_foot %}
{% if fx_download_url %} 版本 v{{ fx_version }}{% if fx_built_date %} · {{ fx_built_date }}{% endif %} {% else %} 版本 v{{ fx_version }}{% if fx_built_date %} · {{ fx_built_date }}{% endif %} {% endif %} 联系我们 · 用户协议
{% endif %}
{% if fx_show_foot %} {# 联系我们弹窗(0922):数据来自 /api/site/contact(绿色版自动转发线上站);只点 ✕ 关闭 #} {% endif %} {# 顶栏「🔔 消息」消息中心弹窗(0922):站内公告(全部历史,最新在上,可 ✕ 收起)+ 管理员回复的消息; 只点 ✕ 关闭(不做点遮罩关闭);绿色版配激活服务器时公告/消息经服务端转发线上站 #} {% block scripts %}{% endblock %}