yangchaojie před 2 dny
rodič
revize
1f4ed42575
1 změnil soubory, kde provedl 7 přidání a 2 odebrání
  1. 7 2
      templates/blog.html

+ 7 - 2
templates/blog.html

@@ -48,6 +48,7 @@
             --max-width: 900px;
             --sidebar-width: 300px;
         }
+
         body {
             color: var(--text);
             background-color: #fff;
@@ -242,7 +243,7 @@
 <div class="ui tablet computer only padded grid">
     <div class="ui top fixed borderless fluid huge menu">
         <div class="ui container">
-            <a href="/" class="header item " >CyberSicko.net</a>
+            <a href="/" class="header item ">CyberSicko.net</a>
             <a href="/" class="item">主页</a>
 
             {% for item in category %}
@@ -262,7 +263,7 @@
 </div>
 <div class="ui mobile only padded grid">
     <div class="ui top fixed borderless huge fluid menu">
-            <a href="/" class="header item " >CyberSicko.net</a>
+        <a href="/" class="header item ">CyberSicko.net</a>
         <div class="right menu">
             <div class="item">
                 <button class="ui icon toggle basic button">
@@ -311,6 +312,10 @@
             {% endautoescape %}
             <h3 class="ui dividing header" style="margin-top: 10vh">评论</h3>
             <div class="ui comments">
+                {% if comments|length <= 0 %}
+                    <p style="text-align: center;font-style: italic">还没有评论</p>
+                {% endif %}
+
                 {% for comment in comments %}
                     <div class="comment">
                         <a class="avatar">