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' %}
+ {% block content %} + {# 这里存放写入模板的数据 #} + {% endblock %} +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 style %} + {# 这里存放style模板的数据 #} + {% endblock %} + +
+