Skip to content
This repository has been archived by the owner on Dec 28, 2023. It is now read-only.

Commit

Permalink
Update and unindent config.toml for theme and exampleSite
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel F. Dickinson <[email protected]>
  • Loading branch information
danielfdickinson committed Aug 9, 2022
1 parent 6aa429e commit 052252e
Show file tree
Hide file tree
Showing 2 changed files with 101 additions and 103 deletions.
15 changes: 8 additions & 7 deletions config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@ copyright = "© 2021-2022 Daniel F. Dickinson"
description = "Module for DFD's Hugo Minimal Test 'Theme'"

[module]
[module.hugoVersion]
min = "0.80.0"
extended = false
[module.hugoVersion]
min = "0.80.0"
extended = false

# Note that this is no longer used.
[author]
name = "Daniel F. Dickinson"
homepage = "https://www.wildtechgarden.ca/about/"
copyright = "© 2021-2022 Daniel F. Dickinson"
email = "[email protected]"
name = "Daniel F. Dickinson"
homepage = "https://wildtechgarden.ca/about/"
copyright = "© 2021-2022 Daniel F. Dickinson"
email = "[email protected]"
189 changes: 93 additions & 96 deletions exampleSite/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,132 +9,129 @@ summaryLength = 25
disableKinds = ["RSS","sitemap"]

[params]
mainSections = ["post"]
# Footnotes and TableOfContents don't work properly with a base href set in <head>
useBaseURL = false
# Disable if you don't want the test (bare-bones) CSS
# testStylesInclude = false
mainSections = ["post"]
# Footnotes and TableOfContents don't work properly with a base href set in <head>
useBaseURL = false
# Disable if you don't want the test (bare-bones) CSS
# testStylesInclude = false

# See https://gohugo.io/content-management/multilingual/
# and https://www.regisphilibert.com/blog/2018/08/hugo-multilingual-part-1-managing-content-translation/

[languages]
[languages.en]
languageName = "English"
title = "Hugo Minimal Test Theme"
description = "Demo site for Daniel F. Dickinson's (DFD) Hugo minimal test theme component"
weight = 1

[languages.en.menu]
[[languages.en.menu.main]]
identifier = "about"
name = "About"
url = "/about/" # We can't use pageref because we support 0.80.0
weight = 10

[[languages.en.menu.main]]
identifier = "accessibility"
name = "Accessibility"
url = "/accessibility/" # We can't use pageref because we support 0.80.0
weight = 20

[author]
name = "Daniel F. Dickinson"
homepage = "https://www.wildtechgarden.ca/about/"
email = "[email protected]"

[[ author.authors ]]
name = "Daniel F. Dickinson"
homepage = "https://www.wildtechgarden.ca/about/"
email = "[email protected]"
[languages.en]
languageName = "English"
title = "Hugo Minimal Test Theme"
description = "Demo site for Daniel F. Dickinson's (DFD) Hugo minimal test theme"
weight = 1

[languages.en.menu]
[[languages.en.menu.main]]
identifier = "about"
name = "About"
url = "/about/" # We can't use pageref because we support 0.80.0
weight = 10

[[languages.en.menu.main]]
identifier = "accessibility"
name = "Accessibility"
url = "/accessibility/" # We can't use pageref because we support 0.80.0
weight = 20

# site.Author(s) is deprecated so this is not longer used
[[ author.authors ]]
name = "Daniel F. Dickinson"
homepage = "https://www.wildtechgarden.ca/about/"
email = "[email protected]"

[taxonomies]
tag = "tags"
tag = "tags"

[frontmatter]
lastmod = ["lastmod",":git",":fileModTime","date","publishDate"]
date = ["date","publishDate","lastmod",":git",":fileModTime"]
publishDate = ["publishDate","date","lastmod",":git",":fileModTime"]
lastmod = ["lastmod",":git",":fileModTime","date","publishDate"]
date = ["date","publishDate","lastmod",":git",":fileModTime"]
publishDate = ["publishDate","date","lastmod",":git",":fileModTime"]

[markup]
[markup.highlight]
guessSyntax = true
noClasses = false
[markup.highlight]
guessSyntax = true
noClasses = false

[privacy]

[privacy.vimeo]
disabled = true
[privacy.vimeo]
disabled = true

[privacy.twitter]
disabled = true
[privacy.twitter]
disabled = true

[privacy.instagram]
disabled = true
[privacy.instagram]
disabled = true

[privacy.youtube]
disabled = true
[privacy.youtube]
disabled = true

[module]
# For the example site, we need the _current_ theme module from the same repo (path is relative to themes directory)
# See https://gohugo.io/hugo-modules/configuration/#module-config-top-level (replacements)
replacements = "github.com/danielfdickinson/minimal-test-theme-hugo-dfd -> ../.."
# For the example site, we need the _current_ theme module from the same repo (path is relative to themes directory)
# See https://gohugo.io/hugo-modules/configuration/#module-config-top-level (replacements)
replacements = "github.com/danielfdickinson/minimal-test-theme-hugo-dfd -> ../.."

[[module.mounts]]
source = "static"
target = "static"
[[module.mounts]]
source = "static"
target = "static"

[[module.mounts]]
source = "layouts"
target = "layouts"
[[module.mounts]]
source = "layouts"
target = "layouts"

[[module.mounts]]
source = "data"
target = "data"
[[module.mounts]]
source = "data"
target = "data"

[[module.mounts]]
source = "assets"
target = "assets"
[[module.mounts]]
source = "assets"
target = "assets"

[[module.mounts]]
source = "i18n"
target = "i18n"
[[module.mounts]]
source = "i18n"
target = "i18n"

[[module.mounts]]
source = "archetypes"
target = "archetypes"
[[module.mounts]]
source = "archetypes"
target = "archetypes"

[[module.mounts]]
source = "content"
target = "content"
[[module.mounts]]
source = "content"
target = "content"

[[module.imports]]
path = "github.com/danielfdickinson/minimal-test-theme-hugo-dfd"
[[module.imports]]
path = "github.com/danielfdickinson/minimal-test-theme-hugo-dfd"

[[module.imports.mounts]]
source = "static"
target = "static"
[[module.imports.mounts]]
source = "static"
target = "static"

[[module.imports.mounts]]
source = "layouts"
target = "layouts"
[[module.imports.mounts]]
source = "layouts"
target = "layouts"

[[module.imports.mounts]]
source = "data"
target = "data"
[[module.imports.mounts]]
source = "data"
target = "data"

[[module.imports.mounts]]
source = "assets"
target = "assets"
[[module.imports.mounts]]
source = "assets"
target = "assets"

[[module.imports.mounts]]
# Allows us to access the README.md and use it in page (via the ``page-assets`` shortcode in exampleSite)
source = "README.md"
target = "assets/README-minimal-test-theme.md"
[[module.imports.mounts]]
# Allows us to access the README.md and use it in page (via the ``page-assets`` shortcode in exampleSite)
source = "README.md"
target = "assets/README-minimal-test-theme.md"

[[module.imports.mounts]]
source = "i18n"
target = "i18n"
[[module.imports.mounts]]
source = "i18n"
target = "i18n"

[[module.imports.mounts]]
source = "archetypes"
target = "archetypes"
[[module.imports.mounts]]
source = "archetypes"
target = "archetypes"

0 comments on commit 052252e

Please sign in to comment.