1
0
mirror of https://github.com/tiyn/amphora-wiki.git synced 2025-10-09 17:37:58 +02:00

adding fulltextsearch with searchpage

This commit is contained in:
TiynGER
2020-06-01 20:51:37 +02:00
parent 51682d00f0
commit 3c49ea6687
17 changed files with 233 additions and 20 deletions

10
src/templates/entry.html Normal file
View File

@@ -0,0 +1,10 @@
{% extends "template.html" %}
{% block content %}
<div class="container">
<div class="content">
{% autoescape off %}
<span>{{ content }}</span>
{% endautoescape %}
</div>
</div>
{% endblock %}

View File

@@ -0,0 +1,11 @@
Test Entry Title 4
This is a markdown file
[link to entry3](../test-entry3.md)
- list entry
- list entry
- list entry
# md-header
more content

View File

@@ -0,0 +1,10 @@
Test Entry Title 5
This is a markdown file
- list entry
- list entry
- list entry
# md-header
more content

View File

@@ -0,0 +1,10 @@
Test Entry Title 6
This is a markdown file
- list entry
- list entry
- list entry
# md-header
more content

View File

@@ -1,5 +1,6 @@
Test Entry Title 3
Test Entry Title 1
This is a markdown file
This text contains a one.
- list entry
- list entry

View File

@@ -1,5 +1,6 @@
Test Entry Title 3
Test Entry Title 2
This is a markdown file
Two Two
- list entry
- list entry

View File

@@ -1,4 +1,4 @@
Test Entry Title 3
Test Entry Title 3 Three
This is a markdown file
- list entry

15
src/templates/search.html Normal file
View File

@@ -0,0 +1,15 @@
{% extends "template.html" %}
{% block content %}
<div class="container">
<div class="content">
<form action="{{ url_for('search') }}" method=post>
{{ form.hidden_tag() }}
{{ form.query_str }}
{{ form.submit }}
</form>
{% autoescape off %}
<span>{{ content }}</span>
{% endautoescape %}
</div>
</div>
{% endblock %}

View File

@@ -14,6 +14,7 @@
<label for="main-menu-check" class="show-menu">&#9776;</label>
<div class="main-menu">
<a href="/">Startpage</a>
<a href="/search">Search</a>
<label for="main-menu-check" class="hide-menu">X</label>
</div>
</div>
@@ -24,7 +25,7 @@
<!-- Content -->
<footer>
<div class="center">
Dieser Blog enthält kein Javascript oder PHP.<br>
Dieses Wiki enthält kein Javascript oder PHP.<br>
Dies ist eine Instanz vom <a href="https://github.com/tiyn/tiyny-wiki">Tiyny-Wiki</a>.
</div>
</footer>