summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/feed.html41
-rw-r--r--templates/post.html33
2 files changed, 74 insertions, 0 deletions
diff --git a/templates/feed.html b/templates/feed.html
new file mode 100644
index 0000000..2a7d335
--- /dev/null
+++ b/templates/feed.html
@@ -0,0 +1,41 @@
+<!doctype html>
+<html>
+<head>
+<meta charset="utf-8">
+<title>{{website.title}}</title>
+<!--TODO: move to external file-->
+<style>
+ body {
+ font-family: monospace;
+ background: #000;
+ color: #0f0;
+ margin: 20px;
+}
+
+a {
+ color: #0f0;
+ text-decoration: underline;
+}
+
+a:hover {
+ background: #0f0;
+ color: #000;
+}
+</style>
+</head>
+<body>
+<pre>
+ _ _
+ | |__ _(_)_ _
+ | / _` | | ' \
+ |_\__,_|_|_||_|
+</pre>
+
+{{#posts}}
+<a href="{{url}}">{{title}}</a> - {{description}}<br>
+{{/posts}}
+{{^posts}}
+no posts yet...
+{{/posts}}
+</body>
+</html>
diff --git a/templates/post.html b/templates/post.html
new file mode 100644
index 0000000..f2a175b
--- /dev/null
+++ b/templates/post.html
@@ -0,0 +1,33 @@
+<!doctype html>
+<html>
+<head>
+<meta charset="utf-8">
+<title>{{post.title}}</title>
+<!--TODO: move to external file-->
+<style>
+ body {
+ font-family: monospace;
+ background: #000;
+ color: #0f0;
+ margin: 20px;
+}
+
+a {
+ color: #0f0;
+ text-decoration: underline;
+}
+
+a:hover {
+ background: #0f0;
+ color: #000;
+}
+</style>
+</head>
+<body>
+<a href="/index.html"><- back</a>
+<h1>{{post.title}}</h1>
+<p>{{post.description}}</p>
+<hr>
+{{{post.body}}}
+</body>
+</html>