diff --git a/pelican_theme_teckids/templates/base.html b/pelican_theme_teckids/templates/base.html index 70f4c3f69627fc255914903c09af263e10839d4c..14ce9a15aed9338fcf6b54bbd714b462fd73b4f5 100644 --- a/pelican_theme_teckids/templates/base.html +++ b/pelican_theme_teckids/templates/base.html @@ -97,13 +97,6 @@ <main role="main"> <!-- Main Content --> {% block content %}{% endblock %} - <p class="licence"> - {% if article is defined %} - {{ LICENCETEXTS[article.lang|default(DEFAULT_LANG)] }} {{ article.metadata.licence|default(LICENCE_DEFAULT) }} - {% elif page is defined %} - {{ LICENCETEXTS[DEFAULT_LANG] }} {{ page.metadata.licence|default(LICENCE_DEFAULT) }} - {% endif %} - </p> </main> <!-- Sponsoren-Footer --> @@ -148,6 +141,22 @@ <p style="text-align: right"> {{ FOOTERTEXT }} </p> + <p class="licence"> + {% if article is defined %} + {{ LICENCETEXTS[article.lang|default(DEFAULT_LANG)] }} {{ article.metadata.licence|default(LICENCE_DEFAULT) }} + {% elif page is defined %} + {{ LICENCETEXTS[DEFAULT_LANG] }} {{ page.metadata.licence|default(LICENCE_DEFAULT) }} + {% endif %} + <br/> + {% if article is defined %} + <a href="{{ GITWEB_BASE }}/content/{{ article.relative_source_path }}">Edit in source repository</a> + {% elif page is defined %} + <a href="{{ GITWEB_BASE }}/content/{{ page.relative_source_path }}">Edit in source repository</a> + {% else %} + <a href="{{ GITWEB_BASE }}/content">Edit in source repository</a> + {% endif %} + </p> + </div> </div> </div>