templating rewrite start

This commit is contained in:
Schrottkatze 2023-03-03 23:52:16 +01:00
parent 3f2bdfdaed
commit 1f2589976d
5 changed files with 103 additions and 11 deletions

View file

@ -14,4 +14,5 @@
</body>
</html>
</html>

View file

@ -2,11 +2,7 @@
<html>
<head>
{% if args.title.as_ref().is_none() %}
<title>MicroBin</title>
{%- else %}
<title>{{ args.title.as_ref().unwrap() }}</title>
{%- endif %}
<title>MicroBin</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
@ -55,8 +51,8 @@
src="{{ args.public_path }}/static/logo.png"
>
</a>
{%- endif %} {% if args.title.as_ref().is_none() %}
MicroBin {%- else %} {{ args.title.as_ref().unwrap() }} {%- endif %}
{%- endif %}
MicroBin
</b>
<a href="{{ args.public_path }}/" style="margin-right: 0.5rem; margin-left: 0.5rem">New