瀏覽代碼

Update file index.html

mayx 7 月之前
父節點
當前提交
c454031365
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      index.html

+ 3 - 1
index.html

@@ -8,7 +8,8 @@ title: 首页 - 我的文章
 <hr />
 <hr />
 
 
 <!-- 遍历分页后的文章 -->
 <!-- 遍历分页后的文章 -->
-<table{% if paginator.page == 1 %} class="hslice"{% endif %}>
+{% if paginator.page == 1 %}<div class="hslice">{% endif %}
+<table>
 {% for post in paginator.posts %}
 {% for post in paginator.posts %}
   <tr><td onclick="location='{{ post.url }}'">
   <tr><td onclick="location='{{ post.url }}'">
     <h2 class="entry-title"><a class="post-link" href="{{ post.url }}">{{ post.title }}{% if post.layout == "encrypt" %} [加密] {% endif %}</a></h2>
     <h2 class="entry-title"><a class="post-link" href="{{ post.url }}">{{ post.title }}{% if post.layout == "encrypt" %} [加密] {% endif %}</a></h2>
@@ -29,6 +30,7 @@ title: 首页 - 我的文章
   </td></tr>
   </td></tr>
 {% endfor %}
 {% endfor %}
 </table>
 </table>
+{% if paginator.page == 1 %}</div>{% endif %}
 {% if paginator.total_pages > 1 %}
 {% if paginator.total_pages > 1 %}
 <div class="pagination">
 <div class="pagination">
   {% if paginator.previous_page %}
   {% if paginator.previous_page %}