diff --git a/assets/css/codeberg-docs.css b/assets/css/codeberg-docs.css index 55803fa..91e2e9a 100644 --- a/assets/css/codeberg-docs.css +++ b/assets/css/codeberg-docs.css @@ -50,6 +50,8 @@ article th { background: #ddd; } article tr:nth-of-type(2) { background: #eee; } article hr { width: 80%; border: 1px solid #eee; } +.contribution-invitation hr { margin-top: 70px; margin-bottom: 30px; } + footer { background: #f5f5f5; text-align: center; font-size: 8pt; padding: 15px; margin-top: 60px; } diff --git a/content/_includes/contribution_invitation.njk b/content/_includes/contribution_invitation.njk new file mode 100644 index 0000000..bfb5b9d --- /dev/null +++ b/content/_includes/contribution_invitation.njk @@ -0,0 +1,15 @@ +
+
+
+

Hey there! 👋 Thank you for reading this article!

+

+ Is there something missing or do you have an idea on how to improve the Documentation?
+ Do you want to write an article on your own? +

+

+ You're invited to contribute to the Codeberg Documentation at its source code repository, + for example by Adding a pull request + or joining in on the discussion in the issue tracker. +

+
+
\ No newline at end of file diff --git a/content/_includes/default_layout.njk b/content/_includes/default_layout.njk index f327cbd..1c7c48f 100644 --- a/content/_includes/default_layout.njk +++ b/content/_includes/default_layout.njk @@ -69,6 +69,7 @@ {% if eleventyNavigation.title %}

{{ eleventyNavigation.title }}

{% endif %} {% if eleventyNavigation.draft %}Please note that this article is still a draft and might not have any contents yet.{% endif %} {{ content | safe }} + {% if page.url != '/' %}{% include 'contribution_invitation.njk' %}{% endif %}