From 74f9c6a49fad7fd6dba3d56ec525dc6ece1894d1 Mon Sep 17 00:00:00 2001 From: Elena ``of Valhalla'' Grandi Date: Mon, 16 Nov 2020 08:46:37 +0100 Subject: Basic template from lesanaweb, to improve upon --- templates/web/base.html | 30 ++++++++++++++++++++++++++++++ templates/web/entry.html | 18 ++++++++++++++++++ templates/web/index.html | 32 ++++++++++++++++++++++++++++++++ 3 files changed, 80 insertions(+) create mode 100644 templates/web/base.html create mode 100644 templates/web/entry.html create mode 100644 templates/web/index.html diff --git a/templates/web/base.html b/templates/web/base.html new file mode 100644 index 0000000..98139fe --- /dev/null +++ b/templates/web/base.html @@ -0,0 +1,30 @@ + + + + + + {% block title %}{% endblock %} + + {% block extraheader %}{% endblock %} + + + {% block content %}{% endblock %} + + diff --git a/templates/web/entry.html b/templates/web/entry.html new file mode 100644 index 0000000..df641d0 --- /dev/null +++ b/templates/web/entry.html @@ -0,0 +1,18 @@ +{% extends "base.html" %} + +{% block title %}{{ entry }}{% endblock %} + +{% block content %} +
+

{{ settings.name }}

+ +
+

{{ entry }}

+
+ {% for k,v in entry.data.items() %} +
{{ k }}
+
{{ v }}
+ {% endfor %} +
+{% endblock %} + diff --git a/templates/web/index.html b/templates/web/index.html new file mode 100644 index 0000000..1d1d869 --- /dev/null +++ b/templates/web/index.html @@ -0,0 +1,32 @@ +{% extends "base.html" %} + +{% block title %}{{ settings.name }}{% endblock %} + +{% block content %} +
+

{{ settings.name }}

+ +
+