mirror of
https://github.com/nunocoracao/blowfish.git
synced 2026-10-20 02:35:22 +00:00
* Add reading progress bar for articles * Let page-level showReadingProgress override the site setting Hugo's default treats false as empty, so a page-level false could not disable the bar once it was enabled site-wide. Resolve the value by initialising from the site setting and overriding it only when the front matter parameter is actually present, and use the same resolved boolean in single.html and head.html. * Guard the reading progress handler and mark the listener passive The script loads in the head without defer, so the scroll listener is registered before the progress bar element exists. A scroll event fired during parsing, such as when the browser restores the scroll position on reload, would throw. Bail out when the element is missing, matching the guard in background-blur.js, and mark the scroll listener passive as toc.html already does.
180 lines
4.8 KiB
TOML
180 lines
4.8 KiB
TOML
# -- Theme Options --
|
|
# These options control how the theme functions and allow you to
|
|
# customise the display of your website.
|
|
#
|
|
# Refer to the theme docs for more details about each of these parameters.
|
|
# https://blowfish.page/docs/configuration/#theme-parameters
|
|
|
|
colorScheme = "blowfish"
|
|
defaultAppearance = "dark" # valid options: light or dark
|
|
autoSwitchAppearance = true
|
|
|
|
enableA11y = false
|
|
enableSearch = true
|
|
enableCodeCopy = true
|
|
enableStructuredBreadcrumbs = true
|
|
|
|
replyByEmail = false
|
|
|
|
mainSections = ["docs"]
|
|
# robots = ""
|
|
|
|
disableImageOptimization = false
|
|
disableImageOptimizationMD = false
|
|
disableTextInHeader = false
|
|
# backgroundImageWidth = 1200
|
|
|
|
defaultBackgroundImage = "/img/background.svg"
|
|
defaultFeaturedImage = "/img/featured.svg"
|
|
defaultSocialImage = "/img/blowfish_banner.png"
|
|
hotlinkFeatureImage = false
|
|
# imagePosition = "50% 50%"
|
|
|
|
highlightCurrentMenuArea = true
|
|
smartTOC = true
|
|
smartTOCHideUnfocusedChildren = false
|
|
|
|
#giteaDefaultServer = "https://git.fsfe.org"
|
|
#forgejoDefaultServer = "https://v11.next.forgejo.org"
|
|
|
|
fingerprintAlgorithm = "sha512" # Valid values are "sha512" (default), "sha384", "sha256"
|
|
|
|
[header]
|
|
layout = "fixed" # valid options: basic, fixed, fixed-fill, fixed-gradient, fixed-fill-blur
|
|
|
|
[footer]
|
|
showMenu = true
|
|
showCopyright = true
|
|
showThemeAttribution = true
|
|
showAppearanceSwitcher = true
|
|
showScrollToTop = true
|
|
|
|
[homepage]
|
|
layout = "custom" # valid options: page, profile, hero, card, background, custom
|
|
# homepageImage = "/img/iceland.jpg" # used in: hero, and card
|
|
showRecent = false
|
|
showRecentItems = 12
|
|
showMoreLink = true
|
|
showMoreLinkDest = "docs"
|
|
cardView = true
|
|
cardViewScreenWidth = false
|
|
layoutBackgroundBlur = true # only used when layout equals background
|
|
disableHeroImageFilter = false # only used when layout equals hero
|
|
|
|
[article]
|
|
showDate = false
|
|
showViews = true
|
|
showLikes = false
|
|
showDateOnlyInArticle = false
|
|
showDateUpdated = false
|
|
showAuthor = true
|
|
# showAuthorBottom = false
|
|
showHero = true
|
|
heroStyle = "background" # valid options: basic, big, background, thumbAndBackground
|
|
layoutBackgroundBlur = true # only used when heroStyle equals background
|
|
layoutBackgroundHeaderSpace = true # only used when heroStyle equals background
|
|
showBreadcrumbs = true
|
|
showDraftLabel = true
|
|
showEdit = true
|
|
editURL = "https://github.com/nunocoracao/blowfish/tree/main/exampleSite/content"
|
|
editAppendPath = true
|
|
seriesOpened = false
|
|
showHeadingAnchors = true
|
|
showPagination = true
|
|
invertPagination = false
|
|
showReadingTime = true
|
|
showReadingProgress = true
|
|
showTableOfContents = true
|
|
showRelatedContent = true
|
|
relatedContentLimit = 9
|
|
showTaxonomies = true
|
|
showAuthorsBadges = true
|
|
showWordCount = false
|
|
sharingLinks = [ "linkedin", "twitter", "bluesky", "reddit", "whatsapp", "telegram", "pinterest", "facebook", "email", "line"]
|
|
showZenMode = true
|
|
|
|
[list]
|
|
showHero = true
|
|
heroStyle = "background" # valid options: basic, big, background, thumbAndBackground
|
|
layoutBackgroundBlur = true # only used when heroStyle equals background
|
|
layoutBackgroundHeaderSpace = false
|
|
showBreadcrumbs = false
|
|
showSummary = false
|
|
showViews = false
|
|
showLikes = false
|
|
showTableOfContents = true
|
|
showCards = true
|
|
orderByWeight = true
|
|
groupByYear = false
|
|
cardView = true
|
|
cardViewScreenWidth = false
|
|
constrainItemsWidth = false
|
|
|
|
[sitemap]
|
|
excludedKinds = []
|
|
|
|
[taxonomy]
|
|
showTermCount = true
|
|
showHero = true
|
|
heroStyle = "background" # valid options: basic, big, background, thumbAndBackground
|
|
showBreadcrumbs = false
|
|
showViews = false
|
|
showLikes = false
|
|
showTableOfContents = true
|
|
cardView = false
|
|
|
|
[term]
|
|
showHero = true
|
|
heroStyle = "background" # valid options: basic, big, background, thumbAndBackground
|
|
showBreadcrumbs = false
|
|
showViews = false
|
|
showLikes = false
|
|
showTableOfContents = true
|
|
groupByYear = false
|
|
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 = "ABC12345"
|
|
# domain = "llama.yoursite.com"
|
|
# dataDomains = "yoursite.com,yoursite2.com"
|
|
# scriptName = ""
|
|
# enableTrackEvent = false
|
|
|
|
[selineAnalytics]
|
|
# token = "XXXXXX"
|
|
# enableTrackEvent = false
|
|
|
|
[buymeacoffee]
|
|
identifier = "nunocoracao"
|
|
globalWidget = true
|
|
globalWidgetMessage = ""
|
|
globalWidgetColor = "#FFDD00"
|
|
globalWidgetPosition = "right"
|
|
|
|
[verification]
|
|
# google = ""
|
|
# bing = ""
|
|
# pinterest = ""
|
|
# yandex = ""
|
|
|
|
[rssnext]
|
|
# feedId = ""
|
|
# userId = ""
|
|
|
|
[advertisement]
|
|
# adsense = ""
|