1
0
Эх сурвалжийг харах

feat: logo保存到本地

SongZihuan 2 жил өмнө
parent
commit
75aa085358

+ 2 - 1
.gitignore

@@ -139,4 +139,5 @@ dmypy.json
 # Cython debug symbols
 cython_debug/
 
-etc
+etc
+static/logo.jpg

+ 1 - 0
configure/__init__.py

@@ -34,6 +34,7 @@ conf = {
                   "%(message)s",
     "LOG_LEVEL": logging.INFO,
     "LOG_STDERR": True,
+    "LOGO": "logo.jpg",
 }
 
 

+ 1 - 1
templates/base.html

@@ -7,7 +7,7 @@
     <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"/>
+        <link rel="icon" href="{{ url_for('static', filename=conf["LOGO"]) }}" type="image/x-icon"/>
     {% endblock %}
 
     {% block font %}