From 11c01083232b7b53317fe3665f9e44c6c5482065 Mon Sep 17 00:00:00 2001
From: Khosrow Moossavi <khos2ow@gmail.com>
Date: Mon, 15 Oct 2018 01:24:13 +0000
Subject: [PATCH] Enhance post header (#100)
---
layouts/posts/single.html | 17 +++++++++++++++--
1 files changed, 15 insertions(+), 2 deletions(-)
diff --git a/layouts/posts/single.html b/layouts/posts/single.html
index 96e4f7a..373f422 100644
--- a/layouts/posts/single.html
+++ b/layouts/posts/single.html
@@ -5,8 +5,21 @@
<section class="container post">
<article>
<header>
- <h1 class="title">{{ .Title }}</h1>
- <h2 class="date">{{ .Date.Format (.Site.Params.dateFormat | default "January 2, 2006" ) }}</h2>
+ <div class="post-title">
+ <h1 class="title">{{ .Title }}</h1>
+ </div>
+ <div class="post-meta">
+ <span class="posted-on">
+ <i class="far fa-calendar"></i>
+ <time datetime='{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}'>
+ {{ .Date.Format (.Site.Params.dateFormat | default "January 2, 2006" ) }}
+ </time>
+ </span>
+ <span class="reading-time">
+ <i class="far fa-clock"></i>
+ {{ i18n "readingTime" .ReadingTime }}
+ </span>
+ </div>
</header>
<div>
--
Gitblit v1.10.0