From 08102e2f6907b9960baf7b032fa053e036b6fa38 Mon Sep 17 00:00:00 2001 From: Jimmy Cai Date: Sat, 26 Sep 2020 12:06:56 +0200 Subject: [PATCH] feat(exampleSite): add search page and widget --- exampleSite/config.toml | 8 +++++++- exampleSite/content/page/search.md | 8 ++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 exampleSite/content/page/search.md diff --git a/exampleSite/config.toml b/exampleSite/config.toml index cc83511..324a1ad 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -31,7 +31,7 @@ DefaultContentLanguage = "en" # Theme i18n support # Only Disqus is available so far provider = "disqus" [params.widgets] - enabled = ['archives', 'tag-cloud'] + enabled = ['search', 'archives', 'tag-cloud'] [params.widgets.archives] limit = 5 ### Archives page relative URL @@ -75,6 +75,12 @@ DefaultContentLanguage = "en" # Theme i18n support url = "archives" weight = -70 pre = "archives" + [[menu.main]] + identifier = "search" + name = "Search" + url = "search" + weight = -60 + pre = "search" [related] includeNewer = true diff --git a/exampleSite/content/page/search.md b/exampleSite/content/page/search.md new file mode 100644 index 0000000..0363546 --- /dev/null +++ b/exampleSite/content/page/search.md @@ -0,0 +1,8 @@ +--- +title: "Search" +slug: "search" +layout: "search" +outputs: + - html + - json +--- \ No newline at end of file