Files
pear-admin-flask/templates/public/about.html
T
bwstudio 0ffc103e46 feat(plugins): 4 个业务插件代码 + 前台公开页面改造
plugins/navManager:导航 CRUD + 导航分类 CRUD(独立 blueprint)
plugins/friendManager:友情链接 CRUD
plugins/aboutManager:关于本站 CRUD
plugins/siteStats:访问统计主页 + JSON 接口 + /site/* GET 埋点 + nav 卡片点击埋点

applications/view/public/nav.py:导航聚合页 / 分类详情 / JSON 接口,支持 visit_count 注入
applications/view/public/about.py:关于本站公开页
applications/view/public/friend.py:友情链接公开页

templates/public/base.html:响应式首页(搜索框 / 分类抽屉 / 5 主题切换 / footer 隐私小字)
templates/public/index.html / category.html:卡片右下角访问次数
templates/public/about.html / friend.html:关于 + 友链前台页

docs/plugins-development.md:插件开发完整指南(生命周期 + 4 个示例 + FAQ + framework 迁移)

scripts/:探针与端到端验证脚本(probe_*/verify_*/test_*)
2026-09-06 18:18:06 +08:00

88 lines
3.4 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{% extends 'public/base.html' %}
{% block subtitle %}关于本站 · 备案信息 · 联系方式{% endblock %}
{% block content %}
<article class="card-section">
<div class="about-header">
<h1>{{ about.site_name or '关于本站' }}</h1>
{% if about.icp %}
<div class="icp-line">
<a href="https://beian.miit.gov.cn/" target="_blank" rel="noopener noreferrer">
<span class="beian-shield" aria-hidden="true">🛡</span>
{{ about.icp }}
</a>
</div>
{% endif %}
</div>
{% if content_html %}
<section class="about-content markdown-body">
{{ content_html | safe }}
</section>
{% else %}
<section class="about-content empty">
<p style="color:#999;text-align:center;padding:60px 20px;">
<span style="font-size:48px;">📝</span><br>
暂无「关于本站」内容。请到
<a href="/system/passport/login">后台</a> → 网站管理 → 关于本站 编辑。
</p>
</section>
{% endif %}
{% set has_contact =
about.contact_email or about.contact_qq or about.contact_wechat
or about.contact_telegram or about.contact_github %}
{% if has_contact %}
<section class="contact-grid">
<h2>联系方式</h2>
<ul>
{% if about.contact_email %}
<li><b>邮箱:</b>
<a href="mailto:{{ about.contact_email }}">{{ about.contact_email }}</a>
</li>
{% endif %}
{% if about.contact_qq %}
<li><b>QQ</b>{{ about.contact_qq }}</li>
{% endif %}
{% if about.contact_wechat %}
<li><b>微信:</b>{{ about.contact_wechat }}</li>
{% endif %}
{% if about.contact_telegram %}
<li><b>Telegram</b>
{% if about.contact_telegram.startswith('http') %}
<a href="{{ about.contact_telegram }}" target="_blank" rel="noopener noreferrer">{{ about.contact_telegram }}</a>
{% else %}
{{ about.contact_telegram }}
{% endif %}
</li>
{% endif %}
{% if about.contact_github %}
<li><b>GitHub</b>
<a href="{{ about.contact_github }}" target="_blank" rel="noopener noreferrer">{{ about.contact_github }}</a>
</li>
{% endif %}
</ul>
</section>
{% endif %}
{% if about.donate_url %}
<section class="donate-block">
<h2>支持作者</h2>
{% if about.donate_url.lower().endswith(('.png','.jpg','.jpeg','.gif','.webp')) %}
<img class="donate-img" src="{{ about.donate_url }}" alt="扫码打赏">
{% else %}
<a class="layui-btn layui-btn-warm" href="{{ about.donate_url }}" target="_blank" rel="noopener noreferrer">
❤️ 前往打赏
</a>
{% endif %}
</section>
{% endif %}
<div class="about-footer-meta">
最后更新:{{ about.update_at or '—' }}
{% if about.update_at %} &nbsp;·&nbsp; {{ about.create_at }}{% endif %}
</div>
</article>
{% endblock %}