mirror of
https://github.com/13hannes11/hugo-coder-timeline.git
synced 2024-09-04 00:50:58 +02:00
Enhance post header (#100)
- show calendar icon for 'posted date' - show 'reading time'
This commit is contained in:
committed by
Luiz F. A. de Prá
parent
24c0c2fcc1
commit
11c0108323
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user