From f60883071e730e19ed343cf3e1a0ca762fe37e3c Mon Sep 17 00:00:00 2001 From: "Hamid R. K. Pishghadam" Date: Mon, 4 Jan 2021 17:50:02 +0330 Subject: [PATCH] Fix typo and wrong indention using tabs --- blog/config.toml | 18 +++++++++--------- blog/templates/edition-2/macros.html | 4 ++-- blog/templates/edition-2/page.html | 22 +++++++++++----------- 3 files changed, 22 insertions(+), 22 deletions(-) diff --git a/blog/config.toml b/blog/config.toml index cb01af48..39b4f507 100644 --- a/blog/config.toml +++ b/blog/config.toml @@ -42,9 +42,9 @@ comments_notice = "Please leave your comments in English if possible." readmore = "read more »" not_translated = "(This post is not translated yet.)" translated_content = "Translated Content:" -translated_content_notice = "This is a community translation of the {{ original.title }} post. It might be incomplete, outdated or contain errors. Please report any issues!" +translated_content_notice = "This is a community translation of the _original.title_ post. It might be incomplete, outdated or contain errors. Please report any issues!" translated_by = "Translation By" -word_seprator = "and" +word_separator = "and" [translations.zh-CN] lang_name = "Chinese (simplified)" @@ -55,9 +55,9 @@ comments_notice = "Please leave your comments in English if possible." readmore = "read more »" not_translated = "(This post is not translated yet.)" translated_content = "Translated Content:" -translated_content_notice = "This is a community translation of the {{ original.title }} post. It might be incomplete, outdated or contain errors. Please report any issues!" +translated_content_notice = "This is a community translation of the _original.title_ post. It might be incomplete, outdated or contain errors. Please report any issues!" translated_by = "Translation By" -word_seprator = "and" +word_separator = "and" [translations.zh-TW] lang_name = "Chinese (traditional)" @@ -68,9 +68,9 @@ comments_notice = "Please leave your comments in English if possible." readmore = "read more »" not_translated = "(This post is not translated yet.)" translated_content = "Translated Content:" -translated_content_notice = "This is a community translation of the {{ original.title }} post. It might be incomplete, outdated or contain errors. Please report any issues!" +translated_content_notice = "This is a community translation of the _original.title_ post. It might be incomplete, outdated or contain errors. Please report any issues!" translated_by = "Translation By" -word_seprator = "and" +word_separator = "and" [translations.ja] lang_name = "Japanese" @@ -81,9 +81,9 @@ comments_notice = "Please leave your comments in English if possible." readmore = "read more »" not_translated = "(This post is not translated yet.)" translated_content = "Translated Content:" -translated_content_notice = "This is a community translation of the {{ original.title }} post. It might be incomplete, outdated or contain errors. Please report any issues!" +translated_content_notice = "This is a community translation of the _original.title_ post. It might be incomplete, outdated or contain errors. Please report any issues!" translated_by = "Translation By" -word_seprator = "and" +word_separator = "and" [translations.fa] lang_name = "Persian" @@ -96,4 +96,4 @@ not_translated = "(این پست هنوز ترجمه نشده است.)" translated_content = "محتوای ترجمه شده:" translated_content_notice = "این یک ترجمه از جامعه کاربران برای پست _original.title_ است. ممکن است ناقص ، منسوخ شده یا دارای خطا باشد. لطفا هر گونه مشکل را گزارش دهید!" translated_by = "ترجمه توسط" -word_seprator = "و" +word_separator = "و" diff --git a/blog/templates/edition-2/macros.html b/blog/templates/edition-2/macros.html index 3362b58c..abfca9e9 100644 --- a/blog/templates/edition-2/macros.html +++ b/blog/templates/edition-2/macros.html @@ -15,7 +15,7 @@

{{ post.title }}

{{ post.summary | safe }} - {{ trans(key="readmore", lang=lang) | safe }} + {{ trans(key="readmore", lang=lang) | safe }} {%- if lang and not_translated and lang != config.default_language -%}
{% endif %} -
+
{{ page.content | replace(from="", to=macros::toc(toc=page.toc)) | safe }}
@@ -98,7 +98,7 @@ {%- if page.lang != "en" %}

- {{ trans(key="comments_notice", lang=lang) }} + {{ trans(key="comments_notice", lang=lang) }}

{% endif %} @@ -124,9 +124,9 @@

About Me

- I'm a Rust freelancer with a master's degree in computer science. I love systems programming, open source software, and new challenges. + I'm a Rust freelancer with a master's degree in computer science. I love systems programming, open source software, and new challenges.

- If you want to work with me, reach out on LinkedIn or write me at job@phil-opp.com. + If you want to work with me, reach out on LinkedIn or write me at job@phil-opp.com.