From 9b0eae513504cd22edd352c02e6b073516e924be Mon Sep 17 00:00:00 2001 From: UmmIt Date: Fri, 3 Jan 2025 03:59:49 +0800 Subject: [PATCH] config: initial setup for blowfish theme - Add Umami for analytics - Set sitemap change frequency to 'always' - Enable robots.txt to allow search engine indexing - Adjust summary length for better content views - Include RSS in outputs --- config/_default/config.toml | 19 +++++++++++-------- config/_default/params.toml | 36 ++++++++++++++++++++++++++++++++---- 2 files changed, 43 insertions(+), 12 deletions(-) diff --git a/config/_default/config.toml b/config/_default/config.toml index a762018..a5852c8 100644 --- a/config/_default/config.toml +++ b/config/_default/config.toml @@ -8,16 +8,19 @@ defaultContentLanguage = "en" # pluralizeListTitles = "true" # hugo function useful for non-english languages, find out more in https://gohugo.io/getting-started/configuration/#pluralizelisttitles -enableRobotsTXT = false - -#disableKinds = ["sitemap", "RSS", "robotsTXT"] - -paginate = 10 -summaryLength = 0 +enableRobotsTXT = true +summaryLength = 30 buildDrafts = false buildFuture = false +enableEmoji = true + +#googleAnalytics = "G-PEDMYR1V0K" + +[pagination] + pagerSize = 15 + [imaging] anchor = 'Center' @@ -28,12 +31,12 @@ buildFuture = false series = "series" [sitemap] - changefreq = 'daily' + changefreq = 'always' filename = 'sitemap.xml' priority = 0.5 [outputs] - home = ["HTML", "JSON"] + home = ["HTML", "RSS", "JSON"] [related] threshold = 0 diff --git a/config/_default/params.toml b/config/_default/params.toml index f196c45..dac4ac8 100644 --- a/config/_default/params.toml +++ b/config/_default/params.toml @@ -88,8 +88,8 @@ defaultFeaturedImage = "img/推しの子/1313221.png" # used as default for feat cardViewScreenWidth = false constrainItemsWidth = false -#[sitemap] - # excludedKinds = ["taxonomy", "term"] +[sitemap] + excludedKinds = [] [taxonomy] showTermCount = true @@ -112,10 +112,34 @@ defaultFeaturedImage = "img/推しの子/1313221.png" # used as default for feat cardView = true cardViewScreenWidth = false +[firebase] + #apiKey = "AIzaSyB5tqlqDky77Vb4Tc4apiHV4hRZI18KGiY" + #authDomain = "blowfish-21fff.firebaseapp.com" + #projectId = "blowfish-21fff" + #storageBucket = "blowfish-21fff.appspot.com" + #messagingSenderId = "60108104191" + #appId = "1:60108104191:web:039842ebe1370698b487ca" + #measurementId = "G-PEDMYR1V0K" + +[fathomAnalytics] + # site = "ABC12345" + # domain = "llama.yoursite.com" + +[umamiAnalytics] + websiteid = "37554541-6f3e-48a5-b609-65383997b4ff" + domain = "blog.ummit.dev" + # dataDomains = "yoursite.com,yoursite2.com" + # scriptName = "" + enableTrackEvent = true + +[selineAnalytics] + # token = "XXXXXX" + # enableTrackEvent = false + [buymeacoffee] - # identifier = "" + # identifier = "nunocoracao" # globalWidget = true - # globalWidgetMessage = "Hello" + # globalWidgetMessage = "" # globalWidgetColor = "#FFDD00" # globalWidgetPosition = "Right" @@ -124,3 +148,7 @@ defaultFeaturedImage = "img/推しの子/1313221.png" # used as default for feat # bing = "" # pinterest = "" # yandex = "" + +[rssnext] + # feedId = "" + # userId = ""