mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Custom template for docs, linking to datasette.io
This commit is contained in:
parent
e5930e6f88
commit
e3143700a2
1 changed files with 23 additions and 0 deletions
23
docs/_templates/layout.html
vendored
Normal file
23
docs/_templates/layout.html
vendored
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
{%- extends "!layout.html" %}
|
||||
|
||||
{% block sidebartitle %}
|
||||
|
||||
<a href="https://datasette.io/">
|
||||
<img src="{{ pathto('_static/' + logo, 1) }}" class="logo" alt="{{ _('Logo') }}"/>
|
||||
</a>
|
||||
|
||||
{% if theme_display_version %}
|
||||
{%- set nav_version = version %}
|
||||
{% if READTHEDOCS and current_version %}
|
||||
{%- set nav_version = current_version %}
|
||||
{% endif %}
|
||||
{% if nav_version %}
|
||||
<div class="version">
|
||||
{{ nav_version }}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
{% include "searchbox.html" %}
|
||||
|
||||
{% endblock %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue