diff options
| author | Eltrac <hi@guhub.cn> | 2025-06-06 09:00:36 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-06-06 09:00:36 +0800 |
| commit | 8397b55040d23c19c7e6aae30badc55e54319bf2 (patch) | |
| tree | a57dffcfc208ff85e2af1422f61f67f3d045dfb2 /layouts/posts/single.html | |
| parent | 87761df9fde0885d64a4eb853c18245ca0779ce3 (diff) | |
| parent | 227fb4cb419a44132340963f78147e8df604a0ee (diff) | |
Merge branch 'master' of https://github.com/BigCoke233/geek-death-project
Former-commit-id: 430926459e4846549b1571c460e2596874663c1b
Diffstat (limited to 'layouts/posts/single.html')
| -rw-r--r-- | layouts/posts/single.html | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/layouts/posts/single.html b/layouts/posts/single.html index ced18720..dd6d4b8b 100644 --- a/layouts/posts/single.html +++ b/layouts/posts/single.html @@ -9,7 +9,7 @@ {{ partial "components/banner.html" . }} <!-- Title and Subtitle --> <h1 class="post-title"> - {{ .Title }} + <span data-pagefind-meta="title">{{ .Title }}</span> {{ with .Params.subtitle }} <small class="post-subtitle">{{ . }}</small> {{ end }} @@ -37,7 +37,10 @@ {{ $fuzzyTime = "深夜" }} {{ end }} - <time class="post-date" datetime="{{ .Date.Format "2006-01-02 15:04:05 MST" }}"> + <time class="post-date" + datetime="{{ .Date.Format "2006-01-02 15:04:05 MST" }}" + data-pagefind-sort="date[datetime], weight[data-weight]" + data-weight="{{ if .Params.featured }}30{{ else }}20{{ end }}"> {{ .Date.Format "2006年1月2日" }} {{ $fuzzyTime }} </time> {{ end }} |
