Make source_url and issues_url optional and adapt content if not set

This commit is contained in:
David Lapshin
2024-05-21 16:23:18 +03:00
parent 39d75b08c7
commit b32c51b71a
3 changed files with 8 additions and 4 deletions

View File

@ -21,7 +21,7 @@
<p title="Last built at {{ now() | date(format='%F %a %R') }}">&copy; {{ config.title }}, {{ now() | date(format="%Y") }}</p>
{% endif %}
{% if config.extra.footer.show_source %}
{% if config.extra.source_url and config.extra.footer.show_source %}
<p>
<a href="{{ config.extra.source_url | safe }}">Website source</a>
</p>