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 398ca6e2f300cce5c7bf7fa69fde42b4b592f5a4 Mon Sep 17 00:00:00 2001 From: Jiawei Huang Date: Sun, 14 Jun 2020 14:05:14 -0700 Subject: Add preliminary Google AdSense support When `googleAdsense` is set in `config.toml`, the AdSense code snippet will be inserted between the `` tags of your site. Only Google AdSense Auto ads is supported at the moment. --- exampleSite/config.toml | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'exampleSite/config.toml') diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 72e22b7..4ba95b6 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -29,6 +29,10 @@ paginate = 10 # googleAnalyticsTid = "UA-000000000-0" # googleAnalyticsRoute = "https://*.*.workers.dev/" + # Google AdSense + # The AdSense code will be inserted between the head tags of your site. + # googleAdsense = "0000000000000000" + # Word counter and read time indicator in post metadata showWordCounter = true showReadTime = false -- 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 From bcd4d3fdb1b5e6a6ede2dbc4ea64fc47642a2173 Mon Sep 17 00:00:00 2001 From: amzrk2 Date: Tue, 16 Jun 2020 16:29:16 +0800 Subject: Option darken image --- exampleSite/config.toml | 3 +++ 1 file changed, 3 insertions(+) (limited to 'exampleSite/config.toml') diff --git a/exampleSite/config.toml b/exampleSite/config.toml index c68d082..07e1aa7 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -81,6 +81,9 @@ paginate = 10 # Use Hugo Pipes in Hugo Extended Version to compile SCSS # useHugoPipes = true + # Let images display in full brightness under dark mode + # disableDarkImage = true + [markup] [markup.goldmark] [markup.goldmark.renderer] -- cgit v1.2.3 From dfd5ecf0c2326147656a2306654175ca061e228e Mon Sep 17 00:00:00 2001 From: amzrk2 Date: Wed, 17 Jun 2020 19:05:54 +0800 Subject: Move RSS link to config.toml --- exampleSite/config.toml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'exampleSite/config.toml') diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 07e1aa7..b8aef61 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -103,18 +103,22 @@ paginate = 10 name = "Home" url = "/" weight = 1 - [[menu.nav]] - name = "Search" - url = "/search/" - weight = 2 [[menu.nav]] name = "Archives" url = "/archives/" - weight = 3 + weight = 2 [[menu.nav]] name = "About" url = "/about/" + weight = 3 + [[menu.nav]] + name = "Search" + url = "/search/" weight = 4 + [[menu.nav]] + name = "RSS" + url = "/index.xml" + weight = 5 [[menu.link]] name = "GitHub" -- cgit v1.2.3 From cf72ff2fc6e3d4d0da41d6e761847efc647f3a55 Mon Sep 17 00:00:00 2001 From: Jiawei Huang Date: Wed, 17 Jun 2020 13:53:30 -0700 Subject: Fix some typos in code comments No real code changes. --- exampleSite/config.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'exampleSite/config.toml') diff --git a/exampleSite/config.toml b/exampleSite/config.toml index b8aef61..52ffea8 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -11,7 +11,7 @@ disableKinds = ["taxonomyTerm"] languageCode = "en" # For RSS, view https://www.rssboard.org/rss-language-codes defaultContentLanguage = "en" # For HTML page, now support: en, zh-hans, zh-hant, ja, nl -summaryLength = 100 # Custom cummary length, add in post file to custom split point +summaryLength = 100 # Custom summary length, add in post file to custom split point paginate = 10 # googleAnalytics = "UA-000000000-0" # Set your Google Analytics UA here -- cgit v1.2.3 From edbbfabae66d75217a95e3e0a054548502ebf2d9 Mon Sep 17 00:00:00 2001 From: amzrk2 Date: Thu, 18 Jun 2020 17:20:50 +0800 Subject: Update metadata --- exampleSite/config.toml | 1 + 1 file changed, 1 insertion(+) (limited to 'exampleSite/config.toml') diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 52ffea8..3d03c3b 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -39,6 +39,7 @@ paginate = 10 # Word counter and read time indicator in post metadata showWordCounter = true showReadTime = false + # License at the end of each post showLicense = true showToc = true -- cgit v1.2.3