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
|
|
|
# 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
|
2024-02-24 13:03:23 +00:00
|
|
|
relativeURLs = true # true -> rewrite all site-relative URLs (those with a leading slash) to be relative to the current content
|
2024-02-24 12:49:46 +00:00
|
|
|
# if you set uglyURLs to false, this theme will append 'index.html' to any page bundle link
|
|
|
|
# so your site can be also served from the file system; if you don't want that,
|
2022-11-05 23:34:33 +00:00
|
|
|
# set disableExplicitIndexURLs=true in the [params] section
|
2023-11-20 23:59:46 +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"
|
|
|
|
|
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
|
|
|
|
2024-04-24 19:38:16 +00:00
|
|
|
# Don't use any auto-generated summaries
|
2024-04-24 20:40:39 +00:00
|
|
|
summaryLength = 10
|
2024-04-24 19:38:16 +00:00
|
|
|
|
2017-07-30 16:02:07 +00:00
|
|
|
[outputs]
|
2024-04-26 21:35:56 +00:00
|
|
|
# add `search` to the home to support Lunr search; This is a mandatory setting
|
|
|
|
# for the side wide search functionality
|
|
|
|
# add `searchpage` to the home to create a dedicated searchpage
|
2024-02-10 22:22:35 +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
|
2024-02-10 22:22:35 +00:00
|
|
|
home = ["html", "rss", "print", "search", "searchpage"]
|
|
|
|
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
|
|
|
|
|
2024-04-12 15:30:16 +00:00
|
|
|
# the shipped variants come with their own modified chroma syntax highlighting
|
2023-11-25 13:23:58 +00:00
|
|
|
# stylesheets which are linked in your generated HTML pages; you can use Hugo to generate
|
|
|
|
# own stylesheets to your liking and use them in your variant;
|
|
|
|
# if you want to use Hugo's internal styles instead of the shipped stylesheets:
|
2023-06-21 23:22:08 +00:00
|
|
|
# - remove `noClasses` or set `noClasses = true`
|
|
|
|
# - set `style` to a predefined style name
|
2023-11-25 13:23:58 +00:00
|
|
|
# note: with using the internal styles, the `--CODE-theme` setting in your variant
|
|
|
|
# stylesheet will be ignored and the internal style is used for all variants and
|
|
|
|
# even print
|
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
|
|
|
|
2024-02-22 18:07:32 +00:00
|
|
|
[markup.goldmark]
|
|
|
|
# this is required for the themes exampleSite to make the piratify shortcode work
|
|
|
|
duplicateResourceFiles = true
|
|
|
|
|
2022-02-10 23:59:40 +00:00
|
|
|
# activated for this showcase to use HTML and JavaScript; decide on your own needs;
|
|
|
|
# if in doubt, remove this line
|
2024-02-22 18:07:32 +00:00
|
|
|
renderer.unsafe = true
|
2022-02-10 23:59:40 +00:00
|
|
|
|
2024-04-19 21:37:00 +00:00
|
|
|
[markup.goldmark.extensions]
|
2024-07-21 22:29:08 +00:00
|
|
|
strikethrough = false
|
2024-04-19 21:37:00 +00:00
|
|
|
|
2024-05-28 17:44:03 +00:00
|
|
|
# use Markdown extensions for this showcase
|
|
|
|
[markup.goldmark.extensions.extras]
|
2024-07-21 22:29:08 +00:00
|
|
|
[markup.goldmark.extensions.extras.delete]
|
|
|
|
enable = true
|
2024-05-28 17:44:03 +00:00
|
|
|
[markup.goldmark.extensions.extras.insert]
|
|
|
|
enable = true
|
|
|
|
[markup.goldmark.extensions.extras.mark]
|
|
|
|
enable = true
|
|
|
|
[markup.goldmark.extensions.extras.subscript]
|
|
|
|
enable = true
|
|
|
|
[markup.goldmark.extensions.extras.superscript]
|
|
|
|
enable = true
|
|
|
|
|
2024-04-19 21:37:00 +00:00
|
|
|
[markup.goldmark.extensions.passthrough]
|
|
|
|
enable = true
|
|
|
|
[markup.goldmark.extensions.passthrough.delimiters]
|
|
|
|
# the settings chosen here match the default initialization
|
|
|
|
# of the MathJax library chosen by the theme;
|
|
|
|
# if you want to adjust to different values you also need
|
|
|
|
# to set them in `[params] mathJaxInitialize`
|
|
|
|
inline = [['\(', '\)'], ['$', '$']]
|
|
|
|
block = [['\[', '\]'], ['$$', '$$']]
|
|
|
|
|
2022-02-10 23:59:40 +00:00
|
|
|
# showcase of the menu shortcuts; you can use relative URLs linking
|
2024-04-12 15:30:16 +00:00
|
|
|
# to your content or use fully-qualified URLs to link outside of
|
2022-02-10 23:59:40 +00:00
|
|
|
# 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
|
2024-04-30 20:08:04 +00:00
|
|
|
languageCode = "en"
|
2021-07-04 18:59:17 +00:00
|
|
|
languageName = "English"
|
2024-04-12 15:30:16 +00:00
|
|
|
# Language dependent settings:
|
2023-05-29 09:27:33 +00:00
|
|
|
# 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]
|
2024-03-18 16:24:06 +00:00
|
|
|
landingPageName = "<i class='fa-fw 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]]
|
2024-03-18 16:24:06 +00:00
|
|
|
name = "<i class='fa-fw fab fa-github'></i> GitHub repo"
|
2021-07-04 18:59:17 +00:00
|
|
|
identifier = "ds"
|
|
|
|
url = "https://github.com/McShelby/hugo-theme-relearn"
|
|
|
|
weight = 10
|
|
|
|
|
2023-05-17 18:58:37 +00:00
|
|
|
[[languages.en.menu.shortcuts]]
|
2024-03-18 16:24:06 +00:00
|
|
|
name = "<i class='fa-fw fas fa-camera'></i> Showcases"
|
2023-06-02 10:12:34 +00:00
|
|
|
pageRef = "showcase/"
|
2021-07-04 18:59:17 +00:00
|
|
|
weight = 20
|
|
|
|
|
2023-05-17 18:58:37 +00:00
|
|
|
[[languages.en.menu.shortcuts]]
|
2024-03-18 16:24:06 +00:00
|
|
|
name = "<i class='fa-fw fas 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]]
|
2024-03-18 16:24:06 +00:00
|
|
|
name = "<i class='fa-fw fas 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]]
|
2024-03-18 16:24:06 +00:00
|
|
|
name = "<i class='fa-fw fas fa-layer-group'></i> Categories"
|
2023-10-29 23:20:37 +00:00
|
|
|
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
|
2024-04-30 20:08:04 +00:00
|
|
|
# It would be more standard compliant to have the language key also
|
|
|
|
# named art-x-pir but that would require to rename all files
|
|
|
|
languageCode = "art-x-pir"
|
2023-11-28 20:39:50 +00:00
|
|
|
languageDirection = "rtl"
|
2022-02-20 12:16:44 +00:00
|
|
|
languageName = "Arrr! ☠ Pirrrates ☠"
|
2024-04-12 15:30:16 +00:00
|
|
|
# Language dependent settings:
|
2023-05-29 09:27:33 +00:00
|
|
|
# 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]
|
2024-03-18 16:24:06 +00:00
|
|
|
landingPageName = "<i class='fa-fw fas home'></i> Arrr! Home"
|
2021-09-11 13:46:14 +00:00
|
|
|
|
2023-05-17 18:58:37 +00:00
|
|
|
[[languages.pir.menu.shortcuts]]
|
2024-03-18 16:24:06 +00:00
|
|
|
name = "<i class='fa-fw fab fa-github'></i> GitHub repo"
|
2021-09-11 13:46:14 +00:00
|
|
|
identifier = "ds"
|
|
|
|
url = "https://github.com/McShelby/hugo-theme-relearn"
|
|
|
|
weight = 10
|
|
|
|
|
2023-05-17 18:58:37 +00:00
|
|
|
[[languages.pir.menu.shortcuts]]
|
2024-03-18 16:24:06 +00:00
|
|
|
name = "<i class='fa-fw fas fa-camera'></i> Showcases"
|
2023-06-02 10:12:34 +00:00
|
|
|
pageRef = "showcase/"
|
2021-09-11 13:46:14 +00:00
|
|
|
weight = 20
|
|
|
|
|
2023-05-17 18:58:37 +00:00
|
|
|
[[languages.pir.menu.shortcuts]]
|
2024-03-18 16:24:06 +00:00
|
|
|
name = "<i class='fa-fw fas 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]]
|
2024-03-18 16:24:06 +00:00
|
|
|
name = "<i class='fa-fw fas 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]]
|
2024-03-18 16:24:06 +00:00
|
|
|
name = "<i class='fa-fw fas fa-layer-group'></i> Categorrries"
|
2023-10-29 23:20:37 +00:00
|
|
|
pageRef = "categories/"
|
|
|
|
weight = 50
|
|
|
|
|
2024-04-19 15:58:38 +00:00
|
|
|
# mounts are only needed in this showcase to access the publicly available screenshots and CHANGELOG;
|
2023-01-24 22:58:16 +00:00
|
|
|
# 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
|
|
|
|
2024-04-12 15:30:16 +00:00
|
|
|
# Language dependent settings:
|
2023-05-29 09:27:33 +00:00
|
|
|
# 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 = 'layouts'
|
|
|
|
target = 'layouts'
|
|
|
|
[[module.mounts]]
|
|
|
|
source = 'static'
|
|
|
|
target = 'static'
|
2023-11-15 23:21:08 +00:00
|
|
|
# just for this documentation to expose our config in the docs
|
|
|
|
[[module.mounts]]
|
|
|
|
source = 'config'
|
2024-04-22 21:14:23 +00:00
|
|
|
target = 'assets/config'
|
2024-02-22 18:08:46 +00:00
|
|
|
# just for this documentation to expose the GitHub hero image in the docs
|
|
|
|
[[module.mounts]]
|
|
|
|
source = '../images'
|
2024-02-24 13:26:00 +00:00
|
|
|
target = 'assets/images'
|
2024-04-19 15:58:38 +00:00
|
|
|
# just for this documentation to expose the CHANGELOG.md in the docs
|
|
|
|
[[module.mounts]]
|
|
|
|
source = '../CHANGELOG.md'
|
|
|
|
target = 'assets/CHANGELOG.md'
|
2024-04-23 22:24:35 +00:00
|
|
|
# just for this documentation to expose the README.md in the docs
|
|
|
|
[[module.mounts]]
|
|
|
|
source = '../README.md'
|
|
|
|
target = 'assets/README.md'
|
2023-01-24 22:58:16 +00:00
|
|
|
|
2022-11-13 11:19:49 +00:00
|
|
|
[params]
|
2023-11-15 23:21:08 +00:00
|
|
|
# Demo setting for displaying the siteparam shortcode the docs.
|
|
|
|
siteparam.test.text = "A **nested** option <b>with</b> formatting"
|
|
|
|
# Extension to the image effects only for the docs.
|
|
|
|
imageEffects.bg-white = true
|