Commit Graph

195 Commits

Author SHA1 Message Date
Philipp Oppermann
ec1f80416b Make chapters sections to avoid rendering them
Instead of redirecting the chapter pages to a 404 site.
2021-01-07 20:07:43 +01:00
Philipp Oppermann
2e52b681ec Move edition info to subtitle for third edition 2021-01-03 15:22:54 +01:00
Philipp Oppermann
8fbdf53598 Increase margin after chapter introduction 2021-01-03 15:16:07 +01:00
Philipp Oppermann
cd7ac05395 Remove comments for old status update pages
New status updates are published on rust-osdev.com and there were only very few comments on the old posts, so that it's not worth keeping them.
2021-01-03 15:04:34 +01:00
Philipp Oppermann
d56f51a2d3 Move macros
Each edition now has their own macros, so create a macros.html for the third edition too. Since the utterances theme differs between editions, we need to move it from snippets.html to the edition-specific macros.html too.
2021-01-03 15:03:49 +01:00
Philipp Oppermann
ae4c53fa75 Merge branch 'master' into edition-3 2021-01-03 14:48:32 +01:00
Philipp Oppermann
d2daf9dc48 Move section template to edition-2 subfolder 2021-01-02 18:11:07 +01:00
Philipp Oppermann
5a86a715c9 Move introduction from index template to markdown file
To allow translations.
2021-01-02 18:09:47 +01:00
Philipp Oppermann
aa227c7dc6 Restructure macros
- Split macros.html in per-edition files
- Create new snippets.html macro file with utterances snippet
- Move support.html to snippets.html as new macro
- Create new `latest_post` macro in 2nd edition macros.html
2021-01-02 18:09:06 +01:00
Hamid R. K. Pishghadam
68d12a7839 Fix layout or rtl in homepage and tables (#896) 2021-01-02 17:21:24 +01:00
Philipp Oppermann
3dfc7ee84f Use translations list instead of constructing links manually on index pages 2020-12-30 18:52:03 +01:00
Philipp Oppermann
b5bd0296bd Add icons to posts 2020-12-30 18:14:17 +01:00
Philipp Oppermann
5e3062407f Link to second and first edition from index page 2020-12-30 16:08:06 +01:00
Philipp Oppermann
fd623fd033 Add '(Second Edition)' to second edition title 2020-12-30 16:07:48 +01:00
Philipp Oppermann
73b42d4747 Add redirect-to-404 template (needed for chapter pages) 2020-12-28 20:48:10 +01:00
Philipp Oppermann
300a6f452a Implement a switch for switching between light and dark mode 2020-12-28 20:47:17 +01:00
Philipp Oppermann
5c3015acc3 Display posts of chapter as list 2020-12-28 19:48:47 +01:00
Philipp Oppermann
b353866952 Set chapter title separately
We avoid the anchor link on mouse-over this way.
2020-12-16 20:23:48 +01:00
Philipp Oppermann
50683507da Clarify on index page that 3rd edition is an alpha release 2020-12-16 20:21:54 +01:00
Philipp Oppermann
60a0b3bc28 Create an initial style for 3rd edition with dark mode support 2020-12-16 20:18:22 +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
19bf93a59d Use languages names in language list 2020-11-11 13:31:04 +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
b17b3d40da GitHub no longer matches sponsorships, but they still charge no fees 2020-10-31 21:27:49 +01:00
Philipp Oppermann
80136cc047 Update to zola v0.12.1 (#861) 2020-09-27 15:56:13 +02:00
Philipp Oppermann
00ebabddc2 Add an 'about me' block in the sidebar 2020-09-07 12:24:04 +02:00
Philipp Oppermann
f198d45a59 Update to Zola 0.11.0 2020-08-19 09:55:16 +02:00
Philipp Oppermann
e80864b64d Add a note on translation pages that English comments are preferred 2020-08-13 18:00:41 +02:00
Yuki Okushi
3cdf51aaca Fix minor issues 2020-08-05 10:07:12 +09:00
Philipp Oppermann
4cde35b674 Link to actual post, not the pull request 2020-07-17 19:48:37 +02:00
Philipp Oppermann
68b2b7737b Link 'This Month in Rust OSDev' posts in status updates section 2020-07-17 19:00:27 +02:00
Philipp Oppermann
e46d1f3455 Fix RSS link in <head> 2020-04-10 11:55:19 +02:00
Philipp Oppermann
a947956616 Add link tag for RSS feed 2020-04-07 15:42:14 +02:00
Philipp Oppermann
a237cd2777 Truncate description of extra pages to 150 characters 2020-04-02 10:34:18 +02:00
Philipp Oppermann
f13fc3062a Remove duplicated <h1> tags on first edition index 2020-04-02 10:32:41 +02:00
Philipp Oppermann
74969cd1be Move toc_aside out of <main>
This way, we avoid that the table of contents is picked for link previews by third-party sites.
2020-03-27 18:02:46 +01:00
Philipp Oppermann
e061557eea Use <h2> for site title for first edition too 2020-03-11 13:51:22 +01:00
Philipp Oppermann
368b5445e4 Update 'thank you' text 2020-03-02 11:41:53 +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
0619f3a9e7 Convert all external links to https (if supported) 2020-02-21 11:53:34 +01:00
Philipp Oppermann
361108b88e Move language selector to the top 2020-02-21 11:29:11 +01:00
Philipp Oppermann
b03a368191 Truncate site description to 150 characters
According to the Bing webmaster tools, this is recommended for SEO.
2020-02-21 11:24:45 +01:00
Philipp Oppermann
516bc38b2b Ensure that each page only has a single <h1>
According to Bing's webmaster tool multiple <h1> tags on a site are a SEO problem.
2020-02-21 11:17:31 +01:00
Philipp Oppermann
0195d2ec43 Don't escape permalink; emit less newlines 2020-02-17 15:07:43 +01:00
Philipp Oppermann
cc27cf5c24 Only emit language selector on pages that have translations 2020-02-17 15:07:09 +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