diff options
| author | Aditya Telange <21258296+adityatelange@users.noreply.github.com> | 2020-09-23 13:12:23 +0530 |
|---|---|---|
| committer | Aditya Telange <21258296+adityatelange@users.noreply.github.com> | 2020-09-23 13:12:23 +0530 |
| commit | eb6e94d1d2134cbdb68b5a14539b4c3e9446f528 (patch) | |
| tree | a1c7502d7d932de66aba7e12331de7ae43c99939 /layouts/_default | |
| parent | c480729b8d33fe6aa0a68ef9bd486147416e13b4 (diff) | |
archive: update meta
* match with others
Diffstat (limited to 'layouts/_default')
| -rw-r--r-- | layouts/_default/archives.html | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/layouts/_default/archives.html b/layouts/_default/archives.html index 160c3ed..17fd57b 100644 --- a/layouts/_default/archives.html +++ b/layouts/_default/archives.html @@ -20,12 +20,11 @@ {{- .Title | markdownify }} </h3> <div class="archive-meta"> - {{- if or .Params.author .Site.Params.author }} - {{- .Params.author | default .Site.Params.author }} · - {{- end }} - {{- if $.Site.Params.ShowReadingTime }} - {{ .ReadingTime }}{{ i18n "read_time" | default "min read" }} · {{ end }} - {{- .Date.Format "January 2, 2006" -}} + <time>{{ .Date.Format "January 2, 2006" }}</time> + {{- if $.Site.Params.ShowReadingTime }} . + {{- $default_txt := print .ReadingTime " " "min" }} + {{- i18n "read_time" .ReadingTime | default $default_txt }}{{ end }} + {{- if or .Params.author .Site.Params.author }} . {{- .Params.author | default .Site.Params.author }}{{ end }} </div> <a class="entry-link" aria-label="post link to {{ .Title | plainify }}" href="{{ .Permalink }}"></a> </div> |
