| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- <!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('editor') }}" class="add-post-btn">+ 增加文章</a></li>
- <li><a href="{{ url_for('admin') }}">管理</a></li>
- </ul>
- </div>
- </nav>
- <div class="flash-container">
- {% with messages = get_flashed_messages(with_categories=true) %}
- {% if messages %}
- <ul class="flashes">
- {% for category, message in messages %}
- <li class="flash-{{ category }}">{{ message }}</li>
- {% endfor %}
- </ul>
- {% endif %}
- {% endwith %}
- </div>
- <main class="main-content">
- <div class="post-container">
- {% block content %}{% endblock %}
- </div>
- </main>
- <footer class="footer">
- <p>© 2026 个人博客系统</p>
- </footer>
- <script src="{{ url_for('static', filename='js/main.js') }}"></script>
- {% block extra_scripts %}{% endblock %}
- </body>
- </html>
|