i18n reading-time added

This commit is contained in:
zzossig 2019-12-24 23:01:47 +09:00
parent 543f5e4d87
commit 2a0d8ca0bc
7 changed files with 13 additions and 4 deletions

View File

@ -4,6 +4,9 @@ other = "Search"
[summary-dateformat] [summary-dateformat]
other = "Jan 2, 2006" other = "Jan 2, 2006"
[reading-time]
other = "min read"
[taxo-tags] [taxo-tags]
other = "Tags" other = "Tags"

View File

@ -4,6 +4,9 @@ other = "검색"
[summary-dateformat] [summary-dateformat]
other = "2006년 01월 02일" other = "2006년 01월 02일"
[reading-time]
other = "min read"
[taxo-tags] [taxo-tags]
other = "태그" other = "태그"

View File

@ -4,6 +4,9 @@ other = "搜索"
[summary-dateformat] [summary-dateformat]
other = "2006年 01月 02日" other = "2006年 01月 02日"
[reading-time]
other = "分钟"
[taxo-tags] [taxo-tags]
other = "标签" other = "标签"

View File

@ -1,5 +1,5 @@
<div class="single__infos"> <div class="single__infos">
🕓 {{ .Date.Format (i18n "single-dateformat") }} {{ if .GitInfo }} &middot <span class="single__info"> 📝 {{ .Lastmod.Format (i18n "summary-dateformat") }} </span> {{ end }} &middot <span class="single__info"> ☕ {{ .ReadingTime }} min read </span> 🕓 {{ .Date.Format (i18n "single-dateformat") }} {{ if .GitInfo }} &middot <span class="single__info"> 📝 {{ .Lastmod.Format (i18n "summary-dateformat") }} </span> {{ end }} &middot <span class="single__info"> ☕ {{ .ReadingTime }} {{ i18n "reading-time" }} </span>
<span class="single__info"> <span class="single__info">
{{ if (and .Site.Params.enableBusuanzi .Site.Params.busuanziPagePV) }} &middot 👀<span id="busuanzi_value_page_pv">...</span> {{ i18n "counter-page-pv" }}{{ end }} {{ if (and .Site.Params.enableBusuanzi .Site.Params.busuanziPagePV) }} &middot 👀<span id="busuanzi_value_page_pv">...</span> {{ i18n "counter-page-pv" }}{{ end }}
</span> </span>

View File

@ -1,7 +1,7 @@
<article class="summary-card"> <article class="summary-card">
<header> <header>
<h5 class="title h5"><a href='{{ .Permalink }}'> {{ .Title }}</a> </h5> <h5 class="title h5"><a href='{{ .Permalink }}'> {{ .Title }}</a> </h5>
<h6 class="subtitle caption">🕓 {{ .Date.Format (i18n "summary-dateformat") }} {{ if .GitInfo }} &middot 📝 {{ .Lastmod.Format (i18n "summary-dateformat") }} {{ end }} &middot ☕{{ .ReadingTime }} min read</h6> <h6 class="subtitle caption">🕓 {{ .Date.Format (i18n "summary-dateformat") }} {{ if .GitInfo }} &middot 📝 {{ .Lastmod.Format (i18n "summary-dateformat") }} {{ end }} &middot ☕{{ .ReadingTime }} {{ i18n "reading-time" }}</h6>
</header> </header>
{{ $params := .Params }} {{ $params := .Params }}
<div class="summary-card__content"> <div class="summary-card__content">

View File

@ -11,7 +11,7 @@
<div class="summary-classic__content"> <div class="summary-classic__content">
<header> <header>
<h5 class="title h5"><a href='{{ .Permalink }}'> {{ .Title }}</a> </h5> <h5 class="title h5"><a href='{{ .Permalink }}'> {{ .Title }}</a> </h5>
<h6 class="subtitle caption">🕓 {{ .Date.Format (i18n "summary-dateformat") }} {{ if .GitInfo }} &middot 📝 {{ .Lastmod.Format (i18n "summary-dateformat") }} {{ end }} &middot ☕{{ .ReadingTime }} min read <h6 class="subtitle caption">🕓 {{ .Date.Format (i18n "summary-dateformat") }} {{ if .GitInfo }} &middot 📝 {{ .Lastmod.Format (i18n "summary-dateformat") }} {{ end }} &middot ☕{{ .ReadingTime }} {{ i18n "reading-time" }}
</h6> </h6>
</header> </header>
<div> <div>

View File

@ -4,7 +4,7 @@
<div class="summary-compact__meta"> <div class="summary-compact__meta">
<header> <header>
<h5 class="title h6"><a href='{{ .Permalink }}'> {{ .Title }}</a> </h5> <h5 class="title h6"><a href='{{ .Permalink }}'> {{ .Title }}</a> </h5>
<h6 class="subtitle caption">🕓 {{ .Date.Format (i18n "summary-dateformat") }} {{ if .GitInfo }} &middot 📝 {{ .Lastmod.Format (i18n "summary-dateformat") }} {{ end }} &middot ☕{{ .ReadingTime }} min read <h6 class="subtitle caption">🕓 {{ .Date.Format (i18n "summary-dateformat") }} {{ if .GitInfo }} &middot 📝 {{ .Lastmod.Format (i18n "summary-dateformat") }} {{ end }} &middot ☕{{ .ReadingTime }} {{ i18n "reading-time" }}
</h6> </h6>
</header> </header>
</div> </div>