blob: 9b1638bd72cac359e631c59a84da3c286e790499 (
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
26
27
28
29
|
{{ define "main" }}
<div id="reading-progress-bar" role="presentation" class="fixed z-10 top-0 left-0 h-1 bg-gray-700"></div>
<article class="article">
<h1 class="artitle__title"><a href="{{.Permalink}}">{{ .Title }}</a></h1>
{{if not .Params.hideMetadata }}
<header class="article__header">
{{ $readTime := cond (gt .ReadingTime 1) "minutes" "minute" }}
<span class="">
Read in {{ .ReadingTime }} {{ $readTime }} ·
<time datetime="{{ dateFormat "2006-01-02T15:04:05-07:00" (default .Date (.PublishDate)) }}">
{{ dateFormat "2 Jan, 2006" (default .Date (.PublishDate)) }}
</time>
</span>
</header>
{{ end }}
{{ .Content }}
{{if not .Params.hideComments }}
<section class="comments">
<h2 class="comments__title">Comments</h2>
{{ template "_internal/disqus.html" . }}
</section>
{{ end }}
</article>
{{ end }}
|