diff options
author | mayx | 2025-04-22 10:14:18 +0000 |
---|---|---|
committer | mayx | 2025-04-22 10:14:18 +0000 |
commit | 3edfcdb60aba6b774fa9b18609f9040d186ea7c4 (patch) | |
tree | 13cac3080071c4237a8188811841959d111059bb | |
parent | c454031365600b89486e8e0c5568415dcdc6d425 (diff) |
Update file index.html
-rw-r--r-- | index.html | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/index.html b/index.html index 53f8cbc..bb69bc7 100644 --- a/index.html +++ b/index.html @@ -2,22 +2,21 @@ layout: default title: 首页 - 我的文章 --- - -<h1 style="display:inline"> 首页 - 我的文章 </h1><small><a href="/archives.html">Archives</a> | <a href="javascript:getSearchJSON(function(data){window.location = data[Math.floor(Math.random()*data.length)].url})">Random</a></small><br /><br /> +{% if paginator.page == 1 %}<div class="hslice" id="LatestPost">{% endif %} +<h1 class="entry-title" style="display:inline"> 首页 - 我的文章 </h1><small><a href="/archives.html">Archives</a> | <a href="javascript:getSearchJSON(function(data){window.location = data[Math.floor(Math.random()*data.length)].url})">Random</a></small><br /><br /> <hr /> <!-- 遍历分页后的文章 --> -{% if paginator.page == 1 %}<div class="hslice">{% endif %} -<table> +<table class="entry-content"> {% for post in paginator.posts %} <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><a class="post-link" href="{{ post.url }}">{{ post.title }}{% if post.layout == "encrypt" %} [加密] {% endif %}</a></h2> <p class="author"> <span class="date">{{ post.date | date: "%-d %B %Y" }}</span> | Hits: <span id="{{ post.url }}" class="visitors-index" >Loading...</span> </p> - <div class="content entry-content"> + <div class="content"> {{ post.excerpt | strip_html | strip_newlines }} </div> {% if post.tags %} |