summaryrefslogtreecommitdiff
path: root/layouts
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 /layouts
parent3a786e36e1d86c13df9c7b162b2b7113cab8d68c (diff)
feat: new homepage, still ugly tho
Diffstat (limited to 'layouts')
-rw-r--r--layouts/home.html25
1 files changed, 0 insertions, 25 deletions
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 }}