Welcome to mirror list, hosted at ThFree Co, Russian Federation.

blog_post_header.html « blog « partials « layouts - github.com/hadisinaee/avicenna.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e5a7a7446e7308972a3a2a29b7ffd9e2364ab948 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{{ $readTime := mul (div (countwords .Content) 220.0) 60 }}

<h3>
    <a class="title" href="{{ .RelPermalink }}">{{ .Title }}</a>
</h3>

<div class="reading_time secondary_font text-muted ">
    <span>
        {{ .Date | time.Format "Jan 2 2006" }} · {{ math.Ceil (div $readTime 60) }} min read
    </span>

</div>


<!-- show tags if they are any -->
{{ if .Params.tags }}
<div class="tags_navigation">
    {{ range .Params.tags }}
    <a class="tag" href="/tags/{{ . }}/">#{{ . }}</a>
    {{ end }}
</div>
{{ end }}