From 690b4e2ed30307c65a79a2e32a6eeb80a6a17f9a Mon Sep 17 00:00:00 2001 From: skimrme Date: Wed, 8 Jul 2026 15:36:48 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E6=88=90paint=E7=9A=84=E5=B1=95?= =?UTF-8?q?=E7=A4=BA=E9=A1=B5=E9=9D=A2=EF=BC=8C=E5=B9=B6=E4=B8=94=E5=AE=8C?= =?UTF-8?q?=E6=88=90=E5=9B=BE=E7=89=87=E4=B8=8A=E4=BC=A0=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- blueprint/index_views.py | 2 +- templates/blog/extension/base.html | 2 +- templates/paint/extension/base.html | 13 ++++++ templates/paint/home.html | 67 ++++++++++++++++++----------- 4 files changed, 57 insertions(+), 27 deletions(-) create mode 100644 templates/paint/extension/base.html diff --git a/blueprint/index_views.py b/blueprint/index_views.py index 51ccf60..d771bae 100644 --- a/blueprint/index_views.py +++ b/blueprint/index_views.py @@ -42,4 +42,4 @@ def paint_home(): for class_data in db_cursor.execute(class_sql).fetchall(): for tags_data in db_cursor.execute(tags_sql).fetchall(): - return render_template('paint/home.html', data = data, tags_data = tags_data[0], class_data = class_data[0], img_url = img_url) \ No newline at end of file + return render_template('paint/home.html', data = data[::-1], tags_data = tags_data[0], class_data = class_data[0], img_url = img_url) \ No newline at end of file diff --git a/templates/blog/extension/base.html b/templates/blog/extension/base.html index 68b4a46..3268430 100644 --- a/templates/blog/extension/base.html +++ b/templates/blog/extension/base.html @@ -9,7 +9,7 @@ {% endblock %} {% block move %} - {# 这里存放更多模板的数据 #} + {# 这里存放更多模板的数据 #} {% endblock %} {% include 'blog/include/footer.html' %} diff --git a/templates/paint/extension/base.html b/templates/paint/extension/base.html new file mode 100644 index 0000000..3623c44 --- /dev/null +++ b/templates/paint/extension/base.html @@ -0,0 +1,13 @@ + + + {% block title %}{% endblock %} | ww3 + {% block style %} + {# 这里存放style模板的数据 #} + {% endblock %} + + + {% block content %} + {# 这里存放写入模板的数据 #} + {% endblock %} + + \ No newline at end of file diff --git a/templates/paint/home.html b/templates/paint/home.html index 03a95ac..a68efd2 100644 --- a/templates/paint/home.html +++ b/templates/paint/home.html @@ -1,16 +1,14 @@ {# 引入base #} -{% extends 'blog/extension/base.html' %} - -{% include 'blog/include/head.html' %} - - - +{% extends 'paint/extension/base.html' %} {# 引入标题 #} {% block title %}paint{% endblock %} +{% include 'blog/include/head.html' %} + + {% block content %} - + {% block style %} - + {% endblock %} +
{% include 'blog/include/navbar2.html' %}
- 返回主页 -

这里是关于本人的绘画学习及其临摹的记录和展示页面

-
- 旧作列表
- {% for data in data %} +
+
+ 返回主页 +

这里是关于本人的绘画学习及其临摹的记录和展示页面

+
+ 旧作列表 +
+
+ {% for data in data %} + {{data['name']}} + {{data['name']}}__ + {{data['date']}} + {% endfor %} +
+
+
+ - + class: __{{class_data}} --> +
+
+ {% include 'blog/include/footer.html' %} +
- +
{% endblock %} \ No newline at end of file