From 72ccecdc5b8bd5fef140c706902eb2139068d748 Mon Sep 17 00:00:00 2001 From: amzrk2 Date: Sun, 14 Jun 2020 23:30:00 +0800 Subject: Generate json for searching --- exampleSite/config.toml | 2 ++ 1 file changed, 2 insertions(+) (limited to 'exampleSite/config.toml') diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 72e22b7..7df8ba0 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -2,6 +2,8 @@ baseURL = "https://example.com" title = "Hugo Theme Fuji" theme = "fuji" +[outputs] + home = ["html", "rss", "json"] hasCJKLanguage = true enableEmoji = true enableRobotsTXT = true -- cgit v1.2.3 From d0569100c68fc2dd9c7fae4d91915fd49da8d71f Mon Sep 17 00:00:00 2001 From: amzrk2 Date: Mon, 15 Jun 2020 14:13:02 +0800 Subject: Search page template --- exampleSite/config.toml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'exampleSite/config.toml') diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 7df8ba0..e93a58a 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -2,8 +2,6 @@ baseURL = "https://example.com" title = "Hugo Theme Fuji" theme = "fuji" -[outputs] - home = ["html", "rss", "json"] hasCJKLanguage = true enableEmoji = true enableRobotsTXT = true @@ -18,6 +16,9 @@ paginate = 10 # googleAnalytics = "UA-000000000-0" # Set your Google Analytics UA here +[outputs] + home = ["html", "rss", "json"] + [permalinks] post = "/:section/:filename/" # Custom post links, e.g. "/:year/:month/:title/" @@ -95,14 +96,18 @@ paginate = 10 name = "Home" url = "/" weight = 1 + [[menu.nav]] + name = "Search" + url = "/search/" + weight = 2 [[menu.nav]] name = "Archives" url = "/archives/" - weight = 2 + weight = 3 [[menu.nav]] name = "About" url = "/about/" - weight = 3 + weight = 4 [[menu.link]] name = "GitHub" -- cgit v1.2.3