mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-23 12:52:10 +00:00
Add support for Hugo 0.124 renderSections
This commit is contained in:
parent
e5203528a0
commit
de3936943e
1 changed files with 129 additions and 115 deletions
244
config.toml
244
config.toml
|
@ -13,159 +13,173 @@ pygmentsUseClasses = false
|
||||||
disableKinds = ["taxonomy", "term"]
|
disableKinds = ["taxonomy", "term"]
|
||||||
|
|
||||||
[params]
|
[params]
|
||||||
description = "My personal IndieWeb site. I write about and develop software to promote user autonomy. Topics include accessibility, security, privacy, and software freedom."
|
description = "My personal IndieWeb site. I write about and develop software to promote user autonomy. Topics include accessibility, security, privacy, and software freedom."
|
||||||
src = "https://sr.ht/~seirdy/seirdy.one/"
|
src = "https://sr.ht/~seirdy/seirdy.one/"
|
||||||
canonicalBaseURL = "https://seirdy.one" # I have mirrors with different baseURLs
|
canonicalBaseURL = "https://seirdy.one" # I have mirrors with different baseURLs
|
||||||
webmentionEndpoint = "https://collector.seirdy.one/webmentions/receive"
|
webmentionEndpoint = "https://collector.seirdy.one/webmentions/receive"
|
||||||
logUrlPrefix = "https://git.sr.ht/~seirdy/seirdy.one/log/master/item/"
|
logUrlPrefix = "https://git.sr.ht/~seirdy/seirdy.one/log/master/item/"
|
||||||
copyright = "Copyright © 2023 Rohan “Seirdy” Kumar"
|
copyright = "Copyright © 2023 Rohan “Seirdy” Kumar"
|
||||||
dark = "auto"
|
dark = "auto"
|
||||||
highlight = false
|
highlight = false
|
||||||
icon = "/favicon.svg"
|
icon = "/favicon.svg"
|
||||||
indieAuth = "https://indielogin.com/auth"
|
indieAuth = "https://indielogin.com/auth"
|
||||||
# hub = "https://websubhub.com/hub"
|
# hub = "https://websubhub.com/hub"
|
||||||
|
|
||||||
[frontmatter]
|
[frontmatter]
|
||||||
lastmod = ['lastmod', ':git', 'date', 'publishDate']
|
lastmod = ['lastmod', ':git', 'date', 'publishDate']
|
||||||
|
|
||||||
[author]
|
[author]
|
||||||
name = "Seirdy"
|
name = "Seirdy"
|
||||||
url = "https://seirdy.one/"
|
url = "https://seirdy.one/"
|
||||||
first = "Rohan"
|
first = "Rohan"
|
||||||
last = "Kumar"
|
last = "Kumar"
|
||||||
nick = "Seirdy"
|
nick = "Seirdy"
|
||||||
email = "seirdy@seirdy.one"
|
email = "seirdy@seirdy.one"
|
||||||
|
|
||||||
[menu]
|
[menu]
|
||||||
[[menu.main]]
|
[[menu.main]]
|
||||||
identifier = "articles"
|
identifier = "articles"
|
||||||
name = "Articles"
|
name = "Articles"
|
||||||
title = "articles"
|
title = "articles"
|
||||||
url = "/posts/"
|
url = "/posts/"
|
||||||
weight = 10
|
weight = 10
|
||||||
|
|
||||||
[[menu.main]]
|
[[menu.main]]
|
||||||
identifier = "notes"
|
identifier = "notes"
|
||||||
name = "Notes"
|
name = "Notes"
|
||||||
title = "notes"
|
title = "notes"
|
||||||
url = "/notes/"
|
url = "/notes/"
|
||||||
weight = 15
|
weight = 15
|
||||||
|
|
||||||
[[menu.main]]
|
[[menu.main]]
|
||||||
identifier = "bookmarks"
|
identifier = "bookmarks"
|
||||||
name = "Bookmarks"
|
name = "Bookmarks"
|
||||||
title = "bookmarks"
|
title = "bookmarks"
|
||||||
url = "/bookmarks/"
|
url = "/bookmarks/"
|
||||||
weight = 20
|
weight = 20
|
||||||
|
|
||||||
[[menu.main]]
|
[[menu.main]]
|
||||||
identifier = "about"
|
identifier = "about"
|
||||||
name = "About"
|
name = "About"
|
||||||
title = "about"
|
title = "about"
|
||||||
url = "/about/"
|
url = "/about/"
|
||||||
weight = 30
|
weight = 30
|
||||||
|
|
||||||
[[menu.main]]
|
[[menu.main]]
|
||||||
identifier = "meta"
|
identifier = "meta"
|
||||||
name = "Meta"
|
name = "Meta"
|
||||||
title = "meta"
|
title = "meta"
|
||||||
url = "/meta/"
|
url = "/meta/"
|
||||||
weight = 40
|
weight = 40
|
||||||
|
|
||||||
[[menu.main]]
|
[[menu.main]]
|
||||||
identifier = "Support"
|
identifier = "Support"
|
||||||
name = "Support"
|
name = "Support"
|
||||||
title = "support"
|
title = "support"
|
||||||
url = "/support/"
|
url = "/support/"
|
||||||
weight = 50
|
weight = 50
|
||||||
|
|
||||||
[permalinks]
|
[permalinks]
|
||||||
posts = "/posts/:year/:month/:day/:filename"
|
posts = "/posts/:year/:month/:day/:filename"
|
||||||
notes = "/notes/:year/:month/:day/:filename"
|
notes = "/notes/:year/:month/:day/:filename"
|
||||||
|
|
||||||
[markup.goldmark.renderer]
|
[markup.goldmark.renderer]
|
||||||
xhtml = true
|
xhtml = true
|
||||||
unsafe = true
|
unsafe = true
|
||||||
|
|
||||||
[markup.tableOfContents]
|
[markup.tableOfContents]
|
||||||
ordered = true
|
ordered = true
|
||||||
startLevel = 2
|
startLevel = 2
|
||||||
endLevel = 3
|
endLevel = 3
|
||||||
|
|
||||||
# lifted from https://git.sr.ht/~sircmpwn/drewdevault.com
|
# lifted from https://git.sr.ht/~sircmpwn/drewdevault.com
|
||||||
[mediaTypes]
|
[mediaTypes]
|
||||||
[mediaTypes."text/gemini"]
|
[mediaTypes."text/gemini"]
|
||||||
suffixes = ["gmi"]
|
suffixes = ["gmi"]
|
||||||
[mediaTypes."application/manifest+json"]
|
[mediaTypes."application/manifest+json"]
|
||||||
suffixes = ["webmanifest"]
|
suffixes = ["webmanifest"]
|
||||||
|
|
||||||
[outputFormats]
|
[outputFormats]
|
||||||
[outputFormats.Gemtext]
|
[outputFormats.Gemtext]
|
||||||
name = "GEMTEXT"
|
name = "GEMTEXT"
|
||||||
isPlainText = true
|
isPlainText = true
|
||||||
isHTML = false
|
isHTML = false
|
||||||
mediaType = "text/gemini"
|
mediaType = "text/gemini"
|
||||||
protocol = "gemini://"
|
protocol = "gemini://"
|
||||||
permalinkable = true
|
permalinkable = true
|
||||||
path = "gemini/"
|
path = "gemini/"
|
||||||
|
|
||||||
[outputFormats.atom]
|
[outputFormats.atom]
|
||||||
baseName="atom"
|
baseName="atom"
|
||||||
isPlainText = true
|
isPlainText = true
|
||||||
mediaType = "application/xml"
|
mediaType = "application/xml"
|
||||||
|
|
||||||
[outputformats.html]
|
[outputformats.html]
|
||||||
mediaType = "application/xhtml+xml"
|
mediaType = "application/xhtml+xml"
|
||||||
|
|
||||||
[outputs]
|
[outputs]
|
||||||
home = ["HTML", "atom", "GEMTEXT", "RSS"]
|
home = ["HTML", "atom", "GEMTEXT", "RSS"]
|
||||||
section = ["HTML", "atom", "RSS"]
|
section = ["HTML", "atom", "RSS"]
|
||||||
posts = ["HTML", "atom", "RSS"]
|
posts = ["HTML", "atom", "RSS"]
|
||||||
notes = ["HTML", "atom", "RSS"]
|
notes = ["HTML", "atom", "RSS"]
|
||||||
about = ["HTML", "atom", "RSS"]
|
about = ["HTML", "atom", "RSS"]
|
||||||
meta = ["HTML", "atom", "RSS"]
|
meta = ["HTML", "atom", "RSS"]
|
||||||
|
|
||||||
[security]
|
[security]
|
||||||
[security.funcs]
|
[security.funcs]
|
||||||
getenv = ['^JOB_URL$']
|
getenv = ['^JOB_URL$']
|
||||||
|
|
||||||
# https://github.com/nekr0z/static-webmentions
|
# https://github.com/nekr0z/static-webmentions
|
||||||
[webmentions]
|
[webmentions]
|
||||||
newDir = "public"
|
newDir = "public"
|
||||||
oldDir = "old"
|
oldDir = "old"
|
||||||
webmentionsFile = "mentions.json"
|
webmentionsFile = "mentions.json"
|
||||||
excludeSources = [
|
excludeSources = [
|
||||||
"/tags/*", # only trailing * are supported at the moment
|
"/tags/*", # only trailing * are supported at the moment
|
||||||
"/posts/*", # this only excludes /posts/index.html, not /posts/somepost/
|
"/posts/*", # this only excludes /posts/index.html, not /posts/somepost/
|
||||||
"/", # same as "/index.html"
|
"/", # same as "/index.html"
|
||||||
]
|
]
|
||||||
|
|
||||||
# addresses that we don't want to send webmentions to
|
# addresses that we don't want to send webmentions to
|
||||||
# other schemes and stuff that I link to too often
|
# other schemes and stuff that I link to too often
|
||||||
excludeDestinations = [
|
excludeDestinations = [
|
||||||
"mailto:",
|
"mailto:",
|
||||||
"gemini:",
|
"gemini:",
|
||||||
"https://web.archive.org",
|
"https://web.archive.org",
|
||||||
"https://lists.sr.ht/~seirdy/seirdy.one-comments",
|
"https://lists.sr.ht/~seirdy/seirdy.one-comments",
|
||||||
"https://seirdy.one",
|
"https://seirdy.one",
|
||||||
]
|
]
|
||||||
|
|
||||||
[imaging.exif]
|
[imaging.exif]
|
||||||
# Regexp matching the fields you want to Exclude from the (massive) set of Exif info
|
# Regexp matching the fields you want to Exclude from the (massive) set of Exif info
|
||||||
# available. As we cache this info to disk, this is for performance and
|
# available. As we cache this info to disk, this is for performance and
|
||||||
# disk space reasons more than anything.
|
# disk space reasons more than anything.
|
||||||
# If you want it all, put ".*" in this config setting.
|
# If you want it all, put ".*" in this config setting.
|
||||||
# Note that if neither this or ExcludeFields is set, Hugo will return a small
|
# Note that if neither this or ExcludeFields is set, Hugo will return a small
|
||||||
# default set: GPS|Exif|Exposure[M|P|B]|Contrast|Resolution|Sharp|JPEG|Metering|Sensing|Saturation|ColorSpace|Flash|WhiteBalance
|
# default set: GPS|Exif|Exposure[M|P|B]|Contrast|Resolution|Sharp|JPEG|Metering|Sensing|Saturation|ColorSpace|Flash|WhiteBalance
|
||||||
includeFields = ""
|
includeFields = ""
|
||||||
|
|
||||||
# Regexp matching the Exif fields you want to exclude. This may be easier to use
|
# Regexp matching the Exif fields you want to exclude. This may be easier to use
|
||||||
# than IncludeFields above, depending on what you want.
|
# than IncludeFields above, depending on what you want.
|
||||||
excludeFields = ".*"
|
excludeFields = ".*"
|
||||||
|
|
||||||
# don't minify html but minify other resources
|
# don't minify html but minify other resources
|
||||||
# Don't minify atom feeds because it messes up whitespace in entry contents.
|
# Don't minify atom feeds because it messes up whitespace in entry contents.
|
||||||
[minify]
|
[minify]
|
||||||
minifyOutput = true
|
minifyOutput = true
|
||||||
disableXML = true
|
disableXML = true
|
||||||
disableHTML = true
|
disableHTML = true
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
[segments]
|
||||||
|
[segments.posts]
|
||||||
|
[[segments.posts.includes]]
|
||||||
|
output = 'html'
|
||||||
|
path = '{/posts,/posts/**}'
|
||||||
|
[[segments.notes.includes]]
|
||||||
|
output = 'html'
|
||||||
|
path = '{/notes,/notes/**}'
|
||||||
|
[[segments.entries.includes]]
|
||||||
|
output = 'html'
|
||||||
|
path = '{/notes,/notes/**,/posts,/posts/**}'
|
||||||
|
|
Loading…
Reference in a new issue