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 # Only Disqus is available so far
provider = "disqus" provider = "disqus"
[params.widgets] [params.widgets]
enabled = ['archives', 'tag-cloud'] enabled = ['search', 'archives', 'tag-cloud']
[params.widgets.archives] [params.widgets.archives]
limit = 5 limit = 5
### Archives page relative URL ### Archives page relative URL
@ -75,6 +75,12 @@ DefaultContentLanguage = "en" # Theme i18n support
url = "archives" url = "archives"
weight = -70 weight = -70
pre = "archives" pre = "archives"
[[menu.main]]
identifier = "search"
name = "Search"
url = "search"
weight = -60
pre = "search"
[related] [related]
includeNewer = true includeNewer = true

View file

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