feat: new archives layout (#989)

* feat(archives): add search bar to archives page

* fix: error `file is nil; wrap it in if or with` from Hugo 0.123.0

* style: rename `search.ts` to `archives.ts`

* refactor: remove `search` page layout

* doc: remove `search` from `exampleSite`

* fix: generate JSON output for archives page in exampleSite

* feat: put archives search form under categories list
This commit is contained in:
Jimmy Cai
2024-03-25 00:02:47 +01:00
committed by GitHub
parent 9df2641193
commit 5d100a7f99
10 changed files with 219 additions and 403 deletions
@@ -3,6 +3,9 @@ title: "Archives"
date: 2019-05-28
layout: "archives"
slug: "archives"
outputs:
- html
- json
menu:
main:
weight: -70
-13
View File
@@ -1,13 +0,0 @@
---
title: "Search"
slug: "search"
layout: "search"
outputs:
- html
- json
menu:
main:
weight: -60
params:
icon: search
---