Commit graph

75 commits

Author SHA1 Message Date
Sören Weber
e9cf2a8580
security: fix XSS for malicioius image URLs #117 2021-10-12 16:32:45 +02:00
Sören Weber
2117fefe62
security: fix XSS for malicioius URLs #114 2021-10-08 19:30:27 +02:00
Sören Weber
3224bfb1a3
theme: fix sticky header to remove horizontal scrollbar #82
HTML5 solution; sorry IE11
2021-09-23 21:25:45 +02:00
Sören Weber
b5e90f03dd
theme: ensure IE11 compatiblity #89 2021-09-13 21:09:44 +02:00
Sören Weber
65cb38aec3
theme: use <main> #88 2021-09-13 19:28:16 +02:00
Sören Weber
2fcaac5d0b
theme: fix usage of <section> #88 2021-09-13 19:28:16 +02:00
Sören Weber
c5382e0bcc
theme: fix showVisitedLinks in case Hugo is configured to modify relative URLs #86 2021-09-09 21:03:37 +02:00
Sören Weber
b75b8572c5
menu: avoid console log on landing page #79 2021-09-05 23:40:20 +02:00
Sören Weber
d53fc18c2b
search: open expand if it contains search term #80 2021-09-04 12:05:15 +02:00
Sören Weber
1c6d9538a3
menu: scroll active item into view #79 2021-09-04 11:09:38 +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
b29f1ce055
theme: adjust leading whitespace and superflous lines 2021-08-24 00:23:52 +02:00
Sören Weber
de7b3d8056
theme: remove typos and superflous whitespace 2021-08-23 23:51:52 +02:00
Sören Weber
5c667b3d07
code highligher: switch to standard hugo highlighter #32
Since a while, Hugo has its own mechanism for code highlightning.

We remove the old highlightning code provided by the client-side javascript library highlight.js and all its related files.

This also solves issues introduced by Hugos own highlightning because in our theme we are currently highlighting the code twice leading to unpredictiable results.

This will also fix an issue were light code highlightning themes weren't displayed correctly because our styles are overwriting color information.

Another advantage is the huge list of supported languages which by far exceeds our current list.

On the downside, this is a breaking change because our current color theme isn't supported by Hugo.
2021-07-26 11:50:34 +02:00
Sören Weber
6fb5852643
maintenance: upgrade jquery to 3.6.0 #30
Because of a jquery security vulnerability, we are upgrading to the latest version 3.6.0

https://blog.jquery.com/2020/04/10/jquery-3-5-0-released/

Depending on the site content, there may be issues with self-closing tags that are allowed to have content like `div` or `span`. See https://jquery.com/upgrade-guide/3.5/
2021-07-25 22:33:18 +02:00
Sören Weber
541a634f6e
theme: adjust copy-to-clipboard #29
Copy to clipboard has a lot of smaller issues:

- contrast for inline code is bad in notice boxes
- bordering the icon does not work well with bordering of inline code
- hover color on inline code icon is blurred
- hover color on block code is statically set to link color of standard theme

And related to that:

- tooltip misses outline border, especially when displayed over dark background (like block code)
- inline code font size is sized by factor of parent font size, which is a hassle if you want to replicate the size for other elements
2021-07-25 22:09:45 +02:00
Sören Weber
1b06d27608
pan and zoom for mermaid graphs #9 2021-07-02 23:01:38 +02:00
Sören Weber
8a53387a81
upgrade mermaid to 8.10.2 and relocate #7 2021-07-02 22:24:44 +02:00
Sören Weber
6b7779dac5
merge theme js scripts into one file and fix mermaid init #5 2021-07-02 21:58:16 +02:00
Sören Weber
b52a263979
Only highlight text in HTML elements #10 2021-07-02 17:53:07 +02:00
Sören Weber
aad4bf26e1
Change mermaid initialization to support code fences #6 2021-07-02 17:38:58 +02:00
Sören Weber
c108d677b4 Rebranding to new theme name
- Rename theme from "Learn" to "Relearn"
- also change URLs
- remove old references
- more removal of french and chinese
2021-06-30 14:56:06 +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
Swen Wenzel
0b5bb6e7b3
Implement tab views (#386)
Tab views from @swenzel
2021-03-16 17:21:57 +00:00
Adam Snyder
21a3f77b14
Remove code that adjusts navigation margin (#419) 2020-09-10 17:21:20 +01:00
Matthew Taylor
8349d619a5 Apply updated highlight.js 10.0.3 (a4b1bd2d) 2020-06-01 14:59:19 +01:00
Jared Stehler
54b373f350 fix null pointer when no params on image url 2020-06-01 13:00:37 +01:00
Jian
3ea5bca755 Added flag to turn off image featherlight 2020-02-01 22:58:17 +00:00
Christian Oliff
c8b5c2e176
change to minified autocomplete for improved performance
from:  https://github.com/Pixabay/JavaScript-autoComplete/blob/master/auto-complete.min.js
2019-08-12 10:31:28 +09:00
Christian Oliff
3c4599428e Delete html5shiv-printshiv.min.js 2019-08-12 01:03:44 +01:00
Matthew Taylor
258877709c Remove oudated versions of jquery & modernizr libraries 2019-04-16 18:47:14 +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
Massimeddu Cireddu
426ad13f85 Update hugo-learn.js 2019-03-15 16:03:59 +00:00
Massimeddu Cireddu
16782b2425 Render the ```mermaid blocks into graphs 2019-03-15 16:03:59 +00:00
Ryan Nixon
ef2ab7ad8a
Preventing left/right arrow key navigation in textareas 2019-02-15 10:11:16 -08:00
Mathieu Cornic
43d05a81ac
Merge pull request #208 from coliff/patch-3
Update html5shiv-printshiv.min.js
2018-12-22 17:20:38 +01:00
Shelane French
d03bc79a78
prevents left and right keydown in input fields
If input field is in focus, keydown event to trigger navigation change should
not fire. User should expect cursor to stay in input field when using arrow keys.
2018-12-20 19:22:04 -08:00
Christian Oliff
fdaf35b72c
Update html5shiv-printshiv.min.js
Update to final version:
https://github.com/aFarkas/html5shiv/blob/master/dist/html5shiv-printshiv.min.js
2018-12-14 00:11:03 +09:00
John.Allen2
e92b794700 xss fix 2018-10-11 08:47:20 -05:00
Matthew Taylor
cca7fdeeb0 Modify fontawesome selectors for v5.x 2018-02-19 16:33:30 +00:00
Alex Vargas Benamburg
d67055469d fix: no wrap images that already wrapped 2018-01-22 23:33:14 -06:00
matcornic
6562adeb7b fix #83 no Title and Edit this page text when on mobile + fixed top bar width pbm on resize by switching to sticky.js instead of sticky-kit 2017-11-23 19:46:56 +01:00
kamar535
377f63e9b0 Don't add class highlight to footnote links 2017-11-23 16:16:14 +01:00
Ryan McGuire
ff5ef7c020 Replace horsey with Pixabay's autocomplete (#75) 2017-09-28 18:47:26 +02:00