Commit graph

154 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
39fcbb3283
menu: replace clumsy expand implementation #955
Some checks failed
docs-build-deployment / Run deploy (push) Has been cancelled
docs-build / Run build (push) Has been cancelled
2024-11-30 19:55:14 +01:00
Sören Weber
10fb679d67
menu: support for external links #148 2024-10-24 23:34:42 +02:00
Sören Weber
79b43fcfce
menu: support nested Hugo menus #423 2024-10-22 19:35:28 +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
6b5183481a
theme: wildspace 2024-10-11 16:45:45 +02:00
Sören Weber
c3c032d809
theme: optimize for collapsibleMenu=false and disablePrevNext=true #685 2024-10-11 16:45:44 +02:00
Sören Weber
56c1f6a841
theme: optimize relearn-meta and menu caching #685 2024-10-11 16:45:44 +02:00
Sören Weber
d2c86cc8da
menu: optimize performance #685 2024-10-11 16:45:43 +02:00
Sören Weber
e79541352b
theme: misc stuff #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
Andreas Deininger
f8e36bb08c
FIx deprecation warning 2024-10-11 16:45:34 +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
926bea4727
title: avoid to much dependency on outputFormat #685 2024-07-22 00:15:38 +02:00
Sören Weber
be860ccbf7
theme: misc stuff from optimization finds #685 2024-07-21 23:40:57 +02:00
Sören Weber
fe9d605d57
theme: simplify pagesBy #685 2024-07-21 21:49:53 +02:00
Sören Weber
e8a0d000c3
theme: don't use menuTitle anymore #714 2024-04-26 21:53:26 +02:00
Sören Weber
26724fba2c
theme: remove menuTitle option #714 2024-04-19 00:09:51 +02:00
Sören Weber
195de35cfb
icons: use fixed width to ease layout #812 2024-03-18 17:24:06 +01:00
Sören Weber
567b930220
i18n: find translations #804 2024-03-16 21:47:29 +01:00
Sören Weber
131b3a9a01
openapi: fix theme switch #804 2024-03-16 12:56:56 +01:00
Sören Weber
a94a7fbc23
theme: fix inconsistency between header and menu for basename 2024-02-16 22:30:01 +01:00
Sören Weber
42b604b4fb
i18n: support for languageCode and standard Hugo options #733 2023-11-28 21:31:35 +01:00
Sören Weber
1119b3f9a6
variant: cache variant config #679 2023-11-26 18:11:56 +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
8b0214e9a5
theme: write full file path on warnings #699 2023-10-28 00:36:30 +02:00
Sören Weber
4f1a9b5c7a
menu: more options to sort pages by #684 2023-10-12 23:08:58 +02:00
Sören Weber
df554691ce
theme: fix broken id renaming #646 2023-09-26 22:42:06 +02:00
Sören Weber
09ad8299e7
theme: to much renaming #646 2023-09-23 23:22:16 +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
493e23ebe1
menu: optionally disable index pages for sections #642 2023-09-21 17:23:41 +02:00
Sören Weber
ed1715d467
theme: support for colored borders between menu and content #626 2023-08-25 03:14:09 +02:00
Sören Weber
34b1347acd
build: switch to stable HTML anchors in migration docs #599 2023-07-27 17:47:36 +02:00
Sören Weber
1be79e0b4f
a11y: fix tag nesting in menu #581 2023-07-26 20:36:45 +02:00
Sören Weber
75cdd546e0
a11y: improve outline style for menu controls #581 2023-06-28 18:32:30 +02:00
Sören Weber
4026fba240
theme: add deprecation warnings #565 2023-06-09 23:42:03 +02:00
Sören Weber
77e790885b
menu: fix minor padding of select boxes 2023-02-25 18:58:05 +01:00
Sören Weber
43955d0e20
menu: fix minor HTML valdiation error #466 2023-02-25 11:55:35 +01:00
Sören Weber
c0a1c9cbcb
menu: rebuild collapsible expander #466
because sizing and positioning was a mess;
the follwing things are fixed with this:
- resizes and positions correctly according to html elements font-size
- IE11 compatiblity is now given
- a11y: expander is now correctly given a focus outline
- chevron is now coded into html instead of a css content value, which makes it easier to change (was an issue in the past)
- the visited checkmark now breaks correctly on long lines and hides behind the text if necessary
- some more css classes were introduced to make further extensions (eg. nested shortcut links) easier
2023-02-24 23:29:33 +01: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
1ee561fd77
theme: remove unnessecary reference to sections #434
- code works if simply .Pages is used
- this also fixes ordering issues in the RSS feed
2023-01-22 22:18:09 +01:00
Sören Weber
0c10cc8af3
theme: allow pages on top level #434 2023-01-22 22:16:31 +01:00
Sören Weber
bacbcf2aba
docs: even further adjusting chapter numbers in menu #402 2022-11-23 00:28:24 +01:00
Sören Weber
3624bb38f1
theme: be compatible with Hugo >= 0.95.0 #397 2022-11-19 13:40:26 +01:00