Make source_url and issues_url optional and adapt content if not set
This commit is contained in:
@ -8,10 +8,12 @@
|
|||||||
|
|
||||||
<h1>Page Not Found</h1>
|
<h1>Page Not Found</h1>
|
||||||
|
|
||||||
<p>The requested page could not be found. If you feel this is not normal, then you can create an issue on the issue tracker.</p>
|
<p>The requested page could not be found.{% if config.extra.issues_url %} If you feel this is not normal, then you can create an issue on the issue tracker.{% endif %}</p>
|
||||||
|
|
||||||
<p class="dialog-buttons">
|
<p class="dialog-buttons">
|
||||||
<a onclick="window.history.go(-1)" class="inline-button">Go Back</a>
|
<a onclick="window.history.go(-1)" class="inline-button">Go Back</a>
|
||||||
<a class="inline-button colored" href="{{ config.extra.issues_url }}">File an Issue</a>
|
{% if config.extra.issues_url %}
|
||||||
|
<a class="inline-button colored" href="{{ config.extra.issues_url }}">File an Issue</a>
|
||||||
|
{% endif %}
|
||||||
</p>
|
</p>
|
||||||
{% endblock content %}
|
{% endblock content %}
|
||||||
|
@ -105,6 +105,8 @@
|
|||||||
|
|
||||||
<p class="dialog-buttons">
|
<p class="dialog-buttons">
|
||||||
<a class="inline-button" href="#top">Go to Top</a>
|
<a class="inline-button" href="#top">Go to Top</a>
|
||||||
<a class="inline-button colored" href="{{ config.extra.issues_url }}">File an Issue</a>
|
{% if config.extra.issues_url %}
|
||||||
|
<a class="inline-button colored" href="{{ config.extra.issues_url }}">File an Issue</a>
|
||||||
|
{% endif %}
|
||||||
</p>
|
</p>
|
||||||
{% endblock content %}
|
{% endblock content %}
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
<p title="Last built at {{ now() | date(format='%F %a %R') }}">© {{ config.title }}, {{ now() | date(format="%Y") }}</p>
|
<p title="Last built at {{ now() | date(format='%F %a %R') }}">© {{ config.title }}, {{ now() | date(format="%Y") }}</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if config.extra.footer.show_source %}
|
{% if config.extra.source_url and config.extra.footer.show_source %}
|
||||||
<p>
|
<p>
|
||||||
<a href="{{ config.extra.source_url | safe }}">Website source</a>
|
<a href="{{ config.extra.source_url | safe }}">Website source</a>
|
||||||
</p>
|
</p>
|
||||||
|
Reference in New Issue
Block a user