Browse Source

feat: 允许添加网站logo

SongZihuan 2 năm trước cách đây
mục cha
commit
ae08d39a9b
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 4 0
      templates/base.html

+ 4 - 0
templates/base.html

@@ -6,6 +6,10 @@
     <meta charset="UTF-8">
     <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
 
+    {% block icon %}
+        <link rel="icon" href="{{ url_for('oss.get_page', name="/hblog/logo.jpg") }}" type="image/x-icon"/>
+    {% endblock %}
+
     {% block font %}
         <link rel="preconnect" href="https://fonts.googleapis.com">
         <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>