blob: e500a351dfc4a003c34d365720b3c28c7f6de447 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
<header>
<div class="title">
{{ if $.Scratch.Get "h1" }}
<h1><a href="{{ .Permalink }}">{{ .Title }}</a></h1>
{{ $.Scratch.Set "h1" false }}
{{ else }}
<h2><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
{{ end }}
{{ with .Description }}
<p>{{ . }}</p>
{{ end }}
</div>
<div class="meta">
{{ $.Scratch.Set "dateType" .Date }}
<time class="published"
datetime='{{ ($.Scratch.Get "dateType").Format "2006-01-02" }}'>
{{ ($.Scratch.Get "dateType").Format "January 2, 2006" }}</time>
<span class="author">{{ .Params.author }}</span>
{{ if .Site.Params.includeReadingTime }}
<p>{{ .ReadingTime }} minute read</p>
{{ end }}
<!--<a href="#" class="author"><span class="name">Jane Doe</span><img src="images/avatar.jpg" alt="" /></a>-->
</div>
</header>
|