aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <valentin@popov.link>2023-08-31 02:43:27 +0300
committerValentin Popov <valentin@popov.link>2023-08-31 02:43:27 +0300
commitd31db27e97037113604dfd2458cc7dc11364ec20 (patch)
tree0db48c8f18669df9383dfd8a0689c59da787f6e8
parent25fa14976de972572da463c646a85085a4ade33c (diff)
downloadpopov.link-d31db27e97037113604dfd2458cc7dc11364ec20.tar.xz
popov.link-d31db27e97037113604dfd2458cc7dc11364ec20.zip
Refined blog post headers
-rw-r--r--sass/_blog.scss3
-rw-r--r--sass/styles.scss1
-rw-r--r--templates/post.html11
3 files changed, 14 insertions, 1 deletions
diff --git a/sass/_blog.scss b/sass/_blog.scss
new file mode 100644
index 0000000..662cfba
--- /dev/null
+++ b/sass/_blog.scss
@@ -0,0 +1,3 @@
+.post_header {
+ text-align: center;
+} \ No newline at end of file
diff --git a/sass/styles.scss b/sass/styles.scss
index 909197c..2a2b43c 100644
--- a/sass/styles.scss
+++ b/sass/styles.scss
@@ -16,3 +16,4 @@ $font-size-base: 1.8rem;
@import "framework";
@import "navbar";
@import "print";
+@import "blog"; \ No newline at end of file
diff --git a/templates/post.html b/templates/post.html
index 76f15c9..9c6cc94 100644
--- a/templates/post.html
+++ b/templates/post.html
@@ -1,8 +1,17 @@
{% extends 'base.html' %}
{% block content %}
-<section>
+<section class="post_header">
<h1>{{ page.title | trim | safe }}</h1>
+
+ <p>
+ <small>
+ Posted
+ <time datetime="{{ page.date | date(format='%+') | trim | safe }}">{{ page.date | date(format='%B %e, %Y', timezone='Europe/Moscow') }}</time>
+ by <a href="mailto:valentin@popov.link?subject={{ page.title | trim | safe | urlencode }}">Valentin Popov</a>&nbsp;&hyphen;
+ <strong>{{ page.reading_time | safe }}&nbsp;min read</strong>
+ </small>
+ </p>
</section>
<section>