Skip to content

Commit d85e03a

Browse files
committed
index return
1 parent cb3cd6a commit d85e03a

File tree

1 file changed

+1
-23
lines changed

1 file changed

+1
-23
lines changed

index.html

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,4 @@
11
---
22
layout: home
3+
# Index page
34
---
4-
<!-- 首页欢迎内容(可选) -->
5-
<section class="welcome">
6-
<h1>欢迎来到我的博客!</h1>
7-
<p>这里是一些简介文字...</p>
8-
</section>
9-
10-
<!-- 新增文章列表 -->
11-
<section class="post-list">
12-
<h2>📝 最新文章</h2>
13-
<div class="post-items">
14-
{% for post in site.posts %}
15-
<article class="post-card">
16-
<a href="{{ post.url | relative_url }}" class="post-link">
17-
<div class="post-meta">{{ post.date | date: "%Y-%m-%d" }}</div>
18-
<h3 class="post-title">{{ post.title }}</h3>
19-
{% if post.excerpt %}
20-
<p class="post-excerpt">{{ post.excerpt | strip_html | truncate: 100 }}</p>
21-
{% endif %}
22-
</a>
23-
</article>
24-
{% endfor %}
25-
</div>
26-
</section>

0 commit comments

Comments
 (0)