diff options
author | Blaise Thompson <blaise@untzag.com> | 2020-04-11 18:59:35 -0500 |
---|---|---|
committer | Blaise Thompson <blaise@untzag.com> | 2020-04-11 18:59:35 -0500 |
commit | 5e2a82641aab330f9a94a74b5fa4386dd684d7f1 (patch) | |
tree | c7ec42c4c9e9a89c09660472f41a365cffd53d7b /templates |
initial commit
Diffstat (limited to 'templates')
-rw-r--r-- | templates/footer.html | 9 | ||||
-rw-r--r-- | templates/header.html | 8 | ||||
-rw-r--r-- | templates/index.html | 25 | ||||
-rw-r--r-- | templates/post.html | 11 | ||||
-rw-r--r-- | templates/style.css | 35 |
5 files changed, 88 insertions, 0 deletions
diff --git a/templates/footer.html b/templates/footer.html new file mode 100644 index 0000000..7016b7a --- /dev/null +++ b/templates/footer.html @@ -0,0 +1,9 @@ +<hr> + +<ul class="horizontal"> + <li>built {{ date }}</li> + <li><a href="https://creativecommons.org/publicdomain/zero/1.0/">CC0</a>: no copyright</li> +</ul> + +</body> +</html> diff --git a/templates/header.html b/templates/header.html new file mode 100644 index 0000000..e913fc1 --- /dev/null +++ b/templates/header.html @@ -0,0 +1,8 @@ +<!DOCTYPE html> +<html> +<head> + <meta charset="utf-8" name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no"> + <title>{{ title }}</title> + <link rel="stylesheet" href="style.css"> +</head> +<body> diff --git a/templates/index.html b/templates/index.html new file mode 100644 index 0000000..dbd6bd4 --- /dev/null +++ b/templates/index.html @@ -0,0 +1,25 @@ +{% include "header.html" %} + +<h1> +<a href=http://blaise.zone>blaise</a>/blog +</h1> + +<hr> + +<p> +Welcome to my personal blog! <br> +This page lists my blog entries in reverse chronological order. <br> +You may also browse by tag (coming soon). <br> +You may be interested in my meta post (coming soon). <br> +Thanks for stopping by! —Blaise +</p> + +<p> +{% for post in posts %} + {{ post.date }} + <a href=./{{ post.path }}>{{ post.title }}</a> + <br> +{% endfor %} +</p> + +{% include "footer.html" %} diff --git a/templates/post.html b/templates/post.html new file mode 100644 index 0000000..563fbb1 --- /dev/null +++ b/templates/post.html @@ -0,0 +1,11 @@ +{% include "header.html" %} + +<h1> +<a href=http://blaise.zone>blaise</a>/<a href=../>blog</a>/{{ post.title }} +</h1> + +<hr> + +{{ post.content }} + +{% include "footer.html" %} diff --git a/templates/style.css b/templates/style.css new file mode 100644 index 0000000..4517798 --- /dev/null +++ b/templates/style.css @@ -0,0 +1,35 @@ +a { + text-decoration: none; + color: #81a2be; +} + +body { + font-family: sans-serif; + margin: 40px auto; + max-width: 650px; + line-height: 1.5; + font-size: 16px; + background-color: #1d1f21; + color: #c5c8c6; + padding: 0 10px; + text-align: left; +} + +.singlespaced { + line-height: 1; +} + +.horizontal { + display: flex; + list-style-type: none; + padding: 0; + justify-content: space-between; +} + +.tab30 { + margin-left: 30px; +} + +.tab60 { + margin-left: 60px; +} |