Skip to content

Commit 73f5efb

Browse files
committed
add search and archive pages
1 parent e3d0524 commit 73f5efb

File tree

3 files changed

+31
-4
lines changed

3 files changed

+31
-4
lines changed

content/archives.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
title: "Archive"
3+
layout: "archives"
4+
url: "/archives/"
5+
summary: archives
6+
---

content/search.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
title: "Search"
3+
layout: "search" # necessary for search
4+
summary: "search"
5+
placeholder: "What are you looking for?"
6+
---

hugo.yaml

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,23 @@ params:
1616
- name: "rss"
1717
url: "./index.xml"
1818

19+
menu:
20+
main:
21+
- identifier: home
22+
name: Home
23+
url: /
24+
weight: 10
25+
- identifier: archive
26+
name: Archive
27+
url: /archives/
28+
weight: 20
29+
- identifier: search
30+
name: Search
31+
url: /search/
32+
weight: 30
33+
1934
outputs:
20-
home:
21-
- HTML
22-
- RSS
23-
- JSON # necessary for search
35+
home:
36+
- HTML
37+
- RSS
38+
- JSON # necessary for search

0 commit comments

Comments
 (0)