Commit Graph

191 Commits

Author SHA1 Message Date
Philipp Oppermann
c7743a23ed Move comments_notice on translated posts to end of comments 2021-06-12 17:11:25 +02:00
Philipp Oppermann
afb20aae74 Use original English title for mapping discussions to translated posts 2021-06-12 17:07:48 +02:00
Philipp Oppermann
27b1528a65 giscus: Append page lang code to search term for translated posts 2021-06-12 17:02:23 +02:00
Philipp Oppermann
963eb3e659 Make it possible to set discussion thread manually per post 2021-06-12 16:52:18 +02:00
Philipp Oppermann
47292beaad giscus: Use specific search term instead of og:title
This makes us more flexible and gives us ways to avoid title collisions (e.g. when the title on an extra post is a substring of some post title).
2021-06-12 16:35:20 +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
54ca8bbe67 Update copyright year in footer 2021-05-17 16:03:08 +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
f60883071e Fix typo and wrong indention using tabs 2021-01-04 17:50:02 +03:30
Hamid R. K. Pishghadam
f779303472 Add translation for post warning and some minor fix 2021-01-03 21:52:56 +03:30
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
478b4cb808 using trans for most common short texts 2021-01-03 19:00:14 +03:30
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
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
Philipp Oppermann
9e5e3fba16 Remove some more whitespace to minimize diff 2020-02-17 11:39:24 +01:00
Philipp Oppermann
0e3635f98b Remove some excessive newlines from generated HTML 2020-02-17 11:30:50 +01:00
Philipp Oppermann
127f446856 Don't show 'not translated yet' for default language 2020-02-17 11:30:47 +01:00
Philipp Oppermann
f6867a914e Don't show 'not translated yet' message on english site 2020-02-17 11:01:25 +01:00