summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreltrac <hi@eltr.ac>2026-04-23 23:53:40 +0800
committereltrac <hi@eltr.ac>2026-04-23 23:53:40 +0800
commit28f4f7d352ec9455ce66abb6e143c009b9422798 (patch)
tree1999b54daf2f70093081a068010c8c3a83e2e4aa
parent3a786e36e1d86c13df9c7b162b2b7113cab8d68c (diff)
feat: new homepage, still ugly tho
-rw-r--r--content/_index.md12
-rw-r--r--layouts/home.html25
2 files changed, 9 insertions, 28 deletions
diff --git a/content/_index.md b/content/_index.md
index 4433c61..3297756 100644
--- a/content/_index.md
+++ b/content/_index.md
@@ -8,8 +8,14 @@ draft = false
---
-This is a [mother-fucking website](https://motherfuckingwebsite.com/).
+## 这是哪里?
-你发现了[极客死亡计划](https://www.geedea.pro)之外的另一个小角落,这里散布着我的文章草稿以及各种未完成的东西,兴许一些计划也会写在这里,还有一些不成文的无趣的笔记,兴许之后还会把手写笔记也扫描、数字化放到这里。无论如何,这里没什么好看的,除非你对稀奇古怪的东西感兴趣。
+- This is a [mother-fucking website](https://motherfuckingwebsite.com/).
+- 你发现了[极客死亡计划](https://www.geedea.pro)的「后花园」,我会在这里存放[废稿](/drafts)、[笔记](/notes)和发送给其他网站的 Webmention [回应](/reply)。这里没什么成文的高质量内容,更像是什么都往里塞的罐子。
+- 另外,Jar 除了罐子的意思,还是法语单词 *Jardin*(花园)的前三个字母。
+- 这里以后或许会有别的内容分区,但我不保证什么。整体而言,我不建议你订阅这个网站。
+
+## 谁在说话?
+
+- 我是 [Eltrac](https://www.eltr.ac),关于我的更多信息你可以去我的主页查看。
-另外,Jar 除了罐子的意思,还是法语单词 *Jardin*(花园)的前三个字母。
diff --git a/layouts/home.html b/layouts/home.html
index 86c1fa1..7061dd0 100644
--- a/layouts/home.html
+++ b/layouts/home.html
@@ -1,29 +1,4 @@
{{ define "main" }}
{{ .Content }}
- {{ $mainSections := .Site.Params.mainSections | default (slice "posts" "post" "blog" "notes") }}
- {{ $pages := where .Site.RegularPages "Section" "in" $mainSections }}
- {{ if $pages }}
- <h2>Recent Notes</h2>
- {{ range $pages }}
- <section>
- <h3><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h3>
- <p><small>{{ .Date.Format "2006-01-02" }}</small></p>
- {{ .Summary }}
- </section>
- {{ end }}
- {{ else }}
- {{ $allPages := where .Site.AllPages "Kind" "page" }}
- {{ if $allPages }}
- <h2>All Pages</h2>
- {{ range $allPages }}
- <section>
- <h3><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h3>
- <p><small>{{ .Date.Format "2006-01-02" }} | {{ .Section }}</small></p>
- {{ .Summary }}
- </section>
- {{ end }}
- {{ end }}
- {{ end }}
-
{{ partial "components/h-card" . }}
{{ end }}