From 8373794f11050d234a825e7b98286cc95c152c7e Mon Sep 17 00:00:00 2001 From: skimrme Date: Mon, 29 Dec 2025 10:54:51 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=AF=E6=89=93=E8=AF=AF=E6=92=9E=E6=88=90?= =?UTF-8?q?=E5=8A=9F=E4=BA=86=EF=BC=8C=E8=B5=B6=E7=B4=A7=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- __init__.py | 0 templates/blog/{ => extension}/base.html | 8 ++++---- templates/blog/home.html | 13 +++++++------ templates/blog/{ => include}/footer.html | 6 ++++++ templates/blog/{ => include}/head.html | 1 + templates/blog/{ => include}/navbar.html | 0 templates/blog/{ => include}/wallpaper.html | 2 +- 7 files changed, 19 insertions(+), 11 deletions(-) delete mode 100644 __init__.py rename templates/blog/{ => extension}/base.html (88%) rename templates/blog/{ => include}/footer.html (70%) rename templates/blog/{ => include}/head.html (63%) rename templates/blog/{ => include}/navbar.html (100%) rename templates/blog/{ => include}/wallpaper.html (97%) diff --git a/__init__.py b/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/templates/blog/base.html b/templates/blog/extension/base.html similarity index 88% rename from templates/blog/base.html rename to templates/blog/extension/base.html index ef693d4..0790a70 100644 --- a/templates/blog/base.html +++ b/templates/blog/extension/base.html @@ -3,13 +3,13 @@ {% block title %}{% endblock %} | ww3 -
- {% block logs_and_page %} +
+ {% block content %} {# 这里存放写入模板的数据 #} {% endblock %}
- {% include 'blog/footer.html' %} + {% include 'blog/include/footer.html' %} @@ -24,7 +24,7 @@ color: black; font-weight: bold; } - #logs_and_page { + #content { margin: 0 0 0 0; margin-left: 5%; width: 90%; diff --git a/templates/blog/home.html b/templates/blog/home.html index e7f5f66..98d6cec 100644 --- a/templates/blog/home.html +++ b/templates/blog/home.html @@ -1,14 +1,14 @@ {# 引入base #} -{% extends 'blog/base.html' %} +{% extends 'blog/extension/base.html' %} {# 引入标题 #} {% block title %}首页{% endblock %} -{% include 'blog/head.html' %} +{% include 'blog/include/head.html' %} -{% include 'blog/wallpaper.html' %} +{% include 'blog/include/wallpaper.html' %} -{% block logs_and_page %} +{% block content %}

欢迎访问open-ww3-project

屑站日志:

@@ -52,11 +52,10 @@ {% endfor %}
- {% endblock %} \ No newline at end of file diff --git a/templates/blog/footer.html b/templates/blog/include/footer.html similarity index 70% rename from templates/blog/footer.html rename to templates/blog/include/footer.html index e3db7ee..21f5081 100644 --- a/templates/blog/footer.html +++ b/templates/blog/include/footer.html @@ -5,11 +5,17 @@ padding: 10px; margin-top: 0; "> +
+ 无情ta站: + 1win + jvav +

© 2025 | open-ww3-poject for ww3.tw
关于站长 网页地图 + 留言小角

联系: diff --git a/templates/blog/head.html b/templates/blog/include/head.html similarity index 63% rename from templates/blog/head.html rename to templates/blog/include/head.html index 2b75b4e..6ce3726 100644 --- a/templates/blog/head.html +++ b/templates/blog/include/head.html @@ -1,4 +1,5 @@ + \ No newline at end of file diff --git a/templates/blog/navbar.html b/templates/blog/include/navbar.html similarity index 100% rename from templates/blog/navbar.html rename to templates/blog/include/navbar.html diff --git a/templates/blog/wallpaper.html b/templates/blog/include/wallpaper.html similarity index 97% rename from templates/blog/wallpaper.html rename to templates/blog/include/wallpaper.html index dd525f6..f6daa89 100644 --- a/templates/blog/wallpaper.html +++ b/templates/blog/include/wallpaper.html @@ -17,7 +17,7 @@

在这里,我会分享我学到的计算机知识或者记录一些自己经常碰到的问题

- {% include 'blog/navbar.html' %} + {% include 'blog/include/navbar.html' %}