Change production config to use the `DoIt` site config.

This commit is contained in:
Kazuhiro MUSASHI 2022-12-04 19:44:23 +09:00
parent c3dbd2ee4d
commit cf76811080
1 changed files with 405 additions and 146 deletions

View File

@ -3,82 +3,138 @@ baseURL = "https://blog.kazu634.com/"
defaultContentLanguage = "en" defaultContentLanguage = "en"
# language code # language code
languageCode = "jp" 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 # Change the default theme to be use when building the site with Hugo
theme = "DoIt" theme = "DoIt"
# Author config
[author]
name = "kazu634"
email = "simoom634@yahoo.co.jp"
link = ""
[params] [params]
author = "kazu634" # DoIt theme version
# LoveIt theme version
version = "0.2.X" version = "0.2.X"
# website title
title = "His greatness lies in his sense of responsibilities"
# site description # site description
description = "@kazu634のブログです" description = "@kazu634のブログです"
# site keywords # site keywords
keywords = ["Blog", "Hugo", "Tech"] keywords = ["Tech", "Hugo"]
# site default theme ("light", "dark", "auto") # site default theme ("light", "dark", "black", "auto")
defaultTheme = "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" 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 = '<a rel="license external nofollow noopener noreffer" href="https://creativecommons.org/licenses/by-nc/4.0/" target="_blank">CC BY-NC 4.0</a>'
[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] # Search config
# image URL [params.search]
images = [] enable = true
# Publisher info # type of search engine ("lunr", "algolia", "fuse")
[params.page.seo.publisher] type = "fuse"
name = "kazu634" # max index length of the chunked content
logoUrl = "" 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 # Header config
[params.header] [params.header]
# desktop header mode ("fixed", "normal", "auto") # desktop header mode ("fixed", "normal", "auto")
desktopMode = "fixed" desktopMode = "fixed"
# mobile header mode ("fixed", "normal", "auto") # mobile header mode ("fixed", "normal", "auto")
mobileMode = "auto" mobileMode = "auto"
# Theme change mode
# LoveIt NEW | 0.2.0 Header title config # theme change mode ("switch", "select")
themeChangeMode = "select"
# Header title config
[params.header.title] [params.header.title]
# URL of the LOGO
logo = ""
# title name # 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 # you can add extra information before the name (HTML format is supported), such as icons
pre = "" pre = ""
# you can add extra information after the name (HTML format is supported), such as icons # you can add extra information after the name (HTML format is supported), such as icons
post = "" post = ""
# LoveIt NEW | 0.2.5 whether to use typeit animation for title name # whether to use typeit animation for title name
typeit = false typeit = false
# Footer config
[params.footer] [params.footer]
enable = true enable = true
# LoveIt NEW | 0.2.0 Custom content (HTML format is supported) # Custom content (HTML format is supported)
custom = '' custom = ''
# LoveIt NEW | 0.2.0 whether to show Hugo and theme info # whether to show Hugo and theme info
hugo = true hugo = true
# LoveIt NEW | 0.2.0 whether to show copyright info # Hosted on (HTML format is supported)
# <a title="Github Pages" href="https://docs.github.com/en/pages/" target="_blank" rel="noopener noreffer">GitHub Pages</a>
hostedOn = ''
# whether to show copyright info
copyright = true copyright = true
# LoveIt NEW | 0.2.0 whether to show the author # whether to show the author
author = true author = true
# Site creation time # Site creation time
since = 2005 since = 2005
# ICP info only in China (HTML format is supported)
icp = ""
# license info (HTML format is supported)
license = '<a rel="license external nofollow noopener noreffer" href="https://creativecommons.org/licenses/by-nc/4.0/" target="_blank">CC BY-NC 4.0</a>'
# LoveIt NEW | 0.2.0 Section (all posts) page config # Section (all posts) page config
[params.section] [params.section]
# special amount of posts in each section page # special amount of posts in each section page
paginate = 15 paginate = 20
# date format (month and day) # date format (month and day)
dateFormat = "01-02" dateFormat = "01-02"
# amount of RSS pages # amount of RSS pages
rss = 10 rss = 10
# recently updated posts settings
[params.section.recentlyUpdated]
enable = false
rss = false
days = 30
maxCount = 10
# LoveIt NEW | 0.2.0 List (category or tag) page config # List (category or tag) page config
[params.list] [params.list]
# special amount of posts in each list page # special amount of posts in each list page
paginate = 15 paginate = 20
# date format (month and day) # date format (month and day)
dateFormat = "01-02" dateFormat = "01-02"
# amount of RSS pages # amount of RSS pages
@ -86,105 +142,142 @@ theme = "DoIt"
# Home page config # Home page config
[params.home] [params.home]
# LoveIt NEW | 0.2.0 amount of RSS pages # amount of RSS pages
rss = 10 rss = 10
# Home page profile # Home page profile
[params.home.profile] [params.home.profile]
enable = true enable = true
# Gravatar Email for preferred avatar in home page
gravatarEmail = ""
# URL of avatar shown in home page # 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" avatarURL = "/images/profile.png"
# LoveIt CHANGED | 0.2.7 title shown in home page (HTML format is supported) # title shown in home page (HTML format is supported)
title = "Kazuhiro MUSASHI" title = "Kazuhiro Musashi"
# subtitle shown in home page # subtitle shown in home page
subtitle = "ITエンジニアです。本当は手を動かしたいけど、いまはプレセールスやっています。" subtitle = "ITエンジニアです。本当は手を動かしたいけど、いまはプレセールスをしています"
# whether to use typeit animation for subtitle # whether to use typeit animation for subtitle
typeit = true typeit = true
# whether to show social links # whether to show social links
social = true social = true
# LoveIt NEW | 0.2.0 disclaimer (HTML format is supported) # disclaimer (HTML format is supported)
disclaimer = "Opinions are my own." disclaimer = "Opinions are my own."
# Home page posts # Home page posts
[params.home.posts] [params.home.posts]
enable = true enable = true
# special amount of posts in each home posts page # special amount of posts in each home posts page
paginate = 5 paginate = 6
# LoveIt DELETED | 0.2.0 replaced with hiddenFromHomePage in params.page # replaced with hiddenFromHomePage in params.page
# default behavior when you don't set "hiddenFromHomePage" in front matter # default behavior when you don't set "hiddenFromHomePage" in front matter
defaultHiddenFromHomePage = false defaultHiddenFromHomePage = false
# Social config about the author # Social config about the author
[params.social] [params.social]
Gitea = "https://gitea.kazu634.com/kazu634" RSS = true #
Github = "kazu634" [params.social.Twitter]
Foursquare = "musashikazuhiro" weight = 1
Strava = "89291248" id = "MusashiKazuhiro"
Twitter = "MusashiKazuhiro"
Facebook = "kazu634"
Linkedin = "一弘-武蔵-b90bba54"
Flickr = "42332031@N02"
Youtubechannel = "UC1acPRvMPda9eL1JqlO-_rA"
RSS = true # LoveIt NEW | 0.2.0
[params.social.Mastodon] [params.social.Mastodon]
# weight when arranging icons (the greater the weight, the later the icon is positioned) # weight when arranging icons (the greater the weight, the later the icon is positioned)
weight = 4 weight = 2
# your social ID # your social ID
id = "@kazu634" id = "@kazu634"
# prefix of your social link # prefix of your social link
prefix = "https://mstdn.guru/" prefix = "https://mstdn.guru/"
# content hovering on the icon # content hovering on the icon
title = "Mastodon" 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] [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 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 hiddenFromSearch = false
# DoIt NEW | 0.2.0 whether to enable twemoji # whether to enable twemoji
twemoji = true twemoji = true
# whether to enable lightgallery # whether to enable lightgallery
lightgallery = true lightgallery = true
# DoIt NEW | 0.2.0 whether to enable the ruby extended syntax # whether to enable the ruby extended syntax
ruby = true ruby = true
# DoIt NEW | 0.2.0 whether to enable the fraction extended syntax # whether to enable the fraction extended syntax
fraction = true fraction = true
# DoIt NEW | 0.2.0 whether to enable the fontawesome extended syntax # whether to enable the fontawesome extended syntax
fontawesome = true fontawesome = true
# whether to show link to Raw Markdown content of the content # whether to show link to Raw Markdown content of the content
linkToMarkdown = true linkToMarkdown = false
# DoIt NEW | 0.2.14 configure the link to the source file of the post # configure the link to the source file of the post
linkToSource = false linkToSource = false
# "https://github.com/user/repo/blob/main/{path}" # "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 linkToEdit = false
# "https://github.com/user/repo/edit/main/{path}" # "https://github.com/user/repo/edit/main/{path}"
# "https://gitlab.com/user/repo/-/edit/main/{path}" # "https://gitlab.com/user/repo/-/edit/main/{path}"
# "https://bitbucket.org/user/repo/src/main/{path}?mode=edit" # "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 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}|" # "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 rssFullText = false
# DoIt NEW | 0.2.11 page layout style ("normal", "wide") # page layout style ("normal", "wide")
pageStyle = "wide" pageStyle = "wide"
# DoIt NEW | 0.2.13 whether to enable series navigation # whether to enable series navigation
seriesNavigation = true seriesNavigation = true
# DoIt NEW | 0.2.13 outdated article reminder config # outdated article reminder config
[params.page.outdatedArticleReminder] [params.page.outdatedArticleReminder]
enable = false enable = false
# Display the reminder if the last modified time is more than 90 days ago. # Display the reminder if the last modified time is more than 90 days ago.
reminder = 90 reminder = 90
# Display warning if the last modified time is more than 180 days ago. # Display warning if the last modified time is more than 180 days ago.
warning = 180 warning = 180
# DoIt NEW | 0.2.0 Table of the contents config # Table of the contents config
[params.page.toc] [params.page.toc]
# whether to enable the table of the contents # whether to enable the table of the contents
enable = true enable = true
# DoIt NEW | 0.2.9 whether to keep the static table of the contents in front of the post # whether to keep the static table of the contents in front of the post
keepStatic = false keepStatic = true
# whether to make the table of the contents in the sidebar automatically collapsed # whether to make the table of the contents in the sidebar automatically collapsed
auto = true auto = true
# DoIt CHANGED | 0.2.0 KaTeX mathematical formulas # KaTeX mathematical formulas
[params.page.math] [params.page.math]
enable = true enable = true
# default block delimiter is $$ ... $$ and \\[ ... \\] # default block delimiter is $$ ... $$ and \\[ ... \\]
@ -197,15 +290,17 @@ theme = "DoIt"
copyTex = true copyTex = true
# KaTeX extension mhchem # KaTeX extension mhchem
mhchem = true mhchem = true
# LoveIt NEW | 0.2.0 Code config # Code config
[params.page.code] [params.page.code]
# whether to show the copy button of the code block # whether to show the copy button of the code block
copy = true copy = true
# the maximum number of lines of displayed code by default # the maximum number of lines of displayed code by default
maxShownLines = 10 maxShownLines = 10
# Table config
# LoveIt NEW | 0.2.0 Mapbox GL JS config [params.page.table]
# whether to enable sorting in the tables
sort = true
# Mapbox GL JS config
[params.page.mapbox] [params.page.mapbox]
# access token of Mapbox GL JS # access token of Mapbox GL JS
accessToken = "pk.eyJ1Ijoia2F6dTYzNCIsImEiOiJja3drcGt4MWUxaHp2MzFwYm9iMTE5MXNxIn0.wqNoFnA8BDNNRhxFuvB_xw" accessToken = "pk.eyJ1Ijoia2F6dTYzNCIsImEiOiJja3drcGt4MWUxaHp2MzFwYm9iMTE5MXNxIn0.wqNoFnA8BDNNRhxFuvB_xw"
@ -221,16 +316,96 @@ theme = "DoIt"
scale = true scale = true
# whether to add FullscreenControl # whether to add FullscreenControl
fullscreen = true fullscreen = true
# social share links in post page
# LoveIt CHANGED | 0.2.0 social share links in post page
[params.page.share] [params.page.share]
enable = true enable = true
Twitter = true Twitter = true
Facebook = true Facebook = true
Whatsapp = true
Line = true Line = true
Pocket = 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] [params.analytics]
enable = true enable = true
# Google Analytics # Google Analytics
@ -239,6 +414,116 @@ theme = "DoIt"
# whether to anonymize IP # whether to anonymize IP
anonymizeIP = true 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]
[[menu.main]] [[menu.main]]
identifier = "posts" identifier = "posts"
@ -279,29 +564,3 @@ theme = "DoIt"
title = "" title = ""
weight = 4 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