diff --git a/blog/config.toml b/blog/config.toml index ca8230fb..e852ede4 100644 --- a/blog/config.toml +++ b/blog/config.toml @@ -49,6 +49,13 @@ translated_content_notice = "This is a community translation of the Support Me +

Creating and maintaining this blog and the associated libraries is a lot of work, but I really enjoy doing it. By supporting me, you allow me to invest more time in new content, new features, and continuous maintenance. The best way to support me is to sponsor me on GitHub. Thank you!

+""" +comment_note = """ +Do you have a problem, want to share feedback, or discuss further ideas? Feel free to leave a comment here! Please stick to English and follow Rust's code of conduct. This comment thread directly maps to a discussion on GitHub, so you can also comment there if you prefer. +""" # Chinese (simplified) [languages.zh-CN] @@ -67,6 +74,13 @@ translated_content_notice = "这是对原文章 Support Me +

Creating and maintaining this blog and the associated libraries is a lot of work, but I really enjoy doing it. By supporting me, you allow me to invest more time in new content, new features, and continuous maintenance. The best way to support me is to sponsor me on GitHub. Thank you!

+""" +comment_note = """ +Do you have a problem, want to share feedback, or discuss further ideas? Feel free to leave a comment here! Please stick to English and follow Rust's code of conduct. This comment thread directly maps to a discussion on GitHub, so you can also comment there if you prefer. +""" # Chinese (traditional) [languages.zh-TW] @@ -85,6 +99,13 @@ translated_content_notice = "這是對原文章 Support Me +

Creating and maintaining this blog and the associated libraries is a lot of work, but I really enjoy doing it. By supporting me, you allow me to invest more time in new content, new features, and continuous maintenance. The best way to support me is to sponsor me on GitHub. Thank you!

+""" +comment_note = """ +Do you have a problem, want to share feedback, or discuss further ideas? Feel free to leave a comment here! Please stick to English and follow Rust's code of conduct. This comment thread directly maps to a discussion on GitHub, so you can also comment there if you prefer. +""" # Japanese [languages.ja] @@ -103,6 +124,13 @@ translated_content_notice = "この記事はSupport Me +

Creating and maintaining this blog and the associated libraries is a lot of work, but I really enjoy doing it. By supporting me, you allow me to invest more time in new content, new features, and continuous maintenance. The best way to support me is to sponsor me on GitHub. Thank you!

+""" +comment_note = """ +Do you have a problem, want to share feedback, or discuss further ideas? Feel free to leave a comment here! Please stick to English and follow Rust's code of conduct. This comment thread directly maps to a discussion on GitHub, so you can also comment there if you prefer. +""" # Persian [languages.fa] @@ -121,6 +149,13 @@ translated_content_notice = "این یک ترجمه از جامعه کاربرا translated_by = "ترجمه توسط" translation_contributors = "With contributions from" word_separator = "و" +support_me = """ +

Support Me

+

Creating and maintaining this blog and the associated libraries is a lot of work, but I really enjoy doing it. By supporting me, you allow me to invest more time in new content, new features, and continuous maintenance. The best way to support me is to sponsor me on GitHub. Thank you!

+""" +comment_note = """ +Do you have a problem, want to share feedback, or discuss further ideas? Feel free to leave a comment here! Please stick to English and follow Rust's code of conduct. This comment thread directly maps to a discussion on GitHub, so you can also comment there if you prefer. +""" # Russian [languages.ru] @@ -139,6 +174,13 @@ translated_content_notice = "Это перевод сообщества пост translated_by = "Перевод сделан" translation_contributors = "With contributions from" word_separator = "и" +support_me = """ +

Support Me

+

Creating and maintaining this blog and the associated libraries is a lot of work, but I really enjoy doing it. By supporting me, you allow me to invest more time in new content, new features, and continuous maintenance. The best way to support me is to sponsor me on GitHub. Thank you!

+""" +comment_note = """ +Do you have a problem, want to share feedback, or discuss further ideas? Feel free to leave a comment here! Please stick to English and follow Rust's code of conduct. This comment thread directly maps to a discussion on GitHub, so you can also comment there if you prefer. +""" # French [languages.fr] @@ -157,6 +199,13 @@ translated_content_notice = "Ceci est une traduction communautaire de l'article translated_by = "Traduit par : " translation_contributors = "With contributions from" word_separator = "et" +support_me = """ +

Support Me

+

Creating and maintaining this blog and the associated libraries is a lot of work, but I really enjoy doing it. By supporting me, you allow me to invest more time in new content, new features, and continuous maintenance. The best way to support me is to sponsor me on GitHub. Thank you!

+""" +comment_note = """ +Do you have a problem, want to share feedback, or discuss further ideas? Feel free to leave a comment here! Please stick to English and follow Rust's code of conduct. This comment thread directly maps to a discussion on GitHub, so you can also comment there if you prefer. +""" # Korean [languages.ko] @@ -175,3 +224,10 @@ translated_content_notice = "이것은 커뮤니티 멤버가 Support Me +

Creating and maintaining this blog and the associated libraries is a lot of work, but I really enjoy doing it. By supporting me, you allow me to invest more time in new content, new features, and continuous maintenance. The best way to support me is to sponsor me on GitHub. Thank you!

+""" +comment_note = """ +Do you have a problem, want to share feedback, or discuss further ideas? Feel free to leave a comment here! Please stick to English and follow Rust's code of conduct. This comment thread directly maps to a discussion on GitHub, so you can also comment there if you prefer. +""" diff --git a/blog/templates/edition-2/index.html b/blog/templates/edition-2/index.html index e367d819..d5362f03 100644 --- a/blog/templates/edition-2/index.html +++ b/blog/templates/edition-2/index.html @@ -61,8 +61,7 @@
-

Support Me

- {{ snippets::support() }} + {{ trans(key="support_me", lang=lang) | safe }}
{% endblock main %} diff --git a/blog/templates/edition-2/page.html b/blog/templates/edition-2/page.html index dfe8b93e..22c48040 100644 --- a/blog/templates/edition-2/page.html +++ b/blog/templates/edition-2/page.html @@ -91,8 +91,7 @@
diff --git a/blog/templates/snippets.html b/blog/templates/snippets.html index 8fbd031b..0fbeb7c5 100644 --- a/blog/templates/snippets.html +++ b/blog/templates/snippets.html @@ -1,15 +1,3 @@ -{% macro support() %} -

- Creating and maintaining this blog and the associated libraries is a lot of work, but I really enjoy doing it. By supporting me, you allow me to invest more time in new content, new features, and continuous maintenance. -

-

- The best way to support me is to sponsor me on GitHub, since they don't charge any fees. If you prefer other platforms, I also have Patreon and Donorbox accounts. The latter is the most flexible as it supports multiple currencies and one-time contributions. -

-

- Thank you! -

-{% endmacro support %} - {% macro giscus(search_term, lang) %} {% if lang != "en" %} {% set category = "Post Comments (translated)" %} @@ -29,7 +17,7 @@ {% endif %}

- Do you have a problem, want to share feedback, or discuss further ideas? Feel free to leave a comment here! Please stick to English and follow Rust's code of conduct. This comment thread directly maps to a discussion on GitHub, so you can also comment there if you prefer. + {{ trans(key="comment_note", lang=lang) | replace(from="_discussion_url_", to=discussion_url) | safe }}