diff options
author | Adam T. Carpenter <atc@53hor.net> | 2024-09-14 20:54:44 -0400 |
---|---|---|
committer | Adam T. Carpenter <atc@53hor.net> | 2024-09-14 20:54:44 -0400 |
commit | 18339f611fd17e1300593edd65adf7604a39ad72 (patch) | |
tree | 3f5238afaf4cac98640a50b9b7954be7bbfbe3f6 /templates | |
parent | 9f341d439f7aa5fd2365024169ead2d6bdc3210c (diff) | |
download | carpentertutoring-18339f611fd17e1300593edd65adf7604a39ad72.tar.xz carpentertutoring-18339f611fd17e1300593edd65adf7604a39ad72.zip |
feat: working rudimentary blog presentation
Diffstat (limited to 'templates')
-rw-r--r-- | templates/post.html | 19 | ||||
-rw-r--r-- | templates/posts.html | 12 |
2 files changed, 19 insertions, 12 deletions
diff --git a/templates/post.html b/templates/post.html index 8346f16..3155c7a 100644 --- a/templates/post.html +++ b/templates/post.html @@ -1,8 +1,13 @@ -<!DOCTYPE html> -<html> - <body> - <article> +{% extends "base.html" %} + +{% block main %} +<section class="banner"> + <h1>{{ post.get_title() }}</h1> +</section> + +<section class="quiet"> + <article> {{ post.get_article()|markdown }} - </article> - </body> -</html> + </article> +</section> +{% endblock %} diff --git a/templates/posts.html b/templates/posts.html index 57d2480..0cb4cf1 100644 --- a/templates/posts.html +++ b/templates/posts.html @@ -1,13 +1,15 @@ {% extends "base.html" %} {% block main %} +<section class="banner"> + <h1>Journal Posts</h1> +</section> + <section class="quiet"> <p> - <ul> - {% for post in posts %} - <li>{{ post.get_title() }}</li> - {% endfor %} - </ul> + {% for post in posts %} + <h3><a href="/posts/{{ post.get_title()|e }}">{{ post.get_title() }}</a></h3> + {% endfor %} </p> <section> {% endblock %} |