aboutsummaryrefslogtreecommitdiff
path: root/templates/template.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/template.html')
-rw-r--r--templates/template.html63
1 files changed, 63 insertions, 0 deletions
diff --git a/templates/template.html b/templates/template.html
new file mode 100644
index 0000000..4b8dced
--- /dev/null
+++ b/templates/template.html
@@ -0,0 +1,63 @@
+<!DOCTYPE html>
+
+<html>
+ <body>
+{% if article %}
+ <header>
+ <h1>
+ {{ article_title }}
+ </h1>
+ <div>
+ <h3>{{ article_description }}</h3>
+ <p>{{ article_date }}</p>
+ </div>
+ </header>
+ <main>
+ <a href="/">« Go Back</a>
+ {{ article_text }}
+ </main>
+{% else %}
+ <header>
+ <h1>
+ {{ blog_name }}
+ </h1>
+ <div>
+ <h3>{{ welcome_text }}</h3>
+ </div>
+ </header>
+ {{ article_index }}
+{% endif %}
+ <footer>
+ {{ footer }}
+ </footer>
+ </body>
+ <style>
+body {
+ font-family: sans-serif;
+}
+div.articles {
+ background-color: #ddd;
+ padding: 5px;
+}
+header {
+ height: min-content;
+}
+header h1 {
+ border-bottom: 2px solid #eee;
+ margin: 0;
+}
+header div {
+ display: flex;
+ flex-direction: row;
+}
+header p {
+ font-size: smaller;
+ padding: 10px 0 0 5px;
+}
+main {
+ background-color: #ddd;
+ padding: 5px;
+ display: block;
+}
+ </style>
+</html>