forked from MinhQuan/MiscCorpo
Refactor static serving: use Blueprint static_folder, inline header
- Disable Flask default /static/ folder (static_folder=None in app.py) - Add headerRoute blueprint to serve views/header/ at /assets/header/ - Configure transcription and scraper blueprints with static_folder pointing to their respective views/ subfolders - Inline header HTML directly in headerLoader.js (remove fetch call) - Update all HTML templates to use new /assets/... URLs
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
<title>Phiên Âm</title>
|
||||
<link rel="stylesheet" href="https://db.onlinewebfonts.com/c/5ac3fe7c6abd2f62067f266d89671492?family=HelveticaNowDisplay-Medium" />
|
||||
<link rel="stylesheet" href="https://db.onlinewebfonts.com/c/1aa3377e489837a26d019bba501e779d?family=HelveticaNowDisplayW01-Rg" />
|
||||
<link rel="stylesheet" href="/static/transcriptionPages/transcriptionMain.css" />
|
||||
<link rel="stylesheet" href="/assets/transcription/transcriptionMain.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
@@ -105,7 +105,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script src="/static/transcriptionPages/transcriptionMain.js"></script>
|
||||
<script src="/static/header/headerLoader.js?v=1.0"></script>
|
||||
<script src="/assets/transcription/transcriptionMain.js"></script>
|
||||
<script src="/assets/header/headerLoader.js?v=1.1"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user