Added a Contribution Invitation

This commit is contained in:
Lucas Hinderberger 2020-08-20 12:49:54 +02:00 committed by Gitea
parent e09e006f90
commit a352313f3a
3 changed files with 18 additions and 0 deletions

View file

@ -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; }

View file

@ -0,0 +1,15 @@
<div class="contribution-invitation">
<hr>
<blockquote>
<p>Hey there! 👋 Thank you for reading this article!</p>
<p>
Is there something missing or do you have an idea on how to improve the Documentation?<br>
Do you want to write an article on your own?
</p>
<p>
You're invited to contribute to the Codeberg Documentation at <a href="https://codeberg.org/Codeberg/Documentation">its source code repository</a>,
for example by <a href="/collaborating/pull-requests-and-git-flow">Adding a pull request</a>
or joining in on the discussion in <a href="https://codeberg.org/Codeberg/Documentation/issues">the issue tracker</a>.
</p>
</blockquote>
</div>

View file

@ -69,6 +69,7 @@
{% if eleventyNavigation.title %}<h1>{{ eleventyNavigation.title }}</h1>{% endif %}
{% if eleventyNavigation.draft %}<strong>Please note that this article is still a draft and might not have any contents yet.</strong>{% endif %}
{{ content | safe }}
{% if page.url != '/' %}{% include 'contribution_invitation.njk' %}{% endif %}
</article>
</div>
</main>