feat(exampleSite): add search page and widget

This commit is contained in:
Jimmy Cai 2020-09-26 12:06:56 +02:00
parent 6fa69d7a2b
commit 08102e2f69
No known key found for this signature in database
GPG Key ID: 3EA408E527F37B18
2 changed files with 15 additions and 1 deletions

View File

@ -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

View File

@ -0,0 +1,8 @@
---
title: "Search"
slug: "search"
layout: "search"
outputs:
- html
- json
---