Merge pull request #28 from ress997/patch-1

fix(article): last updated time error

Co-authored-by: Ress <48500247+ress997@users.noreply.github.com>
This commit is contained in:
Jimmy Cai 2020-10-09 19:11:26 +02:00 committed by GitHub
commit 2a3123bfe5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 3 deletions

View File

@ -5,6 +5,7 @@ date = "2019-02-28"
aliases = ["about-us", "about-hugo", "contact"] aliases = ["about-us", "about-hugo", "contact"]
author = "Hugo Authors" author = "Hugo Authors"
license = "CC BY-NC-ND" license = "CC BY-NC-ND"
lastmod = "2020-10-09"
+++ +++
Written in Go, Hugo is an open source static site generator available under the [Apache Licence 2.0.](https://github.com/gohugoio/hugo/blob/master/LICENSE) Hugo supports TOML, YAML and JSON data file types, Markdown and HTML content files and uses shortcodes to add rich content. Other notable features are taxonomies, multilingual mode, image processing, custom output formats, HTML/CSS/JS minification and support for Sass SCSS workflows. Written in Go, Hugo is an open source static site generator available under the [Apache Licence 2.0.](https://github.com/gohugoio/hugo/blob/master/LICENSE) Hugo supports TOML, YAML and JSON data file types, Markdown and HTML content files and uses shortcodes to add rich content. Other notable features are taxonomies, multilingual mode, image processing, custom output formats, HTML/CSS/JS minification and support for Sass SCSS workflows.

View File

@ -5,7 +5,7 @@
other = "Related contents" other = "Related contents"
[lastUpdatedOn] [lastUpdatedOn]
other ="Last updated on {{ .Count }}" other ="Last updated on"
[widgetArchivesTitle] [widgetArchivesTitle]
other = "Archives" other = "Archives"

View File

@ -5,7 +5,7 @@
other = "相关文章" other = "相关文章"
[lastUpdatedOn] [lastUpdatedOn]
other ="最后更新于 {{ .Count }}" other ="最后更新于"
[widgetArchivesTitle] [widgetArchivesTitle]
other = "归档" other = "归档"

View File

@ -12,7 +12,7 @@
<section class="article-time"> <section class="article-time">
{{ (resources.Get "icons/clock.svg").Content | safeHTML }} {{ (resources.Get "icons/clock.svg").Content | safeHTML }}
<span class="article-time--modified"> <span class="article-time--modified">
{{ T "lastUpdatedOn" (.Lastmod.Format ( or .Site.Params.dateFormat.lastUpdated "Jan 02, 2006 15:04 MST" )) }} {{ T "lastUpdatedOn" }} {{ .Lastmod.Format ( or .Site.Params.dateFormat.lastUpdated "Jan 02, 2006 15:04 MST" ) }}
</span> </span>
</section> </section>
{{- end -}} {{- end -}}