Migreren van config.toml-configuratiebestand naar config-directory

This commit is contained in:
Michael Boelen 2023-05-15 11:03:39 +02:00
parent f012b9957a
commit d3368be921
20 changed files with 301 additions and 122 deletions

View file

@ -1,122 +0,0 @@
# Configuratie voor de website
baseURL = "https://www3.nluug.nl/"
languageCode = "nl"
defaultContentLanguage = "nl"
title = "NLUUG"
theme = "nluug"
enableGitInfo = true
disableHugoGeneratorInject = true
[markup]
[markup.goldmark.renderer]
unsafe = true
[markup.highlight]
anchorLineNos = false
codeFences = true
guessSyntax = false
hl_Lines = ''
hl_inline = false
lineAnchors = ''
lineNoStart = 1
lineNos = false
lineNumbersInTable = true
noClasses = true
noHl = false
style = 'monokailight'
tabWidth = 4
[menu]
[[menu.main]]
identifier = "organisatie"
name = "Organisatie"
url = "/organisatie/"
weight = 10
[[menu.main]]
identifier = "evenementen"
name = "Evenementen"
url = "/evenementen/"
weight = 20
[[menu.main]]
identifier = "evenementen-kalender"
name = "Kalender"
url = "/evenementen/kalender/"
parent = "evenementen"
weight = 21
[[menu.main]]
identifier = "lidmaatschap"
name = "Lidmaatschap"
url = "/lidmaatschap/"
weight = 30
[[menu.main]]
identifier = "nieuws"
name = "Nieuws"
url = "/nieuws/"
weight = 40
[[menu.main]]
identifier = "contact"
name = "Contact"
url = "/contact/"
weight = 50
[outputs]
home = ["HTML", "RSS", "JSON"]
section = ["HTML"]
page = ["HTML", "CalendarEvent"]
[outputFormats.RSS]
mediatype = "application/rss"
baseName = "atom"
[outputFormats.JSON]
mediatype = "application/json"
baseName = "feed"
[outputFormats.CalendarEvent]
mediaType = "text/calendar"
baseName = "calendar"
#[outputFormats.XMLEvent]
# mediaType = "application/xml"
# baseName = "schedule"
[params]
description = "NLUUG website met de doelstellingen, laatste nieuws en evenementen van onze vereniging."
# Fallback-auteur voor posts die geen echte auteur hebben
author = "NLUUG"
# Datum-formaat en tijdzone, de gebruikte waardes in datum en tijd zijn van belang
dateFormat = "02-01-2006"
timeZone = "Europe/Amsterdam"
# Grafisch
logo = "/assets/favicon.ico"
[permalinks]
pages = "/:slug"
[security]
enableInlineShortcodes = false
[security.exec]
allow = ['^dart-sass-embedded$', '^go$', '^npx$', '^postcss$', '^rst2html$']
osEnv = ['(?i)^((HTTPS?|NO)_PROXY|PATH(EXT)?|APPDATA|TE?MP|TERM|GO\w+|GIT_EXEC_PATH|LD_LIBRARY_PATH|npm_config_(cache|init_module|userconfig)|pandoc_datadir|PYTHONHOME|RUBYLIB|SNAP)$']
[security.funcs]
getenv = ['^HUGO_', '^CI$']
[security.http]
methods = ['(?i)GET|POST']
urls = ['.*']
[social]
twitter = "NLUUG"
[taxonomies]
tag = "tags"
#ignoreErrors = ["error-remote-getjson"]
# EOF

11
config/_default/hugo.toml Normal file
View file

@ -0,0 +1,11 @@
# Basisconfiguratie voor de website
baseURL = "https://www3.nluug.nl/"
languageCode = "nl"
defaultContentLanguage = "nl"
title = "NLUUG"
theme = "nluug"
enableGitInfo = true
disableHugoGeneratorInject = true
# EOF

View file

@ -0,0 +1,20 @@
# Configuratie voor highlighting snippets e.d.
[markup.goldmark.renderer]
unsafe = true
[markup.highlight]
anchorLineNos = false
codeFences = true
guessSyntax = false
hl_Lines = ''
hl_inline = false
lineAnchors = ''
lineNoStart = 1
lineNos = false
lineNumbersInTable = true
noClasses = true
noHl = false
style = 'monokailight'
tabWidth = 4
# EOF

