29 lines
757 B
HTML
29 lines
757 B
HTML
{% macro header(title) %}
|
|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>{{title}}</title>
|
|
<link rel="stylesheet" href="/static/style.css">
|
|
<link rel="stylesheet" href="/static/full_page.css">
|
|
</head>
|
|
{% endmacro %}
|
|
|
|
{% macro footer() %}
|
|
</html>
|
|
{% endmacro %}
|
|
|
|
{% macro search(path, tip) %}
|
|
<body>
|
|
<h1>Search</h1>
|
|
<form class="full_form" action="/{{ path }}" method="GET">
|
|
<label for="query">Search for:</label>
|
|
<input type="text" id="query" name="q" required /><br>
|
|
{%- if tip %}<i>Tip: {{ tip }}</i><br>{% endif -%}
|
|
<button type="submit">Search</button>
|
|
</form>
|
|
<a href="/">Home</a>
|
|
</body>
|
|
{% endmacro %}
|