diff --git a/src/templates/error.html b/src/templates/error.html index c211499..9e45501 100644 --- a/src/templates/error.html +++ b/src/templates/error.html @@ -1,15 +1,5 @@ - - - - - {{title}} - - - - - - - +{% extends "layout.html" %} +{% block content %}
@@ -19,11 +9,8 @@
+{% endblock content %} - - - - - - - +{% block scripts %} + +{% endblock scripts %} diff --git a/src/templates/index.html b/src/templates/index.html index e80ac23..26f191b 100644 --- a/src/templates/index.html +++ b/src/templates/index.html @@ -1,39 +1,16 @@ - - - - - {{title}} - - - - - - - - -
-
-
-

Hello World!

-

Using dark themed Bootstrap 4 css files...

-

Themes: Bootswatch

+{% extends "layout.html" %} +{% block content %} +
+
+
+

Hello World!

+

Using dark themed Bootstrap 4 css files...

+

Themes: Bootswatch

+
-
+{% endblock content %} - - - - - - - - - - - - - - - - +{% block scripts %} + +{% endblock scripts %} diff --git a/src/templates/layout.html b/src/templates/layout.html new file mode 100644 index 0000000..3a20e2d --- /dev/null +++ b/src/templates/layout.html @@ -0,0 +1,37 @@ + + + + + {% if title %} + {{title}} + {% else %} + Home + {% endif %} + + + + + + + + +{% block content %} + +{% endblock %} + + + + + + + + + + + +{% block scripts %} + +{% endblock %} + + +