gronk/templates/index.html

45 lines
1.4 KiB
HTML
Raw Normal View History

2021-04-30 20:55:13 +00:00
<head>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
2021-04-30 20:55:13 +00:00
<meta charset="utf-8">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Open+Sans&display=swap" />
2024-01-02 18:22:15 +00:00
<link rel="stylesheet" type="text/css" href="/css/styles.css" />
<title>{{ title }}</title>
2021-04-30 20:55:13 +00:00
</head>
2024-01-02 18:22:15 +00:00
2021-04-30 20:55:13 +00:00
<body>
<div id="content">
2024-01-02 18:22:15 +00:00
<h1>{{ title }}</h1>
{% if not content_after_search %}
{{ content }}
{% 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 %}
{{ content }}
{% endif %}
<p style="font-size: 0.7em;"> page generated by <a href="https://github.com/alvierahman90/notes2web">notes2web</a></p>
</div>
2024-01-02 18:22:15 +00:00
<script src="/js/fuse.js"> </script>
<script> const search_data = {{ index_entries }} </script>
<script src="/js/indexsearch.js"> </script>
2021-04-30 20:55:13 +00:00
</body>
2024-01-02 18:22:15 +00:00