diff --git a/src/_includes/global/macros.njk b/src/_includes/global/macros.njk index d9a1377f..a37f146c 100644 --- a/src/_includes/global/macros.njk +++ b/src/_includes/global/macros.njk @@ -1,13 +1,18 @@ {%- macro modEntry(params) -%} - ### {{ params.title }} -
- Banner of {{ params.title }} mod -

{{ params.desc }}

-

Download the mod:

-
- {%- for download in params.downloads -%} - {{ download.site }} - {%- endfor -%} -
+### {{ params.title }} +
+ Banner of {{ params.title }} mod +

{{ params.desc }}

+

Download the mod:

+
+ {%- for download in params.downloads -%} + {{ download.site }} + {%- endfor -%}
+
+{%- endmacro -%} + +{%- macro siteFeedLink(linkText) -%} + + {{ linkText }} {%- endmacro -%} \ No newline at end of file diff --git a/src/_includes/main/changelogs.njk b/src/_includes/main/changelogs.njk index 70044472..6508777a 100644 --- a/src/_includes/main/changelogs.njk +++ b/src/_includes/main/changelogs.njk @@ -22,7 +22,8 @@ articleElement: true -

To get notified of the updates on this website, you can subscribe to the {{ sitemeta.siteName }} RSS feed, which contains new articles, blog posts and website changelogs.

+{% from "global/macros.njk" import siteFeedLink %} +

To get notified of the updates on this website, you can subscribe to its {{ siteFeedLink("RSS feed") }}, which contains new articles, blog posts and website changelogs.

{{ content | safe }} diff --git a/src/_includes/main/footer.njk b/src/_includes/main/footer.njk index 015b39cd..1a710d64 100644 --- a/src/_includes/main/footer.njk +++ b/src/_includes/main/footer.njk @@ -3,8 +3,9 @@ {% block footerContent %}

Footer Navigation:

{% set currentUrl %}{{ page.url }}{% endset %} + {% from "global/macros.njk" import siteFeedLink %}
-

You can subscribe to the {{ sitemeta.siteName }} RSS feed to get notified of the updates on this website, including new articles, blog posts and website changelogs.

+ {% from "global/macros.njk" import siteFeedLink %} +

You can subscribe to the {{ siteFeedLink(sitemeta.siteName + " RSS feed") }} to get notified of the updates on this website, including new articles, blog posts and website changelogs.

{% include "main/statuscafe.njk" %}