| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- <!DOCTYPE html>
- <html lang="zh-CN">
- <head>
- <meta charset="UTF-8" />
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>{% block title %}个人博客{% endblock %}</title>
- <link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}" />
- {% block extra_head %}{% endblock %}
- <!-- MathJax 配置 -->
- <script>
- MathJax = {
- tex: {
- inlineMath: [['$', '$'], ['\\(', '\\)']]
- },
- svg: {
- fontCache: 'global'
- }
- };
- </script>
- <script src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js" id="MathJax-script" async></script>
- </head>
- <body>
- <nav class="navbar">
- <div class="nav-container">
- <a href="{{ url_for('index') }}" class="nav-brand">博客</a>
- <ul class="nav-links">
- <li><a href="{{ url_for('index') }}">首页</a></li>
- <li><a href="{{ url_for('upload') }}">上传</a></li>
- <li><a href="{{ url_for('admin') }}">管理</a></li>
- </ul>
- </div>
- </nav>
- <main class="main-content">
- {% block content %}{% endblock %}
- </main>
- <footer class="footer">
- <p>© {{ now.year if now else 2026 }} 个人博客系统</p>
- </footer>
- <script src="{{ url_for('static', filename='js/main.js') }}"></script>
- {% block extra_scripts %}{% endblock %}
- </body>
- </html>
|