gronk/templates/index.html

36 lines
1020 B
HTML
Raw Permalink Normal View History

2024-01-02 03:50:43 +00:00
{% extends "base.html" %}
{% block content %}
{% if not content %}
2024-01-02 18:22:15 +00:00
<h1>{{ title }}</h1>
{% endif %}
2024-01-02 18:22:15 +00:00
{% if not content_after_search %}
2024-01-02 03:50:43 +00:00
{{ content|safe }}
2024-01-02 18:22:15 +00:00
{% endif %}
{% if automatic_index %}
{% if search_bar %}
<div id="searchWrapper">
<input id="search" placeholder="search" autocomplete="off" autofocus>
</div>
<p class="searchSmallText" style="margin-top: 0; text-align: center">
Press (<kbd>Shift</kbd>+)<kbd>Enter</kbd> to open first result (in new tab)
</p>
{% endif %}
<ul id="searchResults" class="buttonlist">
<li class="article"><a href=".."><p>../</p></a></li>
{% for entry in index_entries %}
<li class="article"><a href="{{ entry['path'] }}"><p>{{ entry['title'] }}{% if entry['is_dir'] %}/{% endif %}</p></a></li>
{% endfor %}
</ul>
{% endif %}
{% if content_after_search %}
2024-01-02 03:50:43 +00:00
{{ content|safe }}
2024-01-02 18:22:15 +00:00
{% endif %}
<script src="/js/fuse.js"> </script>
2023-09-17 19:47:05 +00:00
<script> const search_data = {{ index_entries|tojson }} </script>
2024-01-02 18:22:15 +00:00
<script src="/js/indexsearch.js"> </script>
2024-01-02 03:50:43 +00:00
{% endblock %}