Update theme (LoveIt) + Add new fields

This commit is contained in:
Daniel Mason 2025-02-23 12:23:14 +13:00
parent ec90ebd36e
commit 49c98d8fb5
Signed by: idanoo
GPG key ID: 387387CDBC02F132
87 changed files with 6900 additions and 6013 deletions

View file

@ -1,19 +1,38 @@
baseURL = 'https://m2.nz/'
languageCode = 'en'
title = 'Daniel Mason'
theme = 'LoveIt'
baseURL = "https://m2.nz/"
# Defined later
# [markup.goldmark.renderer]
# unsafe = true
# Markup related configuration in Hugo
# [markup]
# # Syntax Highlighting (https://gohugo.io/content-management/syntax-highlighting)
# [markup.highlight]
# # false is a necessary configuration (https://github.com/dillonzq/LoveIt/issues/158)
# noClasses = false
# Change the default theme to be use when building the site with Hugo
theme = "LoveIt"
# website title
title = "Daniel Mason"
# language code ["en", "zh-CN", "fr", "pl", ...]
languageCode = "en"
# language name ["English", "简体中文", "Français", "Polski", ...]
languageName = "English"
# whether to include Chinese/Japanese/Korean
hasCJKLanguage = false
# copyright description used only for seo schema
copyright = ""
# whether to use robots.txt
enableRobotsTXT = true
# whether to use git commit log
enableGitInfo = true
# whether to use emoji code
enableEmoji = true
# ignore some build errors
ignoreErrors = ["error-remote-getjson", "error-missing-instagram-accesstoken"]
# Pagination config
[pagination]
disableAliases = false
pagerSize = 10
path = "page"
# Menu config
[menu]
[[menu.main]]
identifier = "home"
@ -21,56 +40,104 @@ theme = 'LoveIt'
url = "/"
weight = 1
[[menu.main]]
weight = 2
identifier = "posts"
# 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 = ""
name = "Posts"
url = "/posts/"
weight = 2
# title will be shown when you hover on this menu link
title = ""
[[menu.main]]
identifier = "about"
name = "CV"
url = "/cv/"
weight = 4
weight = 3
[params]
defaultTheme = 'dark'
dateFormat = '2006-01-02'
title = 'Daniel Mason'
author = "Daniel Mason"
description = "Personal blog"
images = ["/favicon.ico"]
# site default theme ["auto", "light", "dark"]
defaultTheme = "dark"
# public git repo url only then enableGitInfo is true
gitRepo = "https://github.com/idanoo/m2.nz/"
# which hash function used for SRI, when empty, no SRI is used
# ["sha256", "sha384", "sha512", "md5"]
fingerprint = ""
# date format
dateFormat = "2006-01-02"
# website title for Open Graph and Twitter Cards
title = "m2.nz - Daniel Mason"
# website description for RSS, SEO, Open Graph and Twitter Cards
description = "m2.nz - Daniel Mason"
# website images for Open Graph and Twitter Cards
images = ["/avatar.png"]
# Author config
[params.author]
name = "Daniel Mason"
email = "daniel@m2.nz"
link = ""
# Header config
[params.header]
# desktop header mode ("fixed", "normal", "auto")
# desktop header mode ["fixed", "normal", "auto"]
desktopMode = "fixed"
# mobile header mode ("fixed", "normal", "auto")
# mobile header mode ["fixed", "normal", "auto"]
mobileMode = "auto"
# LoveIt NEW | 0.2.0 Header title config
# Header title config
[params.header.title]
# URL of the LOGO
logo = ""
# title name
name = "Daniel Mason"
name = ""
# 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
# Footer config
[params.footer]
enable = true
# Custom content (HTML format is supported)
custom = ''
hugo = false
# whether to show Hugo and theme info
hugo = true
# whether to show copyright info
copyright = true
# whether to show the author
author = true
since = 2020
license = ''
# Site creation time
since = 2019
# 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 App icon config
# 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
# 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
# App icon config
[params.app]
# optional site title override for the app when added to an iOS home screen or Android launcher
title = "Daniel Mason"
title = "My cool site"
# whether to omit favicon resource links
noFavicon = false
# modern SVG favicon to use in place of older style .png and .ico files
@ -82,9 +149,31 @@ theme = 'LoveIt'
# Windows v8-10 tile color
tileColor = "#da532c"
# Search config
[params.search]
enable = true
# type of search engine ["lunr", "algolia"]
type = "lunr"
# 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.algolia]
index = ""
appID = ""
searchKey = ""
# Home page config
[params.home]
# LoveIt NEW | 0.2.0 amount of RSS pages
# amount of RSS pages
rss = 10
# Home page profile
[params.home.profile]
@ -92,27 +181,27 @@ theme = 'LoveIt'
# Gravatar Email for preferred avatar in home page
gravatarEmail = "daniel@m2.nz"
# URL of avatar shown in home page
avatarURL = "/bitmoji.jpg"
# LoveIt CHANGED | 0.2.7 title shown in home page (HTML format is supported)
avatarURL = "/images/avatar.png"
# title shown in home page (HTML format is supported)
title = "Daniel Mason"
# subtitle shown in home page
# subtitle shown in home page (HTML format is supported)
subtitle = "Site Reliability Engineer, Dad, Pilot"
# whether to use typeit animation for subtitle
typeit = false
typeit = true
# whether to show social links
social = true
# LoveIt NEW | 0.2.0 disclaimer (HTML format is supported)
# disclaimer (HTML format is supported)
disclaimer = ""
# 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
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
# Social config about the author
[params.social]
GitHub = "idanoo"
Linkedin = "idanoo"
@ -121,7 +210,7 @@ theme = 'LoveIt'
Facebook = ""
Telegram = ""
Medium = ""
Gitlab = ""
Gitlab = "idanoo"
Youtubelegacy = ""
Youtubecustom = ""
Youtubechannel = ""
@ -169,73 +258,86 @@ theme = 'LoveIt'
Vine = ""
Googlescholar = ""
Researchgate = ""
# Mastodon = "@idanoo@mastodon.nz"
Mastodon = ""
Thingiverse = ""
Devto = ""
Gitea = ""
XMPP = ""
Matrix = ""
Bilibili = ""
Discord = ""
DiscordInvite = ""
Lichess = ""
ORCID = ""
Pleroma = ""
Kaggle = ""
MediaWiki= ""
Plume = ""
HackTheBox = ""
RootMe= ""
Malt = ""
TikTok = ""
TryHackMe = ""
Codeberg = ""
Phone = ""
Email = "daniel@m2.nz"
RSS = false # LoveIt NEW | 0.2.0
Pixelfed = "https://pixelfed.nz/idanoo"
RSS = false
# LoveIt CHANGED | 0.2.0 Page global config
# Page global config
[params.page]
# LoveIt NEW | 0.2.0 whether to hide a page from home page
# whether to hide a page from home page
hiddenFromHomePage = false
# LoveIt NEW | 0.2.0 whether to hide a page from search results
# whether to hide a page from search results
hiddenFromSearch = false
# LoveIt NEW | 0.2.0 whether to enable twemoji
# whether to enable twemoji
twemoji = false
# whether to enable lightgallery
lightgallery = true
# LoveIt NEW | 0.2.0 whether to enable the ruby extended syntax
lightgallery = false
# whether to enable the ruby extended syntax
ruby = true
# LoveIt NEW | 0.2.0 whether to enable the fraction extended syntax
# whether to enable the fraction extended syntax
fraction = true
# LoveIt 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
# LoveIt NEW | 0.2.4 whether to show the full text content in RSS
# whether to show the full text content in RSS
rssFullText = false
# LoveIt 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 = false
# LoveIt NEW | 0.2.9 whether to keep the static table of the contents in front of the post
enable = true
# whether to keep the static table of the contents in front of the post
keepStatic = false
# whether to make the table of the contents in the sidebar automatically collapsed
auto = true
# LoveIt CHANGED | 0.2.0 KaTeX mathematical formulas
# KaTeX mathematical formulas
[params.page.math]
enable = true
# default inline delimiter is $ ... $ and \( ... \)
# default inline delimiter is $ ... $ and \( ... \)
inlineLeftDelimiter = ""
inlineRightDelimiter = ""
# default block delimiter is $$ ... $$, \[ ... \], \begin{equation} ... \end{equation} and some other functions
# default block delimiter is $$ ... $$, \[ ... \], \begin{equation} ... \end{equation} and some other functions
blockLeftDelimiter = ""
blockRightDelimiter = ""
# KaTeX extension copy_tex
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 = 50
# LoveIt NEW | 0.2.0 Mapbox GL JS config
# Mapbox GL JS config
[params.page.mapbox]
# access token of Mapbox GL JS
accessToken = ""
# style for the light theme
lightStyle = "mapbox://styles/mapbox/light-v9"
lightStyle = "mapbox://styles/mapbox/light-v10?optimize=true"
# style for the dark theme
darkStyle = "mapbox://styles/mapbox/dark-v9"
darkStyle = "mapbox://styles/mapbox/dark-v10?optimize=true"
# whether to add NavigationControl
navigation = true
# whether to add GeolocateControl
@ -244,16 +346,16 @@ theme = 'LoveIt'
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 = false
Twitter = false
Twitter = true
Facebook = true
Linkedin = false
Whatsapp = true
Whatsapp = false
Pinterest = false
Tumblr = false
HackerNews = false
HackerNews = true
Reddit = false
VK = false
Buffer = false
@ -261,31 +363,27 @@ theme = 'LoveIt'
Line = true
Instapaper = false
Pocket = false
Digg = false
Stumbleupon = false
Flipboard = false
Weibo = true
Renren = false
Myspace = true
Blogger = true
Blogger = false
Baidu = false
Odnoklassniki = false
Evernote = true
Evernote = false
Skype = false
Trello = false
Mix = false
# LoveIt CHANGED | 0.2.0 Comment config
# Comment config
[params.page.comment]
enable = false
# Disqus comment config
[params.page.comment.disqus]
# LoveIt NEW | 0.1.1
#
enable = false
# Disqus shortname to use Disqus in posts
shortname = ""
# Gitalk comment config
[params.page.comment.gitalk]
# LoveIt NEW | 0.1.1
#
enable = false
owner = ""
repo = ""
@ -300,17 +398,18 @@ theme = 'LoveIt'
avatar = "mp"
meta= ""
pageSize = 10
# automatically adapt the current theme i18n configuration when empty
lang = ""
visitor = true
recordIP = true
highlight = true
enableQQ = false
serverURLs = ""
# LoveIt NEW | 0.2.6 emoji data file name, default is "google.yml"
# ("apple.yml", "google.yml", "facebook.yml", "twitter.yml")
# located in "themes/LoveIt/assets/data/emoji/" directory
# emoji data file name, default is "google.yml"
# ["apple.yml", "google.yml", "facebook.yml", "twitter.yml"]
# located in "themes/LoveIt/assets/lib/valine/emoji/" directory
# you can store your own data files in the same path under your project:
# "assets/data/emoji/"
# "assets/lib/valine/emoji/"
emoji = ""
# Facebook comment config
[params.page.comment.facebook]
@ -318,8 +417,9 @@ theme = 'LoveIt'
width = "100%"
numPosts = 10
appId = ""
# automatically adapt the current theme i18n configuration when empty
languageCode = ""
# LoveIt NEW | 0.2.0 Telegram comments config
# Telegram comments config
[params.page.comment.telegram]
enable = false
siteID = ""
@ -329,10 +429,10 @@ theme = 'LoveIt'
colorful = true
dislikes = false
outlined = false
# LoveIt NEW | 0.2.0 Commento comment config
# Commento comment config
[params.page.comment.commento]
enable = false
# LoveIt NEW | 0.2.5 Utterances comment config
# utterances comment config
[params.page.comment.utterances]
enable = false
# owner/repo
@ -341,7 +441,24 @@ theme = 'LoveIt'
label = ""
lightTheme = "github-light"
darkTheme = "github-dark"
# LoveIt NEW | 0.2.7 Third-party library config
# giscus comment config (https://giscus.app/)
[params.page.comment.giscus]
# You can refer to the official documentation of giscus to use the following configuration.
enable = false
repo = ""
repoId = ""
category = "Announcements"
categoryId = ""
# automatically adapt the current theme i18n configuration when empty
lang = ""
mapping = "pathname"
reactionsEnabled = "1"
emitMetadata = "0"
inputPosition = "bottom"
lazyLoading = false
lightTheme = "light"
darkTheme = "dark"
# Third-party library config
[params.page.library]
[params.page.library.css]
# someCSS = "some.css"
@ -353,7 +470,7 @@ theme = 'LoveIt'
# located in "assets/"
# Or
# someJavascript = "https://cdn.example.com/some.js"
# LoveIt CHANGED | 0.2.10 Page SEO config
# Page SEO config
[params.page.seo]
# image URL
images = []
@ -362,7 +479,7 @@ theme = 'LoveIt'
name = ""
logoUrl = ""
# LoveIt NEW | 0.2.5 TypeIt config
# TypeIt config
[params.typeit]
# typing speed between each step (measured in milliseconds)
speed = 100
@ -381,14 +498,14 @@ theme = 'LoveIt'
pinterest = ""
baidu = ""
# LoveIt NEW | 0.2.10 Site SEO config
# Site SEO config
[params.seo]
# image URL
image = ""
# thumbnail URL
thumbnailUrl = ""
# LoveIt NEW | 0.2.0 Analytics config
# Analytics config
[params.analytics]
enable = false
# Google Analytics
@ -401,26 +518,32 @@ theme = 'LoveIt'
id = ""
# server url for your tracker if you're self hosting
server = ""
# Plausible Analytics
[params.analytics.plausible]
dataDomain = ""
# Yandex Metrica
[params.analytics.yandexMetrica]
id = ""
# LoveIt NEW | 0.2.7 Cookie consent config
# Cookie consent config
[params.cookieconsent]
enable = false
enable = true
# text strings used for Cookie consent banner
[params.cookieconsent.content]
message = ""
dismiss = ""
link = ""
# LoveIt CHANGED | 0.2.7 CDN config for third-party library files
# CDN config for third-party library files
[params.cdn]
# CDN data file name, disabled by default
# ("jsdelivr.yml")
# ["jsdelivr.yml"]
# located in "themes/LoveIt/assets/data/cdn/" directory
# you can store your own data files in the same path under your project:
# "assets/data/cdn/"
data = ""
# LoveIt NEW | 0.2.8 Compatibility config
# Compatibility config
[params.compatibility]
# whether to use Polyfill.io to be compatible with older browsers
polyfill = false
@ -436,7 +559,7 @@ theme = 'LoveIt'
lineNos = true
lineNumbersInTable = true
# false is a necessary configuration
# (https://github.com/dillonzq/LoveIt/issues/158 )
# (https://github.com/dillonzq/LoveIt/issues/158)
noClasses = false
# Goldmark is from Hugo 0.60 the default library used for Markdown
[markup.goldmark]
@ -456,12 +579,6 @@ theme = 'LoveIt'
startLevel = 2
endLevel = 6
# Author config
[author]
name = "idanoo"
email = "daniel@m2.nz"
link = "https://m2.nz"
# Sitemap config
[sitemap]
changefreq = "weekly"
@ -475,7 +592,7 @@ theme = 'LoveIt'
# Privacy config
[privacy]
# LoveIt DELETED | 0.2.0 privacy of the Google Analytics (replaced by params.analytics.google)
# privacy of the Google Analytics (replaced by params.analytics.google)
[privacy.googleAnalytics]
# ...
[privacy.twitter]
@ -496,10 +613,9 @@ theme = 'LoveIt'
# Options to make hugo output files
[outputs]
# LoveIt CHANGED | 0.2.0
#
home = ["HTML", "RSS", "JSON"]
page = ["HTML", "MarkDown"]
section = ["HTML", "RSS"]
taxonomy = ["HTML", "RSS"]
taxonomyTerm = ["HTML"]
taxonomyTerm = ["HTML"]