summaryrefslogtreecommitdiff
path: root/index.html
diff options
context:
space:
mode:
authormayx <mayx@outlook.com>2025-03-31 05:17:33 +0200
committermayx <mayx@outlook.com>2025-03-31 05:17:33 +0200
commite7bc272a812ae518c76d0c3d76e4065f15b61ef2 (patch)
tree8f3354eb706f2a819df341fb5439a619159ac60e /index.html
parent7785bc18c726c2757965874696fd0279cca57d2b (diff)
Update 3 files
- /_layouts/post.html - /proxylist.md - /index.html
Diffstat (limited to 'index.html')
-rw-r--r--index.html17
1 files changed, 12 insertions, 5 deletions
diff --git a/index.html b/index.html
index d9adde4..7386022 100644
--- a/index.html
+++ b/index.html
@@ -3,7 +3,7 @@ layout: default
title: 首页 - 我的文章
---
-<h1 style="display:inline"> 首页 - 我的文章 </h1><small><a href="/archives.html">Archives</a> | <a href="javascript:getSearchJSON(function(data){window.location.href = data[Math.floor(Math.random()*data.length)].url})">Random</a></small><br /><br />
+<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 />
<hr />
@@ -19,6 +19,13 @@ title: 首页 - 我的文章
<div class="content">
{{ post.excerpt | strip_html | strip_newlines }}
</div>
+ {% if post.tags %}
+ <span>
+ {% for tag in post.tags %}
+ <a href="/search.html?keyword={{ tag | url_encode }}"><code class="highligher-rouge"><nobr>#{{ tag }}</nobr></code></a>
+ {% endfor %}
+ </span>
+ {% endif %}
</td></tr>
{% endfor %}
</table>
@@ -26,15 +33,15 @@ title: 首页 - 我的文章
<div class="pagination">
{% if paginator.previous_page %}
{% if paginator.previous_page == 1 %}
- <a href="{{ '/index.html' | prepend: site.baseurl | replace: '//', '/' }}">&laquo; Prev</a>
+ <a href="/index.html">&laquo; Prev</a>
{% else %}
- <a href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}/">&laquo; Prev</a>
+ <a href="{{ paginator.previous_page_path }}/">&laquo; Prev</a>
{% endif %}
{% else %}
<span>&laquo; Prev</span>
{% endif %}
-<select onchange="window.location = this.value == 1 ? '{{ '/index.html' | prepend: site.baseurl | replace: '//', '/' }}' : '{{ '/page' | prepend: site.baseurl | replace: '//', '/' }}' + this.value + '/'">
+<select onchange="window.location = this.value == 1 ? '/index.html' : '/page' + this.value + '/'">
{% for page in (1..paginator.total_pages) %}
{% if page == paginator.page %}
<option value="{{ page }}" selected>{{ page }}</option>
@@ -45,7 +52,7 @@ title: 首页 - 我的文章
</select>
{% if paginator.next_page %}
- <a href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}/">Next &raquo;</a>
+ <a href="{{ paginator.next_page_path }}/">Next &raquo;</a>
{% else %}
<span>Next &raquo;</span>
{% endif %}