Commit graph

13 commits

Author SHA1 Message Date
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
Sören Weber
cb6f3467cd
#docs: call it front matter #567 2024-10-11 16:47:30 +02:00
Sören Weber
85191809ea
docs: rename chapter 1 #567 2024-10-11 16:47:18 +02:00
Sören Weber
fe70bb4e46
theme: rename dependencies.html #891 2024-10-11 16:47:01 +02:00
Sören Weber
7e28003401
docs: change anchor naming scheme #917 2024-10-11 16:46:46 +02:00
Sören Weber
5356b3b15a
theme: restructure release notes #917 2024-10-11 16:46:41 +02:00
Sören Weber
c5db84c5db
theme: add migration layer #891 2024-10-11 16:45:46 +02:00
Sören Weber
828a44d347
arrownav: inline meta calculation #685 2024-10-11 16:45:45 +02:00
Sören Weber
3a2118a89d
theme: remove deprecation waring for usage of .Sites.First #912 2024-10-11 16:45:45 +02:00
Sören Weber
a7d090b667
theme: harmonize querying hiddenstem #891 2024-10-11 16:45:42 +02:00
Sören Weber
d4cbccdde0
theme: switch partialCached key to .Path #685 2024-10-11 16:45:41 +02:00
Sören Weber
8692fc4988
theme: broadly renaming template files #891 2024-10-11 16:45:40 +02:00
Sören Weber
e95d057776
theme: replace output-partial by Hugo mechanisms #891 2024-10-11 16:45:37 +02:00
Renamed from layouts/partials/header.html (Browse further)