From 6fa3d6d03c4f0731cf388166bacebbf2e062fd1c Mon Sep 17 00:00:00 2001 From: Blaise Thompson Date: Thu, 8 Jul 2021 16:42:51 -0500 Subject: refactor with actual building --- templates/footer.html | 12 ++++++++++ templates/header.html | 8 +++++++ templates/index.html | 33 ++++++++++++++++++++++++++ templates/memory.html | 15 ++++++++++++ templates/post.html | 11 +++++++++ templates/style.css | 66 +++++++++++++++++++++++++++++++++++++++++++++++++++ templates/tags.html | 30 +++++++++++++++++++++++ 7 files changed, 175 insertions(+) create mode 100644 templates/footer.html create mode 100644 templates/header.html create mode 100644 templates/index.html create mode 100644 templates/memory.html create mode 100644 templates/post.html create mode 100644 templates/style.css create mode 100644 templates/tags.html (limited to 'templates') diff --git a/templates/footer.html b/templates/footer.html new file mode 100644 index 0000000..3ce66d9 --- /dev/null +++ b/templates/footer.html @@ -0,0 +1,12 @@ +
+ +

+built {{ date }} +

+CC0: no copyright +(source) +
+

+ + + diff --git a/templates/header.html b/templates/header.html new file mode 100644 index 0000000..67bc013 --- /dev/null +++ b/templates/header.html @@ -0,0 +1,8 @@ + + + + + {{ title }} + + + diff --git a/templates/index.html b/templates/index.html new file mode 100644 index 0000000..fecdba6 --- /dev/null +++ b/templates/index.html @@ -0,0 +1,33 @@ + + + + + memories.blaise.zone + + + +

blaise-memories

+
+

+ Welcome to my public memories!
+ I think of this as my "digital scrapbook".
+ You may also be interested in my family tree.
+ Thanks for stopping by! —Blaise +

+

+ + + + + + + {% for memory in memories %} + + + + + + {% endfor %} +
startendmemory
{{ memory.start }}{{ memory.end }}{{ memory.title }}
+

+{% include "footer.html" %} diff --git a/templates/memory.html b/templates/memory.html new file mode 100644 index 0000000..4da3b10 --- /dev/null +++ b/templates/memory.html @@ -0,0 +1,15 @@ +{% include "header.html" %} + +

+blaise-memories/{{ memory.path[0] }} +

+ +
+ +

+{{ memory.title }} +

+ +{{ memory.content }} + +{% include "footer.html" %} diff --git a/templates/post.html b/templates/post.html new file mode 100644 index 0000000..cf7b1f1 --- /dev/null +++ b/templates/post.html @@ -0,0 +1,11 @@ +{% include "header.html" %} + +

+blaise-blog/{{ post.title }} +

+ +
+ +{{ post.content }} + +{% include "footer.html" %} diff --git a/templates/style.css b/templates/style.css new file mode 100644 index 0000000..9f19e42 --- /dev/null +++ b/templates/style.css @@ -0,0 +1,66 @@ +a { + text-decoration: none; + color: #81a2be; +} + +body { + font-family: 'DejaVu Sans Mono', monospace; + margin: 40px auto; + min-width: 80ch; + max-width: 80ch; + line-height: 1.5; + font-size: 16px; + background-color: #1d1f21; + color: #c5c8c6; + padding: 0 10px; + text-align: left; + overflow-y: scroll; +} + +h2 { + font-size: 16px; +} + +pre { + width: 80ch; + padding: 15px; + margin-left: auto; + margin-right: auto; + overflow: auto; + overflow-y: hidden; + font-size: 15.3px; + background: #111314; + border: 1px solid #c5c8c6; +} + +code { + background: #111314; + color: #de935f +} + +figure { + width: 100%; + margin: 0px auto; + margin-bottom: 1em; +} + +audio { + width: 100%; +} + +img { + width: 100%; +} + +table { + width: 100%; +} + +table, th, td { + border: 1px solid #969896; + border-collapse: collapse; +} + +th, td { + padding: 5px; +} diff --git a/templates/tags.html b/templates/tags.html new file mode 100644 index 0000000..e788ce5 --- /dev/null +++ b/templates/tags.html @@ -0,0 +1,30 @@ +{% include "header.html" %} + +

+blaise-blog/tags +

+ +
+ +{% for tag in tags %} + +

{{ tag }}

+ +

+{% for post in posts %} + {% if tag in post.tags %} + {{ post.date }} + {{ post.title }} + {% for tag_ in post.tags %} + {% if tag_ != tag %} + #{{ tag_ }} + {% endif %} + {% endfor %} +
+ {% endif %} +{% endfor %} +

+ +{% endfor %} + +{% include "footer.html" %} -- cgit v1.2.3