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
b16c0c861f
Migrate CSS files to SASS to prepare for dark mode
2021-10-16 16:23:23 +02:00
Philipp Oppermann
5155e18ba1
Use Iosevka font for code blocks and inline code
...
The advantage of Iosevka is its narrow width that allows us to show more columns in code examples without reducing font size.
2021-10-16 15:51:47 +02:00
Philipp Oppermann
5654201a09
Add note above comments and link to GitHub discussion
2021-10-16 15:20:12 +02:00
Philipp Oppermann
a46c20ef93
Switch comments from utterances to giscus
...
to use GitHub discussions instead of issues for comment threads.
2021-06-12 16:12:38 +02:00
Philipp Oppermann
d4034ee3d9
Add some margin between list items of status updates
2021-02-08 10:46:17 +01:00
Hamid R. K. Pishghadam
fad609f744
Fix wrong translations and add font for Persian
2021-01-03 20:53:29 +03:30
Hamid R. K. Pishghadam
68d12a7839
Fix layout or rtl in homepage and tables ( #896 )
2021-01-02 17:21:24 +01:00
Philipp Oppermann
b6ff79ac32
Remove unused font-face
2020-12-30 15:39:06 +01:00
Philipp Oppermann
85d97bd362
Fix font-family for code blocks in first edition
2020-12-30 15:38:17 +01: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
8fd8e42490
Remove margins in language selector list
2020-11-11 13:16:40 +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
Hamid Reza
caecc2c98e
Adding Right-to-Left support for template ( #875 )
2020-11-01 10:54:57 +01:00
Philipp Oppermann
f8f9a02d56
Updates in March 2020
2020-04-01 14:49:18 +02:00
Philipp Oppermann
fe0c8ccb0c
Add job seeking note
2020-03-26 17:02:01 +01:00
Philipp Oppermann
752accdd33
Explain how to work with futures and introduce async/await
2020-03-26 13:41:25 +01:00
Philipp Oppermann
6b76338407
Add a .gray css class for making things gray
2020-03-02 11:41:41 +01:00
Philipp Oppermann
acea700708
Fix overlap of 'All Posts' and ToC; add comments to ToC
...
The 'All Posts' link used to overlap with the table of contents at the end of a post. This occured because the ToC is sticky to the `main` block, so it scrolled up before the `comments` section. The 'All Post' link, however, is fixed, so it does not scroll up.
This commit fixes the issue by moving the comment block to the main block (from the after_main block). This way, the ToC stays visible in the comment section. We also add the comment section to the ToC.
2020-02-25 14:26:41 +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
8ff09b3a62
Add hidden language selector to front page and post pages
2020-02-17 14:51:51 +01:00
Philipp Oppermann
ea3e89dd00
Select front page aside by class page-aside-right instead of id recent-updates
2020-02-17 14:51:19 +01:00
Philipp Oppermann
db69d016a9
Add metadata to translations and list translators
2020-02-17 12:04:12 +01:00
Philipp Oppermann
7124ce742f
Merge branch 'master' into translations
2020-02-17 10:38:43 +01:00
Philipp Oppermann
9924ed0b13
Add styling for upcoming multitasking chapter
2020-02-11 10:31:44 +01:00
Philipp Oppermann
78f55a701f
Use for loop on index page instead of hardcoding post numbers
2020-02-11 10:29:48 +01:00
Maxim Zholobak
423ab3fa68
Make active section link more discreet ( #734 )
2020-01-31 16:20:13 +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
e2ea963d5d
Make 'All Posts' link fixed
...
Fixes #731
2020-01-31 12:12:54 +01:00
Philipp Oppermann
60ce0e0cd4
Show translated content directly on index page ( #693 )
...
instead of only providing a 'Community Translation' link
2019-12-19 13:31:12 +01:00
Philipp Oppermann
b31b2af58b
Merge branch 'master' into translations
2019-12-18 12:13:47 +01:00
Philipp Oppermann
bf5e2cf4dc
Use <h1> instead of <h2> for 'Recent Updates'/'Repository'
2019-12-13 12:36:35 +01:00
Philipp Oppermann
a1020cde7d
Show links to community translated posts
2019-11-27 15:34:54 +01:00
Philipp Oppermann
8e0d70da8b
Add a sponsor link to github box on front page
2019-10-18 14:58:26 +02:00
Philipp Oppermann
7ae2489153
Factor out support text into template and add it to pages too
2019-10-06 13:59:30 +02:00
Philipp Oppermann
78f014e74b
Rewrite support section on frontpage; mention GitHub sponsors
2019-10-06 13:51:46 +02:00
Philipp Oppermann
2b78ad44be
Revert "CSS: Improve formatting of list elements"
...
This reverts commit bfab946078 .
2019-06-21 12:40:13 +02:00
Philipp Oppermann
bfab946078
CSS: Improve formatting of list elements
2019-06-19 16:45:01 +02:00
Philipp Oppermann
572ff8fff6
Apply special formatting for code blocks in headings
2019-06-17 17:52:33 +02:00
Philipp Oppermann
361ba0c32b
Add a GitHub style repository card on index page ( #620 )
2019-06-15 12:30:11 +02:00
Joseph Richey
1ebe869e0e
Always use spaces for code (if possible) ( #609 )
...
Almost all the code in the blog uses spaces instead of tabs.
This change fixes 3 places where there was inconsistancy.
This was causing some of the content to appear misaligned.
Now tabs are only used in:
- Makefiles
- Dockerfiles
- Command output (from `objdump` and `diff`) containing tabs
- `.fish` files
2019-05-12 14:39:31 +02:00