From a0cba86ab84dc6b431e854590a85bfe5db8e3934 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B5=AA=E5=AD=90?= Date: Mon, 13 May 2024 09:05:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E7=83=AD=E5=8A=9B=E5=9B=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hugo.toml | 9 +- themes/farallon/layouts/index.html | 395 +++++++++++++++++++++++++++++ 2 files changed, 401 insertions(+), 3 deletions(-) diff --git a/hugo.toml b/hugo.toml index db6807c..a24d77b 100644 --- a/hugo.toml +++ b/hugo.toml @@ -14,11 +14,11 @@ theme = 'farallon' [[languages.zh-cn.menu.main]] name="影音" url="/movies/" - weight="4" + weight="5" [[languages.zh-cn.menu.main]] name="分类" url="/categories/" - weight="2" + weight="4" [[languages.zh-cn.menu.main]] name="标签" url="/tags/" @@ -26,8 +26,11 @@ theme = 'farallon' [[languages.zh-cn.menu.main]] name="文章" url="/archives/" + weight="2" + [[languages.zh-cn.menu.main]] + name="首页" + url="/" weight="1" - [taxonomies] category = 'categories' tag = 'tags' diff --git a/themes/farallon/layouts/index.html b/themes/farallon/layouts/index.html index 26c9f36..52a1844 100644 --- a/themes/farallon/layouts/index.html +++ b/themes/farallon/layouts/index.html @@ -3,6 +3,401 @@ {{ if $.Site.Params.showprofile }} {{ partial "profile.html" . }} {{ end }} +
+
+ + +
+ + +
{{ $pages := where .Site.RegularPages "Type" "in" .Site.Params.mainSections }} {{ $paginator := .Paginate ($pages) }}