Commit graph

43 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
348702d8c2
theme: apply Prettier config #947 2024-11-15 23:38:25 +01:00
Sören Weber
24726ef4b0
search: index file rename #888 2024-10-11 16:45:34 +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
77ed3f431a
theme: fixing typos #581 2024-04-12 17:30:31 +02:00
Sören Weber
2c8cf85ea1
a11y: improve search box #821 2024-04-04 17:49:28 +02:00
Sören Weber
c5ca529817
[theme] introduce relBaseUri #813 2024-03-18 21:58:53 +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
7622913ac2
search: add breadcrumb to dedicated search results #647 2023-09-24 00:27:39 +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
e6b50128e4
theme: fix snyk code issues #633 2023-08-31 12:34:23 +02:00
Sören Weber
09e7aebcd8
nav: fix initial positioning on content pages #476 2023-02-12 14:10:55 +01:00
Sören Weber
c7a819323a
nav: restore scroll position on browser back #476 2023-02-12 09:35:50 +01:00
Sören Weber
d1fcf21461
global: remove jQuery #452 2023-02-03 23:35:16 +01:00
Sören Weber
6659d841ab
i18n: mention no support for Czech in Lunr #455 2023-01-30 17:59:28 +01:00
Sören Weber
a95d86c03c
search: remove jQuery #452 2023-01-29 23:58:43 +01:00
Sören Weber
7c6a48f6c6
search: remove jQuery #452 2023-01-29 17:04:20 +01:00
Sören Weber
9c1233d9e3
search: long search terms causing browser freeze #408 2022-11-29 19:25:40 +01:00
Sören Weber
8aeb69fa56
search: make build and js forgiving against config errors #400 2022-11-20 23:00:40 +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
dd44547a10
search: improve keyboard handling #387 2022-11-17 17:29:01 +01:00
Sören Weber
01cfcfe67b
theme: allow to be served by file:// protocol #349 2022-11-02 00:14:19 +01:00
Sören Weber
666d4d3251
i18n: support multilang content #271 2022-06-12 19:24:27 +02:00
Sören Weber
c7b2eee5a6
i18n: fix search for cyrillic #269 2022-06-12 14:05:01 +02:00
Sören Weber
cba76c3f41
search: make dropdown stick to search field when scrolling #155 2021-11-16 01:16:31 +01:00
Sören Weber
b5e90f03dd
theme: ensure IE11 compatiblity #89 2021-09-13 21:09:44 +02:00
Helder Pereira
a8cb285899 Improve search logic 2021-08-29 16:13:07 +01:00
Helder Pereira
98ccdc2bd6 Improve search context preview 2021-08-29 16:12:02 +01:00
Helder Pereira
4e08a7b5a4 Make search pages lookup constant time 2021-08-29 16:11:11 +01:00
Helder Pereira
00e6ca63bc Format search.js 2021-08-29 16:03:04 +01:00
Helder Pereira
fa84d305f4 Register focus event in the search text input 2021-08-25 20:48:01 +01:00
Helder Pereira
2edbf2645c Fix search with relativeURLs 2021-08-24 23:36:26 +01:00
Sören Weber
de7b3d8056
theme: remove typos and superflous whitespace 2021-08-23 23:51:52 +02:00
Sandro Gauci
d198cbe65f
fix potential XSS in search (#492)
mostly it looks like a self-XSS but still good to fix
2021-04-01 00:48:33 +01:00
ozobi
18212e6759 Update search.js
fixed indent
2019-04-01 22:31:07 +01:00
ozobi
c5033d3ee6 update js
highlightJS -> https://highlightjs.org/download/ => update with desired languages, default: https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.14.2/highlight.min.js
modernizr -> https://modernizr.com/download/?csstransforms3d-domprefixes-prefixes-setclasses-shiv-testallprops-testprop-teststyles
lunrJS -> https://cdnjs.cloudflare.com/ajax/libs/lunr.js/2.3.5/lunr.min.js
clipboard -> https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.4/clipboard.min.js
jquery -> https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js
featherlight -> https://cdnjs.cloudflare.com/ajax/libs/featherlight/1.7.13/featherlight.min.js
search.js -> updated for lunrJS 2.3.5
learn.js -> updated for clipboard
2019-04-01 22:31:07 +01:00
Ryan McGuire
ff5ef7c020 Replace horsey with Pixabay's autocomplete (#75) 2017-09-28 18:47:26 +02:00
matcornic
b2ac8298bf feat: support of Hugo 0.22+ #51 #48 #11 #50 2017-08-20 23:43:44 +02:00
Leclerc Gwendal
656a8b391f fix: add baseUrl to lunr suggestions href 2016-10-26 11:09:28 +02:00
Leclerc Gwendal
4218d1a27d feat: extract search out of header + use baseurl to search json index + add a step to explain how to use lunr-hugo + update perfect-scrollbar 2016-10-25 20:26:19 +02:00
Leclerc Gwendal
363bb68e42 feat: configure lunr, extract inline javascript in search.js and fix horsey popup position 2016-10-25 20:26:19 +02:00