Philipp Oppermann
5c750985a6
Wait 500ms before changing giscus theme on load to make sure that it's ready
2021-10-17 18:41:24 +02:00
Philipp Oppermann
d6bf1b2271
Revert "Use onload handler to set giscus theme as soon as it's loaded"
...
This reverts commit 7eb1426e1f .
2021-10-17 18:35:45 +02:00
Philipp Oppermann
7eb1426e1f
Use onload handler to set giscus theme as soon as it's loaded
2021-10-17 18:31:40 +02:00
Philipp Oppermann
0fa31a0e15
Fix: don't assume that light mode is active on initial theme switch
2021-10-17 16:34:59 +02:00
Philipp Oppermann
76b6c445e4
Add a switch for going back to system theme
2021-10-17 15:40:48 +02:00
Philipp Oppermann
69917e234c
Remember chosen theme in localStorage
...
This way, the selected theme is kept when changing pages, and for subsequent visits. To prevent flickering, we set the selected theme in a blocking script directly on load. To speed things up further, we now use a `data-theme` attribute instead of classes on the body tag, this way we don't need to wait until the body element is loaded.
2021-10-17 15:05:11 +02:00
Philipp Oppermann
96ab77fd1e
Implement a switch for switching between light and dark mode
2021-10-17 14:20:08 +02:00
Philipp Oppermann
f692c5b377
Rename second-edition subfolder to `edition-2
2020-12-16 14:56:36 +01:00
Philipp Oppermann
4a9ea6c503
Rename first-edition subfolder to edition-1
2020-12-16 14:38:59 +01:00
Philipp Oppermann
668c903c02
Show all available languages
...
Not just languages enabled in the browser. This makes the translations more discoverable.
2020-11-11 10:29:17 +01:00
Philipp Oppermann
fa5b500751
Remove debug logging from javascript
2020-02-17 15:06:48 +01:00
Philipp Oppermann
6908e297f6
Make language selectors of browser supported languages visible
2020-02-17 14:52:15 +01:00
Philipp Oppermann
b569fcbc25
Fix typo in Javascript comment
2020-01-31 14:19:52 +01:00
Philipp Oppermann
728620b527
Mark active item in table of contents ( #733 )
2020-01-31 14:17:22 +01:00
Philipp Oppermann
6a07fea2d7
Fix ToC resizing
...
The `#toc` id was renamed to `#toc-aside`.
2019-03-20 23:37:56 +01:00
Philipp Oppermann
dae2edfbf5
Let gutenberg generate the table of contents
...
Remove the javascript toc code.
2017-10-05 11:37:23 +02:00
Philipp Oppermann
1530cfe55f
Include javascript table of content
2017-06-13 17:07:36 +02:00
Philipp Oppermann
ce36e25da9
Move everything into a “blog” directory
2017-03-11 12:41:53 +01:00