summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config/_default/params.zh.toml4
-rw-r--r--content/featured.md4
-rw-r--r--i18n/en.toml1
-rw-r--r--i18n/zh.toml1
-rw-r--r--layouts/_partials/components/date.html2
-rw-r--r--layouts/featured.html18
6 files changed, 1 insertions, 29 deletions
diff --git a/config/_default/params.zh.toml b/config/_default/params.zh.toml
index a1973a05..0045fd28 100644
--- a/config/_default/params.zh.toml
+++ b/config/_default/params.zh.toml
@@ -1,10 +1,6 @@
description = "欢迎来访,这里只有真情流露和赤裸的思考。"
[[nav]]
-name = "精选"
-link = "/featured/"
-
-[[nav]]
name = "搜寻"
link = "/categories/"
diff --git a/content/featured.md b/content/featured.md
deleted file mode 100644
index 37964861..00000000
--- a/content/featured.md
+++ /dev/null
@@ -1,4 +0,0 @@
----
-title: 精选
-layout: featured
----
diff --git a/i18n/en.toml b/i18n/en.toml
index 13b286f2..87f5a81c 100644
--- a/i18n/en.toml
+++ b/i18n/en.toml
@@ -24,7 +24,6 @@ licenseStatement = "Licensed under {{ . }}"
[postNav]
latest = "Latest"
categories = "Categories"
-featured = "Featured"
settings = "Settings"
[moreLinks]
diff --git a/i18n/zh.toml b/i18n/zh.toml
index 6235b973..2fffac0d 100644
--- a/i18n/zh.toml
+++ b/i18n/zh.toml
@@ -30,7 +30,6 @@ licenseStatement = "以 {{ . }} 协议授权"
[postNav]
latest = "最新"
categories = "搜寻"
-featured = "精选"
[moreLinks]
posts = "所有文章"
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 }}