Enable translations of the 'Support Me' section

This commit is contained in:
Philipp Oppermann
2024-02-08 19:27:16 +01:00
parent 71e5ea0268
commit 3eeb25c946
4 changed files with 34 additions and 16 deletions

View File

@@ -61,8 +61,7 @@
</div>
<div class="">
<h2>Support Me</h2>
{{ snippets::support() }}
{{ trans(key="support_me", lang=lang) | safe }}
</div>
{% endblock main %}

View File

@@ -91,8 +91,7 @@
</div>
<div class="post-footer-support{% if page.extra.rtl %} right-to-left{% endif %}">
<h2>Support Me</h2>
{{ snippets::support() }}
{{ trans(key="support_me", lang=lang) | safe }}
</div>
<hr>

View File

@@ -1,15 +1,3 @@
{% macro support() %}
<p>
Creating and <a href="{{ get_url(path="@/status-update/_index.md") }}">maintaining</a> 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.
</p>
<p>
The best way to support me is to <a href="https://github.com/sponsors/phil-opp"><em>sponsor me on GitHub</em></a>, since they don't charge any fees. If you prefer other platforms, I also have <a href="https://www.patreon.com/phil_opp"><em>Patreon</em></a> and <a href="https://donorbox.org/phil-opp"><em>Donorbox</em></a> accounts. The latter is the most flexible as it supports multiple currencies and one-time contributions.
</p>
<p>
Thank you!
</p>
{% endmacro support %}
{% macro giscus(search_term, lang) %}
{% if lang != "en" %}
{% set category = "Post Comments (translated)" %}