完善了首页和关于前端页面,以及解决了图片存储方案问题
This commit is contained in:
@@ -0,0 +1,55 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}关于 - 人,是一根会思考的芦苇{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div style="margin-bottom: 2rem;">
|
||||
<!-- 头像 + 标题 -->
|
||||
{% if site_info.avatar %}
|
||||
<div style="text-align: center; margin-bottom: 2rem;">
|
||||
<img src="{{ site_info.avatar.url }}" alt="头像"
|
||||
style="width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border);">
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<h2 style="
|
||||
font-size: 1.3rem;
|
||||
font-weight: 600;
|
||||
color: var(--text);
|
||||
margin-bottom: 1.5rem;
|
||||
text-align: center;
|
||||
">{{ site_info.about_title }}</h2>
|
||||
|
||||
<!-- 关于内容(支持 HTML) -->
|
||||
<div class="post-body" style="margin-bottom: 2rem;">
|
||||
{{ site_info.about_content|safe }}
|
||||
</div>
|
||||
|
||||
<!-- 社交链接 -->
|
||||
{% if site_info.github_url or site_info.email or site_info.wechat %}
|
||||
<div style="
|
||||
margin-top: 2rem;
|
||||
padding-top: 1.5rem;
|
||||
border-top: 1px solid var(--border);
|
||||
font-size: 0.9rem;
|
||||
color: var(--text-light);
|
||||
font-family: -apple-system, 'Noto Sans SC', sans-serif;
|
||||
">
|
||||
<p style="margin-bottom: 0.5rem; font-weight: 600; color: var(--text);">联系方式</p>
|
||||
{% if site_info.email %}
|
||||
<p style="margin-bottom: 0.3rem;">📧 <a href="mailto:{{ site_info.email }}" style="color: var(--text-light); text-decoration: none;">{{ site_info.email }}</a></p>
|
||||
{% endif %}
|
||||
{% if site_info.github_url %}
|
||||
<p style="margin-bottom: 0.3rem;">🐙 <a href="{{ site_info.github_url }}" target="_blank" rel="noopener" style="color: var(--text-light); text-decoration: none;">{{ site_info.github_url }}</a></p>
|
||||
{% endif %}
|
||||
{% if site_info.wechat %}
|
||||
<p style="margin-bottom: 0.3rem;">💬 微信:{{ site_info.wechat }}</p>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<div style="margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); font-size: 0.85rem; color: var(--text-muted); font-family: -apple-system, 'Noto Sans SC', sans-serif;">
|
||||
<a href="/" style="color: var(--text-light); text-decoration: none;">← 返回首页</a>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user