hugo-theme-relearn/layouts/partials
Sören Weber 0505b36141
theme: fix flash of non-default variant, part I #757
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;
2024-12-06 07:38:05 +01:00
..
_relearn theme: fix flash of non-default variant, part I #757 2024-12-06 07:38:05 +01:00
bodys #docs: reorganize options and frontmatter index #567 2024-10-11 16:47:26 +02:00
dependencies math: adhere to Hugo's default config params #923 2024-10-11 16:47:26 +02:00
pageHelper docs: rename chapter 1 #567 2024-10-11 16:47:18 +02:00
shortcodes notice: fix broken color parameter #957 2024-12-01 22:38:55 +01:00
topbar theme: wildspace 2024-10-11 16:45:45 +02:00
article-content.html theme: make migration easier #891 2024-10-11 16:45:41 +02:00
assetbusting.gotmpl theme: add migration layer #891 2024-10-11 16:45:46 +02:00
assetbusting.hugo docs: rename chapter 1 #567 2024-10-11 16:47:18 +02:00
breadcrumbs.html theme: broadly renaming template files #891 2024-10-11 16:45:40 +02:00
content-footer.html icons: use fixed width to ease layout #812 2024-03-18 17:24:06 +01:00
content-header.html theme: allow to display tags below article #513 2023-05-19 20:44:19 +02:00
content.html theme: make migration easier #891 2024-10-11 16:45:41 +02:00
custom-comments.html theme: wildspace 2021-09-12 00:40:03 +02:00
custom-footer.html theme: wildspace 2021-09-12 00:40:03 +02:00
custom-header.html theme: remove HTML validator errors #329 2022-10-02 22:32:51 +02:00
dependencies.gotmpl docs: rename chapter 1 #567 2024-10-11 16:47:18 +02:00
dependencies.html docs: rename chapter 1 #567 2024-10-11 16:47:18 +02:00
favicon.html theme: add migration layer #891 2024-10-11 16:45:46 +02:00
heading-post.html theme: allow for page heading modification #139 2022-07-03 17:12:44 +02:00
heading-pre.html theme: allow for page heading modification #139 2022-07-03 17:12:44 +02:00
heading.html theme: broadly renaming template files #891 2024-10-11 16:45:40 +02:00
logo.html logo: fix migration issues #924 2024-10-12 22:03:57 +02:00
menu-footer.html theme: wildspace 2024-10-11 16:45:38 +02:00
menu-post.html theme: fix line break causing Hugo to hick up #139 2022-07-03 17:22:14 +02:00
menu-pre.html theme: allow for page heading modification #139 2022-07-03 17:12:44 +02:00
menu.html theme: fix flash of non-default variant, part I #757 2024-12-06 07:38:05 +01:00
menupermalink.gotmpl menu: support nested Hugo menus #423 2024-10-22 19:35:28 +02:00
menutitle.gotmpl menu: support nested Hugo menus #423 2024-10-22 19:35:28 +02:00
meta.html menu: support for external links #148 2024-10-24 23:34:42 +02:00
opengraph.html theme: broadly renaming template files #891 2024-10-11 16:45:40 +02:00
page-meta.hugo docs: rename chapter 1 #567 2024-10-11 16:47:18 +02:00
permalink.gotmpl theme: broadly renaming template files #891 2024-10-11 16:45:40 +02:00
relLangPrettyUglyURL.hugo docs: rename chapter 1 #567 2024-10-11 16:47:18 +02:00
schema.html theme: broadly renaming template files #891 2024-10-11 16:45:40 +02:00
search.html search: fix compat error with Hugo 0.126.0 #949 2024-11-22 13:18:29 +01:00
stylesheet.html theme: fix flash of non-default variant, part I #757 2024-12-06 07:38:05 +01:00
tags.html taxonomy: add style and color parameter for tags #671 2023-10-03 22:49:49 +02:00
term-list.html theme: broadly renaming template files #891 2024-10-11 16:45:40 +02:00
title.gotmpl menu: support nested Hugo menus #423 2024-10-22 19:35:28 +02:00
toc-class.html toc: invert toc file name usage #705 2023-10-30 19:11:39 +01:00
toc-id.html theme: switch partialCached key to .Path #685 2024-10-11 16:45:41 +02:00
toc.html toc: invert toc file name usage #705 2023-10-30 19:11:39 +01:00
twitter_cards.html theme: broadly renaming template files #891 2024-10-11 16:45:40 +02:00
version.txt theme: fix flash of non-default variant, part I #757 2024-12-06 07:38:05 +01:00