Skip to content

Commit ac99e74

Browse files
committed
add favicon
1 parent c0d878d commit ac99e74

File tree

4 files changed

+25
-1
lines changed

4 files changed

+25
-1
lines changed

Flask-21-favicon/app.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
from flask import Flask, render_template
2+
3+
app = Flask(__name__)
4+
5+
6+
@app.route('/')
7+
def index():
8+
return render_template('index.html')
9+
10+
11+
if __name__ == '__main__':
12+
app.run()
15 KB
Binary file not shown.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<link rel="shortcut icon" href="{{ url_for('static', filename='favicon.ico') }}">
6+
<title>Favicon</title>
7+
</head>
8+
<body>
9+
<p>Hello favicon</p>
10+
</body>
11+
</html>

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,5 @@
1919
17. [flask-cors](https://xugaoxiang.com/2020/08/26/flask-17-cors/)
2020
18. [flask-jwt-extended](https://xugaoxiang.com/2020/09/01/flask-18-jwt-extended/)
2121
19. [flask-socketio](https://xugaoxiang.com/2020/10/08/flask-19-socketio/)
22-
20. [flask-apscheduler](https://xugaoxiang.com/2020/10/08/flask-20-apscheduler/)
22+
20. [flask-apscheduler](https://xugaoxiang.com/2020/10/08/flask-20-apscheduler/)
23+
21. [添加favicon](https://xugaoxiang.com/2020/11/11/flask-21-favicon/)

0 commit comments

Comments
 (0)