View file

@ -0,0 +1,49 @@
# Menu-configuratie
[[main]]
identifier = "organisatie"
name = "Organisatie"
url = "/organisatie/"
weight = 10
[[main]]
identifier = "evenementen"
name = "Evenementen"
url = "/evenementen/"
weight = 20
[[main]]
identifier = "evenementen-kalender"
name = "Kalender"
url = "/evenementen/kalender/"
parent = "evenementen"
weight = 21
[[main]]
identifier = "lidmaatschap"
name = "Lidmaatschap"
url = "/lidmaatschap/"
weight = 30
[[main]]
identifier = "nieuws"
name = "Nieuws"
url = "/nieuws/"
weight = 40
[[main]]
identifier = "contact"
name = "Contact"
url = "/contact/"
weight = 50
[[footer]]
name = 'Terms'
pageRef = '/terms'
weight = 10
[[footer]]
name = 'Privacy'
pageRef = '/privacy'
weight = 20
# EOF

View file

@ -0,0 +1,22 @@
# Configuratie tbv exporteerde formaten
# RSS-feed (Atom)
[RSS]
mediatype = "application/rss"
baseName = "atom"
# JSON Feed, index.json
[JSON]
mediatype = "application/json"
baseName = "feed"
# CalendarEvent genereerd een iCal-bestand voor evenementen
[CalendarEvent]
mediaType = "text/calendar"
baseName = "calendar"
#[outputFormats.XMLEvent]
# mediaType = "application/xml"
# baseName = "schedule"
# EOF

View file

@ -0,0 +1,9 @@
# Configuratie tbv exporteerde formaten
# Voor de home-page maken we een HTML, RSS en JSON Feed
# Secties alleen in HTML en voor pagina's in zowel HTML als CalendarEvent (iCAL) waar het van toepassing is
home = ["HTML", "RSS", "JSON"]
section = ["HTML"]
page = ["HTML", "CalendarEvent"]
# EOF

View file

@ -0,0 +1,13 @@
# Aanvullende velden die we binnen de website gebruiken
[params]
description = "NLUUG website met de doelstellingen, laatste nieuws en evenementen van onze vereniging."
# Fallback-auteur voor posts die geen echte auteur hebben
author = "NLUUG"
# Datum-formaat en tijdzone, de gebruikte waardes in datum en tijd zijn van belang
dateFormat = "02-01-2006"
timeZone = "Europe/Amsterdam"
# Grafisch
logo = "/assets/favicon.ico"
# EOF

View file

@ -0,0 +1,6 @@
# Configuratie voor URL-opbouw
#[permalinks]
pages = "/:slug"
# EOF

View file

@ -0,0 +1,16 @@
# Configuratie tbv extra beveiliging en toegestane functies tijdens render en testen
enableInlineShortcodes = false
[exec]
allow = ['^dart-sass-embedded$', '^go$', '^npx$', '^postcss$', '^rst2html$']
osEnv = ['(?i)^((HTTPS?|NO)_PROXY|PATH(EXT)?|APPDATA|TE?MP|TERM|GO\w+|GIT_EXEC_PATH|LD_LIBRARY_PATH|npm_config_(cache|init_module|userconfig)|pandoc_datadir|PYTHONHOME|RUBYLIB|SNAP)$']
[funcs]
getenv = ['^HUGO_', '^CI$']
[http]
methods = ['(?i)GET|POST']
urls = ['.*']
# EOF

View file

@ -0,0 +1,5 @@
# Configuratie voor de gebruikte social media binnen de website
twitter = "NLUUG"
# EOF

View file

@ -0,0 +1,5 @@
# Configuratie voor het aanmaken van category-/tags-pagina's
tag = "tags"
# EOF

11
config/disabled/hugo.toml Normal file
View file

@ -0,0 +1,11 @@
# Basisconfiguratie voor de website
baseURL = "https://www3.nluug.nl/"
languageCode = "nl"
defaultContentLanguage = "nl"
title = "NLUUG"
theme = "nluug"
enableGitInfo = true
disableHugoGeneratorInject = true
# EOF

