Skip to content

Commit

Permalink
Show related pages on non-existant pages
Browse files Browse the repository at this point in the history
Pretty much what it says on the tin.

Fixes #2.
  • Loading branch information
cu committed May 23, 2024
1 parent 86d04ca commit 9c7dc35
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions silicon/templates/not_found.html.j2
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,19 @@
{{ macros.favicons() }}
{% endblock %}

{% block scripts %}
{{ super() }}
<script src="{{ url_for('static', filename='js/widgets.js') }}" defer></script>
{% endblock %}

{% block sidebar_contents %}
{{ macros.nav_links(title, 'home', 'docs') }}

<div class="nav-button-wrap">
<a class="nav-button" href="{{ url_for('page.edit', title=title) }}">Edit</a>
</div>

{{ macros.related(title, relatives) }}
{% endblock %}

{% block content %}
Expand Down

0 comments on commit 9c7dc35

Please sign in to comment.