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