View file

@ -0,0 +1,21 @@
# Configuratie voor highlighting snippets e.d.
[markup]
[markup.goldmark.renderer]
unsafe = true
[markup.highlight]
anchorLineNos = false
codeFences = true
guessSyntax = false
hl_Lines = ''
hl_inline = false
lineAnchors = ''
lineNoStart = 1
lineNos = false
lineNumbersInTable = true
noClasses = true
noHl = false
style = 'monokailight'
tabWidth = 4
# EOF

36
config/disabled/menu.toml Normal file
View file

@ -0,0 +1,36 @@
# Menu-configuratie
[menu]
[[menu.main]]
identifier = "organisatie"
name = "Organisatie"
url = "/organisatie/"
weight = 10
[[menu.main]]
identifier = "evenementen"
name = "Evenementen"
url = "/evenementen/"
weight = 20
[[menu.main]]
identifier = "evenementen-kalender"
name = "Kalender"
url = "/evenementen/kalender/"
parent = "evenementen"
weight = 21
[[menu.main]]
identifier = "lidmaatschap"
name = "Lidmaatschap"
url = "/lidmaatschap/"
weight = 30
[[menu.main]]
identifier = "nieuws"
name = "Nieuws"
url = "/nieuws/"
weight = 40
[[menu.main]]
identifier = "contact"
name = "Contact"
url = "/contact/"
weight = 50
# EOF

View file

@ -0,0 +1,29 @@
# Configuratie tbv exporteerde formaten
# Voor de home-page maken we een HTML, RSS en JSON Feed
# Secties alleen in HTML en voor pagina's in zowel HTML als CalendarEvent (iCAL) waar het van toepassing is
[outputs]
home = ["HTML", "RSS", "JSON"]
section = ["HTML"]
page = ["HTML", "CalendarEvent"]
# RSS-feed (Atom)
[outputFormats.RSS]
mediatype = "application/rss"
baseName = "atom"
# JSON Feed, index.json
[outputFormats.JSON]
mediatype = "application/json"
baseName = "feed"
# CalendarEvent genereerd een iCal-bestand voor evenementen
[outputFormats.CalendarEvent]
mediaType = "text/calendar"
baseName = "calendar"
#[outputFormats.XMLEvent]
# mediaType = "application/xml"
# baseName = "schedule"
# EOF

View file

@ -0,0 +1,13 @@
# Aanvullende velden die we binnen de website gebruiken
[params]
description = "NLUUG website met de doelstellingen, laatste nieuws en evenementen van onze vereniging."
# Fallback-auteur voor posts die geen echte auteur hebben
author = "NLUUG"
# Datum-formaat en tijdzone, de gebruikte waardes in datum en tijd zijn van belang
dateFormat = "02-01-2006"
timeZone = "Europe/Amsterdam"
# Grafisch
logo = "/assets/favicon.ico"
# EOF

View file

@ -0,0 +1,6 @@
# Configuratie voor URL-opbouw
[permalinks]
pages = "/:slug"
# EOF

View file

@ -0,0 +1,17 @@
# Configuratie tbv extra beveiliging en toegestane functies tijdens render en testen
[security]
enableInlineShortcodes = false
[security.exec]
allow = ['^dart-sass-embedded$', '^go$', '^npx$', '^postcss$', '^rst2html$']
osEnv = ['(?i)^((HTTPS?|NO)_PROXY|PATH(EXT)?|APPDATA|TE?MP|TERM|GO\w+|GIT_EXEC_PATH|LD_LIBRARY_PATH|npm_config_(cache|init_module|userconfig)|pandoc_datadir|PYTHONHOME|RUBYLIB|SNAP)$']
[security.funcs]
getenv = ['^HUGO_', '^CI$']
[security.http]
methods = ['(?i)GET|POST']
urls = ['.*']
# EOF

View file

@ -0,0 +1,6 @@
# Configuratie voor de gebruikte social media binnen de website
[social]
twitter = "NLUUG"
# EOF

View file

@ -0,0 +1,6 @@
# Configuratie voor het aanmaken van category-/tags-pagina's
[taxonomies]
tag = "tags"
# EOF