summaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
authoreltrac <hi@eltr.ac>2026-02-15 10:05:01 +0800
committereltrac <hi@eltr.ac>2026-02-15 10:05:01 +0800
commitea4ee011f7f17b903ba490dd6cf69a90fe87a0bd (patch)
treedbdc7a4acb0a0b631bc7f60a9098f9825e0c9963 /layouts
parentdac41575c23f26fd7b2990431a55662f218a34a8 (diff)
remove: featured page
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_partials/components/date.html2
-rw-r--r--layouts/featured.html18
2 files changed, 1 insertions, 19 deletions
diff --git a/layouts/_partials/components/date.html b/layouts/_partials/components/date.html
index 5b8b8278..5fcb8c65 100644
--- a/layouts/_partials/components/date.html
+++ b/layouts/_partials/components/date.html
@@ -20,7 +20,7 @@
<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 }}">
+ data-weight="20">
{{ if eq .Site.Language.Lang "zh" }}
{{ .Date.Format "2006年1月2日" }}
{{ else }}
diff --git a/layouts/featured.html b/layouts/featured.html
deleted file mode 100644
index 75fba67e..00000000
--- a/layouts/featured.html
+++ /dev/null
@@ -1,18 +0,0 @@
-{{ define "main" }}
- <article>
- {{ partial "header" . }}
-
- <div class="markdown-content" style="line-height: 2">
- {{ .Content }}
- </div>
-
- <section id="featured-posts">
- <div class="posts-list">
- {{ range .Site.Taxonomies.tags.精选 }}
- {{ partial "items/post" (dict "ctx" . ) }}
- {{ end }}
- </div>
- </section>
- </article>
-{{ partial "footer.html" . }}
-{{ end }}