Переглянути джерело

feat: 在首页添加文章按钮

Co-authored-by: aider (deepseek/deepseek-v4-pro) <aider@aider.chat>
Your Name 3 днів тому
батько
коміт
25e295df69
2 змінених файлів з 8 додано та 0 видалено
  1. 5 0
      static/css/style.css
  2. 3 0
      templates/index.html

+ 5 - 0
static/css/style.css

@@ -65,6 +65,11 @@ body {
     color: #2c2c2c !important;
 }
 
+/* ==================== 添加文章按钮容器 ==================== */
+.add-post-wrapper {
+    margin-bottom: 1.5rem;
+}
+
 /* ==================== 瀑布流布局 ==================== */
 .waterfall {
     display: grid;

+ 3 - 0
templates/index.html

@@ -3,6 +3,9 @@
 {% block title %}首页 - 个人博客{% endblock %}
 
 {% block content %}
+<div class="add-post-wrapper">
+    <a href="{{ url_for('upload') }}" class="add-post-btn">+ 添加文章</a>
+</div>
 <div class="waterfall">
     {% if posts %}
         {% for post in posts %}