Modularize the Hugo configuration

This commit is contained in:
Gabriel Arazas 2023-03-26 15:36:22 +08:00
parent 82b3e6dff8
commit 3fff174d96
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC
5 changed files with 112 additions and 116 deletions

View File

@ -1,116 +0,0 @@
baseURL = "https://www.foodogsquared.one"
languageCode = "en-us"
title = "Gabriel Arazas"
enableGitInfo = true
paginate = 40
copyright = "© foodogsquared"
canonifyURLs = true
summaryLength = 0
timeZone = "UTC"
[[module.imports]]
path = "github.com/foo-dogsquared/hugo-theme-more-contentful"
[[module.imports]]
path = "github.com/foo-dogsquared/hugo-mod-web-feeds"
[markup.asciidocExt]
extensions = [
"asciidoctor-foodogsquared-extensions",
"asciidoctor-tabs",
"asciidoctor-bibtex",
]
trace = true
workingFolderCurrent = true
[markup.asciidocExt.attributes]
toc = true
sectanchors = true
"figure-caption!" = true
source-highlighter = "rouge"
allow-uri-read = true
experimental = true
linkcss = true
# asciidoctor-bibtex
bibtex-file = "./assets/bibliography.bib"
bibtex-order = "alphabetical"
bibtex-throw = true
# asciidoctor-tabs
tabs-sync-option = true
[author.foo-dogsquared]
name = "Gabriel Arazas"
alias = "foo-dogsquared"
email = "foodogsquared@foodogsquared.one"
[mediaTypes."application/atom+xml"]
suffixes = ["atom"]
[mediaTypes."application/rss+xml"]
suffixes = ["rss"]
[outputFormats.RSS]
mediaType = "application/rss+xml"
baseName = "index"
isPlainText = false
[outputFormats.Atom]
mediaType = "application/atom+xml"
baseName = "index"
isPlainText = false
[outputs]
home = ["HTML", "ATOM", "RSS", "JSON"]
section = ["HTML", "ATOM", "RSS", "JSON"]
[menu]
[[menu.main]]
identifier = "about"
name = "About"
url = "about/"
[[menu.main]]
identifier = "contact"
name = "Contact"
url = "contact/"
[[menu.main]]
identifier = "posts"
name = "Posts"
url = "posts/"
[[menu.links]]
identifer = "posts"
name = "Posts"
url = "/posts/"
[[menu.links]]
identifier = "code"
name = "Code"
url = "https://code.foodogsquared.one/"
[[menu.links]]
identifer = "wiki"
name = "Wiki"
url = "https://wiki.foodogsquared.one/"
[[menu.links]]
identifer = "music"
name = "Music"
url = "https://www.youtube.com/channel/UCuMiU9bzATu5oTp-vhOlL2Q"
[params]
mainSections = ["posts", "projects"]
toc = true
extraNotes = """
This site uses [medium-zoom](https://github.com/francoischalifour/medium-zoom) and lots of modern CSS features for the life of me.
For analytics, it uses [GoatCounter](https://goatcounter.com/).
"""
[security.exec]
allow = ['^dart-sass-embedded$', '^go$', '^npx$', '^postcss$', '^asciidoctor$']
[security.funcs]
getenv = [ "^LAST_COMMIT_DATE$" ]

View File

@ -0,0 +1,4 @@
[foo-dogsquared]
name = "Gabriel Arazas"
alias = "foo-dogsquared"
email = "foodogsquared@foodogsquared.one"

View File

@ -0,0 +1,49 @@
baseURL = "https://www.foodogsquared.one"
languageCode = "en-us"
title = "Gabriel Arazas"
enableGitInfo = true
paginate = 40
copyright = "© foodogsquared"
canonifyURLs = true
summaryLength = 0
timeZone = "UTC"
[params]
mainSections = ["posts", "projects"]
toc = true
extraNotes = """
This site uses [medium-zoom](https://github.com/francoischalifour/medium-zoom) and lots of modern CSS features for the life of me.
For analytics, it uses [GoatCounter](https://goatcounter.com/).
"""
[[module.imports]]
path = "github.com/foo-dogsquared/hugo-theme-more-contentful"
[[module.imports]]
path = "github.com/foo-dogsquared/hugo-mod-web-feeds"
[mediaTypes."application/atom+xml"]
suffixes = ["atom"]
[mediaTypes."application/rss+xml"]
suffixes = ["rss"]
[outputFormats.RSS]
mediaType = "application/rss+xml"
baseName = "index"
isPlainText = false
[outputFormats.Atom]
mediaType = "application/atom+xml"
baseName = "index"
isPlainText = false
[outputs]
home = ["HTML", "ATOM", "RSS", "JSON"]
section = ["HTML", "ATOM", "RSS", "JSON"]
[security.exec]
allow = ['^dart-sass-embedded$', '^go$', '^npx$', '^postcss$', '^asciidoctor$']
[security.funcs]
getenv = [ "^LAST_COMMIT_DATE$" ]

View File

@ -0,0 +1,25 @@
[asciidocExt]
extensions = [
"asciidoctor-foodogsquared-extensions",
"asciidoctor-tabs",
"asciidoctor-bibtex",
]
trace = true
workingFolderCurrent = true
[asciidocExt.attributes]
toc = true
sectanchors = true
"figure-caption!" = true
source-highlighter = "rouge"
allow-uri-read = true
experimental = true
linkcss = true
# asciidoctor-bibtex
bibtex-file = "./assets/bibliography.bib"
bibtex-order = "alphabetical"
bibtex-throw = true
# asciidoctor-tabs
tabs-sync-option = true

34
config/_default/menu.toml Normal file
View File

@ -0,0 +1,34 @@
[[main]]
identifier = "about"
name = "About"
url = "about/"
[[main]]
identifier = "contact"
name = "Contact"
url = "contact/"
[[main]]
identifier = "posts"
name = "Posts"
url = "posts/"
[[links]]
identifer = "posts"
name = "Posts"
url = "/posts/"
[[links]]
identifier = "code"
name = "Code"
url = "https://code.foodogsquared.one/"
[[links]]
identifer = "wiki"
name = "Wiki"
url = "https://wiki.foodogsquared.one/"
[[links]]
identifer = "music"
name = "Music"
url = "https://www.youtube.com/channel/UCuMiU9bzATu5oTp-vhOlL2Q"