From 28f4f7d352ec9455ce66abb6e143c009b9422798 Mon Sep 17 00:00:00 2001 From: eltrac Date: Thu, 23 Apr 2026 23:53:40 +0800 Subject: feat: new homepage, still ugly tho --- content/_index.md | 12 +++++++++--- layouts/home.html | 25 ------------------------- 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 }} -

Recent Notes

- {{ range $pages }} -
-

{{ .LinkTitle }}

-

{{ .Date.Format "2006-01-02" }}

- {{ .Summary }} -
- {{ end }} - {{ else }} - {{ $allPages := where .Site.AllPages "Kind" "page" }} - {{ if $allPages }} -

All Pages

- {{ range $allPages }} -
-

{{ .LinkTitle }}

-

{{ .Date.Format "2006-01-02" }} | {{ .Section }}

- {{ .Summary }} -
- {{ end }} - {{ end }} - {{ end }} - {{ partial "components/h-card" . }} {{ end }} -- cgit v1.2.3