Commit graph

85 commits

Author SHA1 Message Date
Sören Weber
deee4ae6b7
theme: fix flash of non-default variant, part II #757
adapt the variant generator to previous changes;
interestingly, the new mechanism caused the variant generator
to be greatly simplified; something, I didn't expect beforehand
2024-12-08 00:17:03 +01:00
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
0c81706cf5
theme: remove duplicate path warning #926 2024-10-13 13:55:53 +02:00
Sören Weber
14d290cf63
theme: merge variant.css in theme.css #922
- for improving maintainability
- preparing for font switch
2024-10-11 16:47:22 +02:00
Sören Weber
85191809ea
docs: rename chapter 1 #567 2024-10-11 16:47:18 +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
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
Sören Weber
4d706da3fc
theme: remove output format from topbar, dependency loader and base/header #891 2024-10-11 16:45:35 +02:00
Sören Weber
d9e69db2f1
search: create search index and page from template and content adapter #888 2024-10-11 16:44:22 +02:00
Sören Weber
efa0a93fb7
anchor: add option to scroll into view #886 2024-08-22 18:33:27 +02:00
Sören Weber
1b2e139512
assetbuster: use asset buster for all resources #875 2024-07-04 08:23:54 +02:00
Sören Weber
bd3a4030fb
search: remove JSON outputformat for search index #846 2024-04-27 00:21:02 +02:00
Sören Weber
b2a91ca5cc
theme: remove comment quirk in templates 2024-04-24 23:05:13 +02:00
Sören Weber
d7c33b8fed
theme: amend deprecation/unsupport console messages 2024-04-24 22:42:49 +02:00
Sören Weber
ca0db4d815
variant: remove unnecessary themeVariantModifier option #831 2024-04-19 00:03:45 +02:00
Sören Weber
e952e148fc
theme: end support for Internet Explorer 11 #584 2024-04-18 23:32:19 +02:00
Sören Weber
c5ca529817
[theme] introduce relBaseUri #813 2024-03-18 21:58:53 +01:00
Sören Weber
94ce982039
[theme] rename baseUriFull to absBaseUri #813 2024-03-18 21:58:26 +01:00
Sören Weber
5f40e57d17
[theme] rename baseUri to relBasePath #813 2024-03-18 21:56:21 +01:00
Sören Weber
d0cc34396d
openapi: next try #804
Hugo's making me angry
2024-03-16 18:40:06 +01:00
Sören Weber
b178d3ea99
theme: attempt to remove relative URL hack #804 2024-03-16 14:43:57 +01:00
Sören Weber
f76f75b57b
openapi: remove / from the end of baseUri & friends #804 2024-03-16 13:39:30 +01:00
Sören Weber
131b3a9a01
openapi: fix theme switch #804 2024-03-16 12:56:56 +01:00
Sören Weber
4bc5529bc8
theme: compatiblity for output format with Hugo 0.123 #771 2024-02-10 23:22:35 +01:00
Sören Weber
8cca74e3e6
variant: introduce option for filename modifier #679 #734 2023-12-03 15:22:32 +01:00
Sören Weber
e4e5147594
variant: allow @import in own stylesheets #679 2023-11-26 20:34:08 +01:00
Sören Weber
1119b3f9a6
variant: cache variant config #679 2023-11-26 18:11:56 +01:00
Sören Weber
b49668a203
variant: make chroma style dynamically switchable #679 2023-11-25 14:23:58 +01:00
Sören Weber
a435587765
variant: themeVariantAuto for advanced options #679 2023-11-23 01:05:26 +01:00
Sören Weber
98cbf97fcb
docs: advanced color variant #679 2023-11-21 00:53:33 +01:00
Sören Weber
258093e2d5
variant: allow extended configuration #679
currently only the additional name option is recognized
2023-11-20 09:39:40 +01:00
Sören Weber
fcb255caf7
theme: fix JS errors on hugo --minifiy #724 2023-11-16 23:53:06 +01:00
Sören Weber
8b0214e9a5
theme: write full file path on warnings #699 2023-10-28 00:36:30 +02:00
Sören Weber
3010750fb0
dependencies: make injection symmetrical #683 2023-10-12 21:11:51 +02:00
Sören Weber
1250bf30a8
theme: simplify additional JS dependencies #682 2023-10-09 17:42:51 +02:00
Sören Weber
394ff3f7b2
mermaid: improve zoom UX #659 2023-10-01 12:21:29 +02:00
Sören Weber
175b0c8806
mermaid: add pan&zoom reset #651 2023-09-26 22:22:52 +02:00
Sören Weber
e18c213e8c
theme: avoid id collisions between headings and theme #646 2023-09-23 10:18:31 +02:00
Sören Weber
4883af03d4
theme: fix link in deprecation warning #565 2023-09-21 21:54:29 +02:00
Sören Weber
4026fba240
theme: add deprecation warnings #565 2023-06-09 23:42:03 +02:00
Sören Weber
d62e2f7e0e
i18n: full support for RTL #470 2023-02-10 00:34:47 +01:00
Sören Weber
6b96c2d662
variant: add support for prefers-color-scheme #445 2023-02-04 22:33:27 +01:00
Sören Weber
5f7df12b88
mermaid: remove jQuery #452 2023-02-04 01:54:13 +01:00
Sören Weber
f2bfdce1d9
lightbox: switch to CSS-only solution #451 2023-01-29 11:21:52 +01:00
Sören Weber
864c66b6c6
#search: IE11 compatibility #386 2022-11-18 09:02:39 +01:00
Sören Weber
8b8814d696
search: add dedicated search page #386 2022-11-17 22:12:18 +01:00
Sören Weber
1c251f0790
theme: reduce calls to output-format.hugo III #380 2022-11-13 10:55:17 +01:00