From ce9ec4ea07e28a95508287b25d7e71a771c27ba2 Mon Sep 17 00:00:00 2001 From: zzossig Date: Thu, 30 Jan 2020 00:12:50 +0900 Subject: [PATCH] author, authorEmoji in summary bug fixed --- layouts/partials/summary/card.html | 2 +- layouts/partials/summary/classic.html | 2 +- layouts/partials/summary/compact.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/layouts/partials/summary/card.html b/layouts/partials/summary/card.html index 12c421b..f641243 100644 --- a/layouts/partials/summary/card.html +++ b/layouts/partials/summary/card.html @@ -1,7 +1,7 @@
{{ .Title }}
-
{{ if .GitInfo }} {{ end }} · ☕ {{ .ReadingTime }} {{ i18n "reading-time" }}{{ with .Params.Author }}· {{if .Params.AuthorEmoji }}{{ .Params.AuthorEmoji }}{{ else }}✍️{{ end }} {{ . }}{{ end }}
+
{{ if .GitInfo }} {{ end }} · ☕ {{ .ReadingTime }} {{ i18n "reading-time" }}{{ with $.Param "author" }}· {{if $.Param "AuthorEmoji" }}{{ $.Param "AuthorEmoji" }}{{ else }}✍️{{ end }} {{ . }}{{ end }}
{{ $params := .Params }}
diff --git a/layouts/partials/summary/classic.html b/layouts/partials/summary/classic.html index 0b76f69..cc3cc6a 100644 --- a/layouts/partials/summary/classic.html +++ b/layouts/partials/summary/classic.html @@ -13,7 +13,7 @@
{{ .Title }}
-
{{ if .GitInfo }} {{ end }} · ☕ {{ .ReadingTime }} {{ i18n "reading-time" }} {{ with .Params.Author }}· {{if $params.AuthorEmoji }}{{ $params.AuthorEmoji }}{{ else }}✍️{{ end }} {{ . }}{{ end }}
+
{{ if .GitInfo }} {{ end }} · ☕ {{ .ReadingTime }} {{ i18n "reading-time" }} {{ with $params.Author }}· {{if $params.AuthorEmoji }}{{ $params.AuthorEmoji }}{{ else }}✍️{{ end }} {{ . }}{{ end }}
diff --git a/layouts/partials/summary/compact.html b/layouts/partials/summary/compact.html index 69d8c57..05d72c7 100644 --- a/layouts/partials/summary/compact.html +++ b/layouts/partials/summary/compact.html @@ -4,7 +4,7 @@
{{ .Title }}
-
{{ if .GitInfo }} {{ end }} · ☕ {{ .ReadingTime }} {{ i18n "reading-time" }}{{ with .Params.Author }}· {{if $params.AuthorEmoji }}{{ $params.AuthorEmoji }}{{ else }}✍️{{ end }} {{ . }}{{ end }}
+
{{ if .GitInfo }} {{ end }} · ☕ {{ .ReadingTime }} {{ i18n "reading-time" }}{{ with $params.Author }}· {{if $params.AuthorEmoji }}{{ $params.AuthorEmoji }}{{ else }}✍️{{ end }} {{ . }}{{ end }}
{{ range $params.tags }}