Skip to content

Commit

Permalink
Merge pull request #322 from dhenneke/feat/blog-reading-time
Browse files Browse the repository at this point in the history
Add reading time to blog posts
  • Loading branch information
LisaFC authored Aug 5, 2020
2 parents d6e21af + f09755e commit 5d1c0f9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions layouts/blog/content.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ <h1>{{ .Title }}</h1>
{{ with .Params.author }}{{ T "post_byline_by" }} <b>{{ . | markdownify }}</b> |{{ end}}
<time datetime="{{ $.Date.Format "2006-01-02" }}" class="text-muted">{{ $.Date.Format $.Site.Params.time_format_blog }}</time>
</div>
{{ if (and (not .Params.hide_readingtime) (.Site.Params.ui.readingtime.enable)) }}
{{ partial "reading-time.html" . }}
{{ end }}
{{ .Content }}
{{ if (.Site.Params.DisqusShortname) }}
<br />
Expand Down

0 comments on commit 5d1c0f9

Please sign in to comment.