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') 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') 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 +++++++++---- exampleSite/content/search/_index.md | 8 ++++++++ 2 files changed, 17 insertions(+), 4 deletions(-) create mode 100644 exampleSite/content/search/_index.md (limited to 'exampleSite') 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" diff --git a/exampleSite/content/search/_index.md b/exampleSite/content/search/_index.md new file mode 100644 index 0000000..d07189d --- /dev/null +++ b/exampleSite/content/search/_index.md @@ -0,0 +1,8 @@ ++++ +title = "Search" +description = "" ++++ + +You can change search page details above. + +Keep this file saft to ensure Hugo generate the search page. -- 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') 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') 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 +- exampleSite/content/about.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'exampleSite') 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 diff --git a/exampleSite/content/about.md b/exampleSite/content/about.md index a596d02..b6fc1ec 100644 --- a/exampleSite/content/about.md +++ b/exampleSite/content/about.md @@ -19,6 +19,6 @@ Hugo is ideal for blogs, corporate websites, creative portfolios, online magazin Hugo is for people who want to hand code their own website without worrying about setting up complicated runtimes, dependencies and databases. -Websites built with Hugo are extremelly fast, secure and can be deployed anywhere including, AWS, GitHub Pages, Heroku, Netlify and any other hosting provider. +Websites built with Hugo are extremely fast, secure and can be deployed anywhere including, AWS, GitHub Pages, Heroku, Netlify and any other hosting provider. Learn more and contribute on [GitHub](https://github.com/gohugoio). -- 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') 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