2022-02-11 00:49:03 +00:00
|
|
|
# this is a required setting for this theme to appear on https://themes.gohugo.io/
|
2022-11-05 23:34:33 +00:00
|
|
|
# change this to a value appropriate for you; if your site is served from a subdirectory
|
|
|
|
# set it like "https://example.com/mysite/"
|
|
|
|
baseURL = "https://example.com/"
|
2022-11-01 23:14:19 +00:00
|
|
|
|
2022-11-05 23:34:33 +00:00
|
|
|
# canonicalization will only be used for the sitemap.xml and index.xml files;
|
|
|
|
# if set to false, a site served from a subdirectory will generate wrong links
|
|
|
|
# inside of the above mentioned files; if you serve the page from the servers root
|
|
|
|
# you are free to set the value to false as recommended by the official Hugo documentation
|
|
|
|
canonifyURLs = true # true -> all relative URLs would instead be canonicalized using baseURL
|
|
|
|
# required value to serve this page from a webserver AND the file system;
|
|
|
|
# if you don't want to serve your page from the file system, you can also set this value
|
|
|
|
# to false
|
|
|
|
relativeURLs = true # true -> rewrite all relative URLs to be relative to the current content
|
|
|
|
# if you set uglyURLs to false, this theme will append 'index.html' to any branch bundle link
|
|
|
|
# so your page can be also served from the file system; if you don't want that,
|
|
|
|
# set disableExplicitIndexURLs=true in the [params] section
|
2022-11-01 23:14:19 +00:00
|
|
|
uglyURLs = false # true -> basic/index.html -> basic.html
|
2022-02-06 00:55:07 +00:00
|
|
|
|
2022-02-11 00:49:03 +00:00
|
|
|
# the directory where Hugo reads the themes from; this is specific to your
|
|
|
|
# installation and most certainly needs be deleted or changed
|
|
|
|
themesdir = "../.."
|
|
|
|
# yeah, well, obviously a mandatory setting for your site, if you want to
|
|
|
|
# use this theme ;-)
|
|
|
|
theme = "hugo-theme-relearn"
|
|
|
|
|
|
|
|
# the main language of this site; also an automatic pirrrate translation is
|
|
|
|
# available in this showcase
|
2021-09-11 13:46:14 +00:00
|
|
|
languageCode = "en"
|
2023-05-17 18:58:37 +00:00
|
|
|
# make sure your defaultContentLanguage is the first one in the [languages]
|
2023-01-25 11:41:02 +00:00
|
|
|
# array below, as the theme needs to make assumptions on it
|
2017-07-31 20:32:06 +00:00
|
|
|
defaultContentLanguage = "en"
|
2022-02-11 00:49:03 +00:00
|
|
|
# if you want to get rrrid o' ourrr pirrrates nonsense uncomment th' next line
|
|
|
|
# disableLanguages = ['pir']
|
2017-07-30 16:02:07 +00:00
|
|
|
|
2022-02-11 00:49:03 +00:00
|
|
|
# the site's title of this showcase; you should change this ;-)
|
2023-10-11 15:31:27 +00:00
|
|
|
title = "Hugo Relearn Theme"
|
2017-07-30 16:02:07 +00:00
|
|
|
|
|
|
|
[outputs]
|
2023-01-30 16:59:28 +00:00
|
|
|
# add JSON to the home to support Lunr search; This is a mandatory setting
|
2022-02-10 23:59:40 +00:00
|
|
|
# for the search functionality
|
2022-07-02 12:01:24 +00:00
|
|
|
# add PRINT to home, section and page to activate the feature to print whole
|
2022-04-02 13:29:34 +00:00
|
|
|
# chapters
|
2022-11-17 21:12:18 +00:00
|
|
|
home = ["HTML", "RSS", "PRINT", "SEARCH", "SEARCHPAGE"]
|
2022-04-02 13:29:34 +00:00
|
|
|
section = ["HTML", "RSS", "PRINT"]
|
|
|
|
page = ["HTML", "RSS", "PRINT"]
|
2021-07-04 18:59:17 +00:00
|
|
|
|
2021-07-25 23:05:46 +00:00
|
|
|
[markup]
|
|
|
|
[markup.highlight]
|
2023-06-21 23:22:08 +00:00
|
|
|
# line numbers in a table layout will shift if code is wrapping, so better
|
|
|
|
# not use it; visually both layouts have the same look and behavior
|
|
|
|
lineNumbersInTable = false
|
|
|
|
|
2022-02-11 00:49:03 +00:00
|
|
|
# if `guessSyntax = true`, there will be no unstyled code even if no language
|
2022-10-03 10:02:22 +00:00
|
|
|
# was given BUT Mermaid and Math codefences will not work anymore! So this is a
|
|
|
|
# mandatory setting for your site if you want to use Mermaid or Math codefences
|
2022-02-10 23:59:40 +00:00
|
|
|
guessSyntax = false
|
|
|
|
|
2023-06-21 23:22:08 +00:00
|
|
|
# the shipped variants come with their own modified chroma syntax highlightning
|
|
|
|
# style which is imported in theme-relearn-light.css, theme-relearn-dark.css, etc.;
|
2022-02-10 23:59:40 +00:00
|
|
|
# if you want to use a predefined style instead:
|
2023-06-21 23:22:08 +00:00
|
|
|
# - remove `noClasses` or set `noClasses = true`
|
|
|
|
# - set `style` to a predefined style name
|
2022-02-10 23:59:40 +00:00
|
|
|
noClasses = false
|
2022-02-14 21:19:38 +00:00
|
|
|
# style = "tango"
|
2022-02-10 23:59:40 +00:00
|
|
|
|
|
|
|
[markup.goldmark.renderer]
|
|
|
|
# activated for this showcase to use HTML and JavaScript; decide on your own needs;
|
|
|
|
# if in doubt, remove this line
|
|
|
|
unsafe = true
|
|
|
|
|
|
|
|
# allows `hugo server` to display this showcase in IE11; this is used for testing, as we
|
|
|
|
# are still supporting IE11 - although with degraded experience; if you don't care about
|
|
|
|
# `hugo server` or browsers of ancient times, fell free to remove this whole block
|
|
|
|
[server]
|
|
|
|
[[server.headers]]
|
|
|
|
for = "**.html"
|
|
|
|
[server.headers.values]
|
|
|
|
X-UA-Compatible = "IE=edge"
|
|
|
|
|
|
|
|
# showcase of the menu shortcuts; you can use relative URLs linking
|
|
|
|
# to your content or use fully-quallified URLs to link outside of
|
|
|
|
# your project
|
2023-05-17 18:58:37 +00:00
|
|
|
[languages]
|
|
|
|
[languages.en]
|
2022-02-24 22:10:10 +00:00
|
|
|
title = "Hugo Relearn Theme"
|
2021-07-04 18:59:17 +00:00
|
|
|
weight = 1
|
|
|
|
languageName = "English"
|
2023-05-29 09:27:33 +00:00
|
|
|
# Language dependend settings:
|
|
|
|
# Use case https://gohugo.io/content-management/multilingual/#translation-by-content-directory
|
|
|
|
#contentDir = "content/en"
|
2023-05-17 18:58:37 +00:00
|
|
|
[languages.en.params]
|
|
|
|
landingPageName = "<i class='fas fa-home'></i> Home"
|
2021-07-04 18:59:17 +00:00
|
|
|
|
2023-05-17 18:58:37 +00:00
|
|
|
[[languages.en.menu.shortcuts]]
|
2021-07-04 18:59:17 +00:00
|
|
|
name = "<i class='fab fa-fw fa-github'></i> GitHub repo"
|
|
|
|
identifier = "ds"
|
|
|
|
url = "https://github.com/McShelby/hugo-theme-relearn"
|
|
|
|
weight = 10
|
|
|
|
|
2023-05-17 18:58:37 +00:00
|
|
|
[[languages.en.menu.shortcuts]]
|
2021-07-04 18:59:17 +00:00
|
|
|
name = "<i class='fas fa-fw fa-camera'></i> Showcases"
|
2023-06-02 10:12:34 +00:00
|
|
|
pageRef = "showcase/"
|
2021-07-04 18:59:17 +00:00
|
|
|
weight = 11
|
|
|
|
|
2023-05-17 18:58:37 +00:00
|
|
|
[[languages.en.menu.shortcuts]]
|
2021-07-04 18:59:17 +00:00
|
|
|
name = "<i class='fas fa-fw fa-bookmark'></i> Hugo Documentation"
|
|
|
|
identifier = "hugodoc"
|
|
|
|
url = "https://gohugo.io/"
|
|
|
|
weight = 20
|
|
|
|
|
2023-05-17 18:58:37 +00:00
|
|
|
[[languages.en.menu.shortcuts]]
|
2021-07-04 18:59:17 +00:00
|
|
|
name = "<i class='fas fa-fw fa-bullhorn'></i> Credits"
|
2023-06-02 10:12:34 +00:00
|
|
|
pageRef = "more/credits/"
|
2021-07-04 18:59:17 +00:00
|
|
|
weight = 30
|
2021-09-11 13:46:14 +00:00
|
|
|
|
2023-05-17 18:58:37 +00:00
|
|
|
[[languages.en.menu.shortcuts]]
|
2021-10-24 09:53:09 +00:00
|
|
|
name = "<i class='fas fa-fw fa-tags'></i> Tags"
|
2023-06-02 10:12:34 +00:00
|
|
|
pageRef = "tags/"
|
2021-10-24 09:53:09 +00:00
|
|
|
weight = 40
|
|
|
|
|
2023-10-29 23:20:37 +00:00
|
|
|
[[languages.en.menu.shortcuts]]
|
|
|
|
name = "<i class='fas fa-fw fa-layer-group'></i> Categories"
|
|
|
|
pageRef = "categories/"
|
|
|
|
weight = 50
|
|
|
|
|
2022-02-11 00:49:03 +00:00
|
|
|
# this is ourrr way t' showcase th' multilang settings by
|
2022-02-10 23:59:40 +00:00
|
|
|
# doing autotrrranlat'n of th' english content; we are
|
|
|
|
# lazy and don't supporrt furrrther trrranslations; arrr,
|
|
|
|
# don't take it t' serrrious, fello'; it's prrretty hacky and:
|
2022-07-02 12:01:24 +00:00
|
|
|
# NOT MEANT FER PRRRODUCTION! ARRR!
|
2022-02-11 00:49:03 +00:00
|
|
|
|
2023-05-17 18:58:37 +00:00
|
|
|
[languages.pir]
|
2022-02-24 22:10:10 +00:00
|
|
|
title = "Cap'n Hugo Relearrrn Theme"
|
2022-12-23 02:23:33 +00:00
|
|
|
weight = 2
|
2022-02-20 12:16:44 +00:00
|
|
|
languageName = "Arrr! ☠ Pirrrates ☠"
|
2023-05-29 09:27:33 +00:00
|
|
|
# Language dependend settings:
|
|
|
|
# Use case https://gohugo.io/content-management/multilingual/#translation-by-content-directory
|
|
|
|
#contentDir = "content/pir"
|
2023-05-17 18:58:37 +00:00
|
|
|
[languages.pir.params]
|
|
|
|
landingPageName = "<i class='fas fa-home'></i> Arrr! Home"
|
2021-09-11 13:46:14 +00:00
|
|
|
|
2023-05-17 18:58:37 +00:00
|
|
|
[[languages.pir.menu.shortcuts]]
|
2021-09-11 13:46:14 +00:00
|
|
|
name = "<i class='fab fa-fw fa-github'></i> GitHub repo"
|
|
|
|
identifier = "ds"
|
|
|
|
url = "https://github.com/McShelby/hugo-theme-relearn"
|
|
|
|
weight = 10
|
|
|
|
|
2023-05-17 18:58:37 +00:00
|
|
|
[[languages.pir.menu.shortcuts]]
|
2021-09-11 13:46:14 +00:00
|
|
|
name = "<i class='fas fa-fw fa-camera'></i> Showcases"
|
2023-06-02 10:12:34 +00:00
|
|
|
pageRef = "showcase/"
|
2021-09-11 13:46:14 +00:00
|
|
|
weight = 11
|
|
|
|
|
2023-05-17 18:58:37 +00:00
|
|
|
[[languages.pir.menu.shortcuts]]
|
2021-09-11 13:46:14 +00:00
|
|
|
name = "<i class='fas fa-fw fa-bookmark'></i> Cap'n Hugo Documentat'n"
|
|
|
|
identifier = "hugodoc"
|
|
|
|
url = "https://gohugo.io/"
|
|
|
|
weight = 20
|
|
|
|
|
2023-05-17 18:58:37 +00:00
|
|
|
[[languages.pir.menu.shortcuts]]
|
2021-09-11 13:46:14 +00:00
|
|
|
name = "<i class='fas fa-fw fa-bullhorn'></i> Crrredits"
|
2023-06-02 10:12:34 +00:00
|
|
|
pageRef = "more/credits/"
|
2021-09-11 13:46:14 +00:00
|
|
|
weight = 30
|
2021-10-24 09:53:09 +00:00
|
|
|
|
2023-05-17 18:58:37 +00:00
|
|
|
[[languages.pir.menu.shortcuts]]
|
2021-10-24 09:53:09 +00:00
|
|
|
name = "<i class='fas fa-fw fa-tags'></i> Arrr! Tags"
|
2023-06-02 10:12:34 +00:00
|
|
|
pageRef = "tags/"
|
2021-10-24 09:53:09 +00:00
|
|
|
weight = 40
|
2022-11-13 11:19:49 +00:00
|
|
|
|
2023-10-29 23:20:37 +00:00
|
|
|
[[languages.pir.menu.shortcuts]]
|
|
|
|
name = "<i class='fas fa-fw fa-layer-group'></i> Categorrries"
|
|
|
|
pageRef = "categories/"
|
|
|
|
weight = 50
|
|
|
|
|
2023-01-24 22:58:16 +00:00
|
|
|
# mounts are only needed in this showcase to access the publicly available screenshots;
|
|
|
|
# remove this section if you don't need further mounts
|
|
|
|
[module]
|
|
|
|
[[module.mounts]]
|
|
|
|
source = 'archetypes'
|
|
|
|
target = 'archetypes'
|
|
|
|
[[module.mounts]]
|
|
|
|
source = 'assets'
|
|
|
|
target = 'assets'
|
2023-05-29 09:27:33 +00:00
|
|
|
|
|
|
|
# Language dependend settings:
|
|
|
|
# Use case https://gohugo.io/content-management/multilingual/#translation-by-filename
|
2023-01-24 22:58:16 +00:00
|
|
|
[[module.mounts]]
|
|
|
|
source = 'content'
|
|
|
|
target = 'content'
|
2023-05-29 09:27:33 +00:00
|
|
|
# Use case https://gohugo.io/content-management/multilingual/#translation-by-content-directory
|
|
|
|
#[[module.mounts]]
|
|
|
|
# lang = 'en'
|
|
|
|
# source = 'content/en'
|
|
|
|
# target = 'content'
|
|
|
|
#[[module.mounts]]
|
|
|
|
# lang = 'pir'
|
|
|
|
# source = 'content/pir'
|
|
|
|
# target = 'content'
|
|
|
|
|
2023-01-24 22:58:16 +00:00
|
|
|
[[module.mounts]]
|
|
|
|
source = 'data'
|
|
|
|
target = 'data'
|
|
|
|
[[module.mounts]]
|
|
|
|
source = 'i18n'
|
|
|
|
target = 'i18n'
|
|
|
|
[[module.mounts]]
|
|
|
|
source = '../images'
|
2023-05-25 17:27:33 +00:00
|
|
|
target = 'static/images'
|
2023-06-08 15:16:28 +00:00
|
|
|
[[module.mounts]]
|
|
|
|
source = 'static/images'
|
|
|
|
target = 'static/images'
|
2023-01-24 22:58:16 +00:00
|
|
|
[[module.mounts]]
|
|
|
|
source = 'layouts'
|
|
|
|
target = 'layouts'
|
|
|
|
[[module.mounts]]
|
|
|
|
source = 'static'
|
|
|
|
target = 'static'
|
|
|
|
|
2022-11-13 11:19:49 +00:00
|
|
|
# settings specific to this theme's features; choose to your likings and
|
|
|
|
# consult this documentation for explaination
|
|
|
|
[params]
|
2023-10-11 11:16:34 +00:00
|
|
|
images = ["images/hero.png"]
|
2022-11-13 11:19:49 +00:00
|
|
|
editURL = "https://github.com/McShelby/hugo-theme-relearn/edit/main/exampleSite/content/"
|
|
|
|
description = "Documentation for Hugo Relearn Theme"
|
2023-10-21 00:27:44 +00:00
|
|
|
author.name = "Sören Weber"
|
2022-11-13 11:19:49 +00:00
|
|
|
showVisitedLinks = true
|
|
|
|
collapsibleMenu = true
|
|
|
|
disableBreadcrumb = false
|
2023-09-23 22:27:39 +00:00
|
|
|
disableRootBreadcrumb = true
|
2022-11-13 11:19:49 +00:00
|
|
|
disableInlineCopyToClipBoard = true
|
|
|
|
disableNextPrev = false
|
|
|
|
disableLandingPageButton = true
|
2023-05-18 14:20:27 +00:00
|
|
|
breadcrumbSeparator = ">"
|
2022-11-13 11:19:49 +00:00
|
|
|
titleSeparator = "::"
|
2023-08-12 14:10:05 +00:00
|
|
|
themeVariant = [ "auto", "relearn-bright", "relearn-light", "relearn-dark", "zen-light", "zen-dark", "neon", "learn", "blue", "green", "red" ]
|
2023-02-04 21:33:27 +00:00
|
|
|
themeVariantAuto = [ "relearn-light", "relearn-dark" ]
|
2022-11-13 11:19:49 +00:00
|
|
|
disableSeoHiddenPages = true
|
2023-05-04 18:58:53 +00:00
|
|
|
# this is to index search for your native language in other languages, too (eg.
|
|
|
|
# pir in this showcase)
|
|
|
|
additionalContentLanguage = [ "en" ]
|
2022-11-13 11:19:49 +00:00
|
|
|
# this is for the stylesheet generator to allow for interactivity in Mermaid
|
|
|
|
# graphs; you usually will not need it and you should remove this for
|
|
|
|
# security reasons
|
|
|
|
mermaidInitialize = "{ \"securityLevel\": \"loose\" }"
|
2023-02-05 10:13:03 +00:00
|
|
|
mermaidZoom = true
|
2023-07-26 20:29:03 +00:00
|
|
|
[params.siteparam.test]
|
|
|
|
text = "A **nested** parameter <b>with</b> formatting"
|
2023-08-25 17:24:57 +00:00
|
|
|
[params.imageEffects]
|
|
|
|
bg-white = true # extension, not supported by the theme
|
|
|
|
border = true
|