add .Site to readingTime

This commit is contained in:
James Wu 2017-12-29 00:00:11 -08:00
parent cbceabf022
commit bcd9c09cd5

View File

@ -5,7 +5,7 @@
{{ if ne $datestr $lastmodstr }} {{ if ne $datestr $lastmodstr }}
 {{ $lastmodstr | i18n "lastModified" }}  {{ $lastmodstr | i18n "lastModified" }}
{{ end }} {{ end }}
{{ if .Params.readingTime }} {{ if .Site.Params.readingTime }}
 |   | 
<i class="fa fa-clock-o"></i>{{ i18n "readingTime"}} {{ .ReadingTime }} {{ i18n "readTime" }} ({{ .WordCount }} {{ i18n "words" }}) <i class="fa fa-clock-o"></i>{{ i18n "readingTime"}} {{ .ReadingTime }} {{ i18n "readTime" }} ({{ .WordCount }} {{ i18n "words" }})
{{ end }} {{ end }}