diff options
| author | eltrac <hi@eltr.ac> | 2026-02-15 10:05:01 +0800 |
|---|---|---|
| committer | eltrac <hi@eltr.ac> | 2026-02-15 10:05:01 +0800 |
| commit | ea4ee011f7f17b903ba490dd6cf69a90fe87a0bd (patch) | |
| tree | dbdc7a4acb0a0b631bc7f60a9098f9825e0c9963 /layouts | |
| parent | dac41575c23f26fd7b2990431a55662f218a34a8 (diff) | |
remove: featured page
Diffstat (limited to 'layouts')
| -rw-r--r-- | layouts/_partials/components/date.html | 2 | ||||
| -rw-r--r-- | layouts/featured.html | 18 |
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 }} |
