diff options
Diffstat (limited to 'layouts/partials/blog/blog_post_header.html')
-rw-r--r-- | layouts/partials/blog/blog_post_header.html | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/layouts/partials/blog/blog_post_header.html b/layouts/partials/blog/blog_post_header.html new file mode 100644 index 0000000..e5a7a74 --- /dev/null +++ b/layouts/partials/blog/blog_post_header.html @@ -0,0 +1,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 }}
\ No newline at end of file |