Skip to content

Commit 635dcf9

Browse files
authored
更新 index.md
1 parent 0e7d352 commit 635dcf9

1 file changed

Lines changed: 21 additions & 12 deletions

File tree

‎index.md‎

Lines changed: 21 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,24 @@
11
---
2-
layout: home # 使用minima主题的home布局
32
title: 首页
43
---
5-
# 欢迎来到TY的博客 📝
6-
分享编程技巧与生活感悟,专注于Jekyll、GitHub、前端相关内容。
7-
8-
## 最新文章
9-
{% for post in site.posts limit:5 %} <!-- 遍历文章,只显示5篇 -->
10-
<div class="post-item">
11-
<h3><a href="{{ post.url | relative_url }}">{{ post.title }}</a></h3>
12-
<p class="post-meta">{{ post.date | date: "%Y-%m-%d" }} | {{ post.categories | join: " / " }}</p>
13-
<p class="post-excerpt">{{ post.excerpt | strip_html | truncate: 150 }}</p> <!-- 摘要(去HTML+截断) -->
14-
</div>
15-
{% endfor %}
4+
5+
# 欢迎来到我的 Minimal 站点
6+
7+
这是基于 jekyll-theme-minimal 的 GitHub Pages 站点。
8+
9+
## 导航
10+
11+
- [关于我](/about)
12+
- [我的 GitHub](https://github.com/你的用户名)
13+
14+
## 示例内容
15+
16+
这里可以写你的介绍、项目、博客入口等。
17+
18+
- 项目1
19+
- 项目2
20+
- 项目3
21+
22+
---
23+
24+
© 2026 你的名字 | 使用 Minimal 主题

0 commit comments

Comments
 (0)