From 24ce9880536fda88202384f420aed77b81b914bb Mon Sep 17 00:00:00 2001 From: verdant Date: Sat, 18 Jul 2026 14:47:11 +0800 Subject: Add search page Search method: search engine(Google, DuckDuckGo), clone repositoriy. --- content/search.md | 38 ++++++++++++++++++++++++++++++++++++ layouts/shortcodes/recent-posts.html | 15 ++++++-------- 2 files changed, 44 insertions(+), 9 deletions(-) create mode 100644 content/search.md diff --git a/content/search.md b/content/search.md new file mode 100644 index 0000000..ea8b7ff --- /dev/null +++ b/content/search.md @@ -0,0 +1,38 @@ +--- +title: '搜索' +date: '2026-07-18T14:22:56+08:00' +slug: "search" +categories: +tags: +draft: false +showMeta: false +--- + +注意關鍵詞興 `site:blog.verdant.ee` 之間要有空格。 + + +**Google** + + +
+ + +
+
+ +**DuckDuckGo** + + +
+ + +
+
+ +**克隆倉庫** + +你也可以把倉庫克隆下來,使用 `grep` 或 `rg` 搜索。 + +``` +$ git clone https://git.verdant.ee/personal/blog.git +``` diff --git a/layouts/shortcodes/recent-posts.html b/layouts/shortcodes/recent-posts.html index 9819f36..4c3a784 100644 --- a/layouts/shortcodes/recent-posts.html +++ b/layouts/shortcodes/recent-posts.html @@ -1,26 +1,23 @@ {{ $mode := 2 }} {{ $pages := where site.RegularPages "Type" "in" site.Params.mainSections }} -{{ $recent := first 10 $pages.ByDate.Reverse }} +{{ $recent := first 15 $pages.ByDate.Reverse }}
{{ if $recent }} -