mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2025-01-18 19:00:24 +00:00
0505b36141
implements the first part, working for configured variants; for that, loading of stylesheets was overhauled by now merging all configured variants into one big stylesheet for each output format and loading this instead of one stylesheet per configured variant; previously @media print styles were applied on top of @media screen styles; this is now strictly isolated, which doesn't require styles like neon to revert styles for print anymore; this change was also used to implement the minify parameter, to shrink those generated stylesheets, making them shrink to 66% of their unminified size for the exampleSite; the theme switcher functionality is now completely independend of variant.js; the switch is now handled by in-page javascript which avoids waiting for external scripts to load, so switching can happen as early as possible; switching of themes is now implemented by just setting a data attribute to the html element, were previously a complex mechanism of dynamically loading of variant CSS files was implemented; the call for variant.js was removed in this changeset, making the generator broken and useless; this will be fixed with the next patch;
22 lines
825 B
TOML
22 lines
825 B
TOML
# We disable this for testing the exampleSite; you must do so too
|
|
# if you want to use the themes parameter disableGeneratorVersion=true;
|
|
# otherwise Hugo will create a generator tag on your home page
|
|
disableHugoGeneratorInject = true
|
|
|
|
# We are pretty sure, to not have unintentionally untranslated titles;
|
|
# it may happen in case when shortcodes want to set an automatic title
|
|
# out of a given style setting (this is allowed to fail for non severity styles)
|
|
# enableMissingTranslationPlaceholders = true
|
|
|
|
# Audit your published site for problems
|
|
# https://discourse.gohugo.io/t/audit-your-published-site-for-problems/35184/12
|
|
[minify]
|
|
[minify.tdewolff]
|
|
[minify.tdewolff.html]
|
|
keepComments = true
|
|
|
|
[params]
|
|
disableGeneratorVersion = true
|
|
disableAssetsBusting = true
|
|
disableRandomIds = true
|
|
minify = false
|