Update theme metedata/reading time
This commit is contained in:
parent
930822c62f
commit
cbdd093a28
|
@ -17,6 +17,8 @@ pygmentscodefencesguesssyntax = true
|
|||
googleAnalytics = "UA-60089-16"
|
||||
disqusShortname = ""
|
||||
|
||||
enableGitInfo = true
|
||||
|
||||
[permalinks]
|
||||
posts = "/:year/:month/:day/:slug"
|
||||
|
||||
|
|
|
@ -132,4 +132,9 @@ small {
|
|||
|
||||
.meta {
|
||||
color: $meta;
|
||||
}
|
||||
}
|
||||
|
||||
.reading-time {
|
||||
display: inline-block;
|
||||
float: right;
|
||||
}
|
||||
|
|
|
@ -1,16 +1,26 @@
|
|||
{{ $lastmod := .Lastmod.Format "2006-01-02" }}
|
||||
{{ $date := .Date.Format "2006-01-02" }}
|
||||
<article>
|
||||
<h1>{{ .Title }}</h1>
|
||||
<div class="meta">
|
||||
<time datetime='{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}'>
|
||||
Posted: <time datetime='{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}'>
|
||||
{{ .Date.Format (.Site.Params.dateFormat | default "2006-01-02" ) }}
|
||||
</time>
|
||||
-
|
||||
tagged
|
||||
{{ if not (eq $lastmod $date) }}
|
||||
- Last updated: <time datetime='{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}'>
|
||||
{{ .Lastmod.Format (.Site.Params.dateFormat | default "2006-01-02" ) }}
|
||||
</time>
|
||||
{{ end }}
|
||||
|
||||
<div class="reading-time">
|
||||
~{{ .FuzzyWordCount }}wrds
|
||||
(~{{ .ReadingTime }}min)
|
||||
</div>
|
||||
|
||||
<br />
|
||||
|
||||
Tagged
|
||||
{{ with .Page.Params.Tags }}{{ partial "taxonomy/tags.html" . }}{{ end }}
|
||||
-
|
||||
{{ .ReadingTime }}min
|
||||
-
|
||||
{{ .FuzzyWordCount }}wrds
|
||||
</div>
|
||||
{{ .Content }}
|
||||
</article>
|
||||
</article>
|
||||
|
|
Loading…
Reference in New Issue
Block a user