Phase 2: T-201 至 T-206 前台 MVP 全部实现(11 templates + CSS + 31 tests)

This commit is contained in:
ila
2026-07-06 22:57:08 +08:00
parent 5604e2cde5
commit cff3c64c19
20 changed files with 996 additions and 98 deletions
+40 -39
View File
@@ -2,45 +2,46 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>
{% block title %}
{% if page.seo_title %}{{ page.seo_title }}{% else %}{{ page.title }}{% endif %}
{% endblock %}
{% block title_suffix %}
{% wagtail_site as current_site %}
{% if current_site and current_site.site_name %}- {{ current_site.site_name }}{% endif %}
{% endblock %}
</title>
{% if page.search_description %}
<meta name="description" content="{{ page.search_description }}" />
{% endif %}
<meta name="viewport" content="width=device-width, initial-scale=1" />
{# Force all links in the live preview panel to be opened in a new tab #}
{% if request.in_preview_panel %}
<base target="_blank">
{% endif %}
{# Global stylesheets #}
<link rel="stylesheet" type="text/css" href="{% static 'css/skelet.css' %}">
{% block extra_css %}
{# Override this in templates to add extra stylesheets #}
<head>
<meta charset="utf-8" />
<title>
{% block title %}
{% if page.seo_title %}{{ page.seo_title }}{% else %}{{ page.title }}{% endif %}
{% endblock %}
</head>
<body class="{% block body_class %}{% endblock %}">
{% wagtailuserbar %}
{% block content %}{% endblock %}
{# Global javascript #}
<script type="text/javascript" src="{% static 'js/skelet.js' %}"></script>
{% block extra_js %}
{# Override this in templates to add extra javascript #}
{% block title_suffix %}
{% wagtail_site as current_site %}
{% if current_site and current_site.site_name %}&ndash; {{ current_site.site_name }}{% endif %}
{% endblock %}
</body>
</title>
{% if page.search_description %}
<meta name="description" content="{{ page.search_description }}" />
{% endif %}
<meta name="viewport" content="width=device-width, initial-scale=1" />
{% if request.in_preview_panel %}
<base target="_blank">
{% endif %}
<link rel="stylesheet" type="text/css" href="{% static 'css/skelet.css' %}">
{% block extra_css %}{% endblock %}
</head>
<body class="{% block body_class %}{% endblock %}">
{% wagtailuserbar %}
{% include "includes/nav.html" %}
<main class="site-main">
<div class="container">
{% block content %}{% endblock %}
</div>
</main>
{% include "includes/footer.html" %}
<script type="text/javascript" src="{% static 'js/skelet.js' %}"></script>
{% block extra_js %}{% endblock %}
</body>
</html>