aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJohannes Stoelp <johannes.stoelp@gmail.com>2023-11-21 21:26:28 +0100
committerJohannes Stoelp <johannes.stoelp@gmail.com>2023-11-21 21:30:13 +0100
commitd3fb375420ea040a381027b19af33faeea65c473 (patch)
tree5c82d888a79107203a458966176abe3d257e6920
parentcb05b3b7d9b5a6f086e0d348cdce50f54b5ddbf2 (diff)
downloadblog-d3fb375420ea040a381027b19af33faeea65c473.tar.gz
blog-d3fb375420ea040a381027b19af33faeea65c473.zip
change date formatting and add date to post titles
-rw-r--r--templates/index.html2
-rw-r--r--templates/page.html2
2 files changed, 2 insertions, 2 deletions
diff --git a/templates/index.html b/templates/index.html
index 8187404..5ea7788 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -32,7 +32,7 @@
<a itemprob="url" href="{{ page.permalink | safe }}">{{ page.title }}</a>
</h2>
<span class="extra-notes">
- @{{ page.date | date(format="%F") }} | {{ page.reading_time }} minute read
+ {{ page.date | date(format="%Y/%m/%d") }} - {{ page.reading_time }} minute read
</span>
</header>
</article>
diff --git a/templates/page.html b/templates/page.html
index 61dd22f..e7504f4 100644
--- a/templates/page.html
+++ b/templates/page.html
@@ -3,7 +3,7 @@
{% block content %}
<article itemscope itemtype="http://schema.org/BlogPosting">
<header>
- <h1 itemprop="headline">{{ page.title }}</h1>
+ <h1 itemprop="headline"><span class="extra-notes">{{ page.date | date(format="%Y/%m/%d") }} -</span> {{ page.title }}</h1>
</header>
<div itemprop="articleBody">
{{ page.content | safe }}