From cf76811080624ac7edc081238f920f4c78e38f91 Mon Sep 17 00:00:00 2001 From: Kazuhiro MUSASHI Date: Sun, 4 Dec 2022 19:44:23 +0900 Subject: [PATCH] Change production config to use the `DoIt` site config. --- config/_default/config.toml | 551 ++++++++++++++++++++++++++---------- 1 file changed, 405 insertions(+), 146 deletions(-) diff --git a/config/_default/config.toml b/config/_default/config.toml index 3b77895..d05f6a3 100644 --- a/config/_default/config.toml +++ b/config/_default/config.toml @@ -3,188 +3,281 @@ baseURL = "https://blog.kazu634.com/" defaultContentLanguage = "en" # language code languageCode = "jp" -title = "His greatness lies in his sense of responsibilities." +title = "His greatness lies in his sense of responsibilities" # Change the default theme to be use when building the site with Hugo theme = "DoIt" -# Author config -[author] - name = "kazu634" - email = "simoom634@yahoo.co.jp" - link = "" - [params] - author = "kazu634" - # LoveIt theme version + # DoIt theme version version = "0.2.X" + # website title + title = "His greatness lies in his sense of responsibilities" # site description description = "@kazu634のブログです" # site keywords - keywords = ["Blog", "Hugo", "Tech"] - # site default theme ("light", "dark", "auto") + keywords = ["Tech", "Hugo"] + # site default theme ("light", "dark", "black", "auto") defaultTheme = "auto" - # LoveIt NEW | 0.2.0 date format + # public git repo url only then enableGitInfo is true + gitRepo = "https://gitea.kazu634.com/kazu634/blog.git" + # which hash function used for SRI, when empty, no SRI is used + # ("sha256", "sha384", "sha512", "md5") + fingerprint = "" + # date format dateFormat = "2006-01-02" + # website images for Open Graph and Twitter Cards + images = ["/images/profile.png"] + # enable PWA support + enablePWA = false + # App icon config + # License information + license = 'CC BY-NC 4.0' + [params.app] + # optional site title override for the app when added to an iOS home screen or Android launcher + title = "@kazu634 Blog" + # whether to omit favicon resource links + noFavicon = false + # modern SVG favicon to use in place of older style .png and .ico files + svgFavicon = "" + # Safari mask icon color + iconColor = "#5bbad5" + # Windows v8-10 tile color + tileColor = "#da532c" - [params.page.seo] - # image URL - images = [] - # Publisher info - [params.page.seo.publisher] - name = "kazu634" - logoUrl = "" - + # Search config + [params.search] + enable = true + # type of search engine ("lunr", "algolia", "fuse") + type = "fuse" + # max index length of the chunked content + contentLength = 4000 + # placeholder of the search bar + placeholder = "" + # max number of results length + maxResultLength = 10 + # snippet length of the result + snippetLength = 30 + # HTML tag name of the highlight part in results + highlightTag = "em" + # whether to use the absolute URL based on the baseURL in search index + absoluteURL = false + [params.search.fuse] + # https://fusejs.io/api/options.html + isCaseSensitive = false + minMatchCharLength = 2 + findAllMatches = false + location = 0 + threshold = 0.3 + distance = 100 + ignoreLocation = false + useExtendedSearch = false + ignoreFieldNorm = false # Header config [params.header] # desktop header mode ("fixed", "normal", "auto") desktopMode = "fixed" # mobile header mode ("fixed", "normal", "auto") mobileMode = "auto" - - # LoveIt NEW | 0.2.0 Header title config + # Theme change mode + # theme change mode ("switch", "select") + themeChangeMode = "select" + # Header title config [params.header.title] + # URL of the LOGO + logo = "" # title name - name = "His greatness lies in his sense of responsibilities" + name = "His greatness lies in his sense of responsibilities." # you can add extra information before the name (HTML format is supported), such as icons pre = "" # you can add extra information after the name (HTML format is supported), such as icons post = "" - # LoveIt NEW | 0.2.5 whether to use typeit animation for title name + # whether to use typeit animation for title name typeit = false - [params.footer] + # Footer config + [params.footer] + enable = true + # Custom content (HTML format is supported) + custom = '' + # whether to show Hugo and theme info + hugo = true + # Hosted on (HTML format is supported) + # GitHub Pages + hostedOn = '' + # whether to show copyright info + copyright = true + # whether to show the author + author = true + # Site creation time + since = 2005 + # ICP info only in China (HTML format is supported) + icp = "" + # license info (HTML format is supported) + license = 'CC BY-NC 4.0' + + # Section (all posts) page config + [params.section] + # special amount of posts in each section page + paginate = 20 + # date format (month and day) + dateFormat = "01-02" + # amount of RSS pages + rss = 10 + # recently updated posts settings + [params.section.recentlyUpdated] + enable = false + rss = false + days = 30 + maxCount = 10 + + # List (category or tag) page config + [params.list] + # special amount of posts in each list page + paginate = 20 + # date format (month and day) + dateFormat = "01-02" + # amount of RSS pages + rss = 10 + + # Home page config + [params.home] + # amount of RSS pages + rss = 10 + # Home page profile + [params.home.profile] enable = true - # LoveIt NEW | 0.2.0 Custom content (HTML format is supported) - custom = '' - # LoveIt NEW | 0.2.0 whether to show Hugo and theme info - hugo = true - # LoveIt NEW | 0.2.0 whether to show copyright info - copyright = true - # LoveIt NEW | 0.2.0 whether to show the author - author = true - # Site creation time - since = 2005 - - # LoveIt NEW | 0.2.0 Section (all posts) page config - [params.section] - # special amount of posts in each section page - paginate = 15 - # date format (month and day) - dateFormat = "01-02" - # amount of RSS pages - rss = 10 - - # LoveIt NEW | 0.2.0 List (category or tag) page config - [params.list] - # special amount of posts in each list page - paginate = 15 - # date format (month and day) - dateFormat = "01-02" - # amount of RSS pages - rss = 10 - - # Home page config - [params.home] - # LoveIt NEW | 0.2.0 amount of RSS pages - rss = 10 - # Home page profile - [params.home.profile] - enable = true - # URL of avatar shown in home page - avatarURL = "/images/profile.png" - # LoveIt CHANGED | 0.2.7 title shown in home page (HTML format is supported) - title = "Kazuhiro MUSASHI" - # subtitle shown in home page - subtitle = "ITエンジニアです。本当は手を動かしたいけど、いまはプレセールスやっています。" - # whether to use typeit animation for subtitle - typeit = true - # whether to show social links - social = true - # LoveIt NEW | 0.2.0 disclaimer (HTML format is supported) - disclaimer = "Opinions are my own." - # Home page posts - [params.home.posts] - enable = true - # special amount of posts in each home posts page - paginate = 5 - # LoveIt DELETED | 0.2.0 replaced with hiddenFromHomePage in params.page - # default behavior when you don't set "hiddenFromHomePage" in front matter - defaultHiddenFromHomePage = false + # Gravatar Email for preferred avatar in home page + gravatarEmail = "" + # URL of avatar shown in home page + # Place your avatar file under static or assets directory + # The filepath is relative to the static or assets directory + avatarURL = "/images/profile.png" + # title shown in home page (HTML format is supported) + title = "Kazuhiro Musashi" + # subtitle shown in home page + subtitle = "ITエンジニアです。本当は手を動かしたいけど、いまはプレセールスをしています" + # whether to use typeit animation for subtitle + typeit = true + # whether to show social links + social = true + # disclaimer (HTML format is supported) + disclaimer = "Opinions are my own." + # Home page posts + [params.home.posts] + enable = true + # special amount of posts in each home posts page + paginate = 6 + # replaced with hiddenFromHomePage in params.page + # default behavior when you don't set "hiddenFromHomePage" in front matter + defaultHiddenFromHomePage = false # Social config about the author [params.social] - Gitea = "https://gitea.kazu634.com/kazu634" - Github = "kazu634" - Foursquare = "musashikazuhiro" - Strava = "89291248" - Twitter = "MusashiKazuhiro" - Facebook = "kazu634" - Linkedin = "一弘-武蔵-b90bba54" - Flickr = "42332031@N02" - Youtubechannel = "UC1acPRvMPda9eL1JqlO-_rA" - RSS = true # LoveIt NEW | 0.2.0 + RSS = true # + [params.social.Twitter] + weight = 1 + id = "MusashiKazuhiro" [params.social.Mastodon] - # weight when arranging icons (the greater the weight, the later the icon is positioned) - weight = 4 + # weight when arranging icons (the greater the weight, the later the icon is positioned) + weight = 2 # your social ID id = "@kazu634" # prefix of your social link prefix = "https://mstdn.guru/" # content hovering on the icon title = "Mastodon" - - + [params.social.Facebook] + # weight when arranging icons (the greater the weight, the later the icon is positioned) + weight = 3 + # your social ID + id = "kazu634" + [params.social.Linkedin] + # weight when arranging icons (the greater the weight, the later the icon is positioned) + weight = 4 + # your social ID + id = "一弘-武蔵-b90bba54" + [params.social.Github] + # weight when arranging icons (the greater the weight, the later the icon is positioned) + weight = 5 + # your social ID + id = "kazu634" + [params.social.Gitea] + # weight when arranging icons (the greater the weight, the later the icon is positioned) + weight = 6 + # your social ID + id = "https://gitea.kazu634.com/kazu634" + [params.social.Foursquare] + # weight when arranging icons (the greater the weight, the later the icon is positioned) + weight = 7 + # your social ID + id = "musashikazuhiro" + [params.social.Strava] + # weight when arranging icons (the greater the weight, the later the icon is positioned) + weight = 8 + # your social ID + id = "89291248" + [params.social.Flickr] + # weight when arranging icons (the greater the weight, the later the icon is positioned) + weight = 9 + # your social ID + id = "42332031@N02" + [params.social.Youtubechannel] + # weight when arranging icons (the greater the weight, the later the icon is positioned) + weight = 10 + # your social ID + id = "UC1acPRvMPda9eL1JqlO-_rA" + # Page config [params.page] - # DoIt NEW | 0.2.0 whether to hide a page from home page + # whether to hide a page from home page hiddenFromHomePage = false - # DoIt NEW | 0.2.0 whether to hide a page from search results + # whether to hide a page from search results hiddenFromSearch = false - # DoIt NEW | 0.2.0 whether to enable twemoji + # whether to enable twemoji twemoji = true # whether to enable lightgallery lightgallery = true - # DoIt NEW | 0.2.0 whether to enable the ruby extended syntax + # whether to enable the ruby extended syntax ruby = true - # DoIt NEW | 0.2.0 whether to enable the fraction extended syntax + # whether to enable the fraction extended syntax fraction = true - # DoIt NEW | 0.2.0 whether to enable the fontawesome extended syntax + # whether to enable the fontawesome extended syntax fontawesome = true # whether to show link to Raw Markdown content of the content - linkToMarkdown = true - # DoIt NEW | 0.2.14 configure the link to the source file of the post + linkToMarkdown = false + # configure the link to the source file of the post linkToSource = false # "https://github.com/user/repo/blob/main/{path}" - # DoIt NEW | 0.2.13 configure the link to edit the post + # configure the link to edit the post linkToEdit = false # "https://github.com/user/repo/edit/main/{path}" # "https://gitlab.com/user/repo/-/edit/main/{path}" # "https://bitbucket.org/user/repo/src/main/{path}?mode=edit" - # DoIt NEW | 0.2.14 configure the link to report issue for the post + # configure the link to report issue for the post linkToReport = false # "https://github.com/user/repo/issues/new?title=[bug]%20{title}&body=|Field|Value|%0A|-|-|%0A|Title|{title}|%0A|Url|{url}|%0A|Filename|https://github.com/user/repo/blob/main/{path}|" - # DoIt NEW | 0.2.4 whether to show the full text content in RSS + # whether to show the full text content in RSS rssFullText = false - # DoIt NEW | 0.2.11 page layout style ("normal", "wide") + # page layout style ("normal", "wide") pageStyle = "wide" - # DoIt NEW | 0.2.13 whether to enable series navigation + # whether to enable series navigation seriesNavigation = true - # DoIt NEW | 0.2.13 outdated article reminder config + # outdated article reminder config [params.page.outdatedArticleReminder] enable = false # Display the reminder if the last modified time is more than 90 days ago. reminder = 90 # Display warning if the last modified time is more than 180 days ago. warning = 180 - # DoIt NEW | 0.2.0 Table of the contents config + # Table of the contents config [params.page.toc] # whether to enable the table of the contents enable = true - # DoIt NEW | 0.2.9 whether to keep the static table of the contents in front of the post - keepStatic = false + # whether to keep the static table of the contents in front of the post + keepStatic = true # whether to make the table of the contents in the sidebar automatically collapsed auto = true - # DoIt CHANGED | 0.2.0 KaTeX mathematical formulas + # KaTeX mathematical formulas [params.page.math] enable = true # default block delimiter is $$ ... $$ and \\[ ... \\] @@ -197,15 +290,17 @@ theme = "DoIt" copyTex = true # KaTeX extension mhchem mhchem = true - # LoveIt NEW | 0.2.0 Code config - + # Code config [params.page.code] # whether to show the copy button of the code block copy = true # the maximum number of lines of displayed code by default maxShownLines = 10 - - # LoveIt NEW | 0.2.0 Mapbox GL JS config + # Table config + [params.page.table] + # whether to enable sorting in the tables + sort = true + # Mapbox GL JS config [params.page.mapbox] # access token of Mapbox GL JS accessToken = "pk.eyJ1Ijoia2F6dTYzNCIsImEiOiJja3drcGt4MWUxaHp2MzFwYm9iMTE5MXNxIn0.wqNoFnA8BDNNRhxFuvB_xw" @@ -221,16 +316,96 @@ theme = "DoIt" scale = true # whether to add FullscreenControl fullscreen = true - - # LoveIt CHANGED | 0.2.0 social share links in post page + # social share links in post page [params.page.share] enable = true Twitter = true Facebook = true + Whatsapp = true Line = true Pocket = true + Trello = true + # Comment config + [params.page.comment] + enable = true + # Disqus comment config + [params.page.comment.disqus] + # + enable = true + # Disqus shortname to use Disqus in posts + shortname = "blog-kazu634" + # Third-party library config + [params.page.library] + [params.page.library.css] + # someCSS = "some.css" + # Enhance third-party library config + # [params.page.library.css.someOtherCSS] + # src = "someOther.css" + # defer = true + # attr = "customAttribute" + # located in "assets/" + # Or + # someCSS = "https://cdn.example.com/some.css" + [params.page.library.js] + # someJavaScript = "some.js" + # Enhance third-party library config + # [params.page.library.js.someOtherJavaScript] + # src = "someOther.js" + # defer = false + # async = true + # attr = "customAttribute" + # located in "assets/" + # Or + # someJavaScript = "https://cdn.example.com/some.js" + # Page SEO config + [params.page.seo] + # image URL + images = [] + # Publisher info + [params.page.seo.publisher] + name = "" + logoUrl = "" + # Related content config + [params.page.related] + enable = false + count = 5 - # LoveIt NEW | 0.2.0 Analytics config + # Sponsor config + [params.sponsor] + enable = false + bio = "If you find this post helpful, please consider sponsoring." + link = "https://www.buymeacoffee.com" # The link to your sponsor page + custom = "" # Custom HTML button + + # TypeIt config + [params.typeit] + # typing speed between each step (measured in milliseconds) + speed = 100 + # blinking speed of the cursor (measured in milliseconds) + cursorSpeed = 1000 + # character used for the cursor (HTML format is supported) + cursorChar = "|" + # cursor duration after typing finishing (measured in milliseconds, "-1" means unlimited) + duration = -1 + + # Site verification code config for Google/Bing/Yandex/Pinterest/Baidu + [params.verification] + google = "" + bing = "" + yandex = "" + pinterest = "" + baidu = "" + so = "" # 360 search + sogou = "" + + # Site SEO config + [params.seo] + # image URL + image = "" + # thumbnail URL + thumbnailUrl = "" + + # Analytics config [params.analytics] enable = true # Google Analytics @@ -239,6 +414,116 @@ theme = "DoIt" # whether to anonymize IP anonymizeIP = true + # Cookie consent config + [params.cookieconsent] + enable = false + # text strings used for Cookie consent banner + [params.cookieconsent.content] + message = "" + dismiss = "" + link = "" + + # CDN config for third-party library files + [params.cdn] + # CDN data file name, disabled by default + # ("jsdelivr.yml") + # located in "themes/DoIt/assets/data/cdn/" directory + # you can store your own data files in the same path under your project: + # "assets/data/cdn/" + data = "" + + # Compatibility config + [params.compatibility] + # whether to use Polyfill.io to be compatible with older browsers + polyfill = false + # whether to use object-fit-images to be compatible with older browsers + objectFit = false + +# Markup related config in Hugo +[markup] + # Syntax Highlighting + [markup.highlight] + codeFences = true + guessSyntax = true + lineNos = true + lineNumbersInTable = true + # false is a necessary configuration + # (https://github.com/dillonzq/LoveIt/issues/158) + noClasses = false + # Goldmark is from Hugo 0.60 the default library used for Markdown + [markup.goldmark] + [markup.goldmark.extensions] + definitionList = true + footnote = true + linkify = true + strikethrough = true + table = true + taskList = true + typographer = true + [markup.goldmark.renderer] + # whether to use HTML tags directly in the document + unsafe = true + # Table Of Contents settings + [markup.tableOfContents] + startLevel = 2 + endLevel = 6 + +# Author config +[author] + name = "kazu634" + email = "simoom634@yahoo.co.jp" + link = "" + avatar = "" + gravatarEmail = "" + +# Sitemap config +[sitemap] + changefreq = "weekly" + filename = "sitemap.xml" + priority = 0.5 + +# Permalinks config +[Permalinks] + posts = ":year/:month/:filename" + +# Privacy config +[privacy] + # privacy of the Google Analytics (replaced by params.analytics.google) + [privacy.googleAnalytics] + # ... + [privacy.twitter] + enableDNT = true + [privacy.youtube] + privacyEnhanced = true + +# Options to make output .md files +[mediaTypes] + [mediaTypes."text/plain"] + suffixes = ["md"] + +# Options to make output .md files +[outputFormats.MarkDown] + mediaType = "text/plain" + isPlainText = true + isHTML = false + +# Options to make hugo output files +[outputs] + # + home = ["HTML", "RSS", "JSON"] + page = ["HTML", "MarkDown"] + section = ["HTML", "RSS"] + taxonomy = ["HTML", "RSS"] + taxonomyTerm = ["HTML"] + +# Options for taxonomies +[taxonomies] +author = "authors" +category = "categories" +tag = "tags" +series = "series" + + [menu] [[menu.main]] identifier = "posts" @@ -279,29 +564,3 @@ theme = "DoIt" title = "" weight = 4 -[markup] - # Syntax Highlighting (https://gohugo.io/content-management/syntax-highlighting) - [markup.highlight] - codeFences = true - guessSyntax = true - lineNos = true - lineNumbersInTable = true - # false is a necessary configuration (https://github.com/dillonzq/LoveIt/issues/158) - noClasses = false - # Goldmark is from Hugo 0.60 the default library used for Markdown - [markup.goldmark] - [markup.goldmark.extensions] - definitionList = true - footnote = true - linkify = true - strikethrough = true - table = true - taskList = true - typographer = true - [markup.goldmark.renderer] - # whether to use HTML tags directly in the document - unsafe = true - # Table Of Contents settings - [markup.tableOfContents] - startLevel = 2 - endLevel = 6