diff --git a/exampleSite/config/_default/params.toml b/exampleSite/config/_default/params.toml index 1b8be52..08dd35e 100644 --- a/exampleSite/config/_default/params.toml +++ b/exampleSite/config/_default/params.toml @@ -50,6 +50,7 @@ modifiedTimeIcon = "📝" readingTimeIcon = "☕" authorIcon = "✍️" pagePvIcon = "👀" +pinIcon = "📌" tagIcon = "🏷️" publicationIcon = "📚" typeIcon = "🎯" diff --git a/layouts/partials/summary/card.html b/layouts/partials/summary/card.html index 0f3b0c9..ed8187d 100644 --- a/layouts/partials/summary/card.html +++ b/layouts/partials/summary/card.html @@ -1,6 +1,6 @@
-
{{- with .Params.pinned -}}📌 {{- end -}}{{ .Title }}
+
{{- with .Params.pinned -}}{{ ($.Site.Params.pinIcon | safeHTML) | default "📌" }} {{- end -}}{{ .Title }}
{{ if ne (.Date.Format (i18n "summary-dateformat")) (.Lastmod.Format (i18n "summary-dateformat")) }} diff --git a/layouts/partials/summary/classic.html b/layouts/partials/summary/classic.html index d87c107..db71419 100644 --- a/layouts/partials/summary/classic.html +++ b/layouts/partials/summary/classic.html @@ -17,7 +17,7 @@
-
{{- with .Params.pinned -}}📌 {{- end -}}{{ .Title }}
+
{{- with .Params.pinned -}}{{ ($.Site.Params.pinIcon | safeHTML) | default "📌" }} {{- end -}}{{ .Title }}
{{ if ne (.Date.Format (i18n "summary-dateformat")) (.Lastmod.Format (i18n "summary-dateformat")) }} diff --git a/layouts/partials/summary/compact.html b/layouts/partials/summary/compact.html index 2074643..a9df179 100644 --- a/layouts/partials/summary/compact.html +++ b/layouts/partials/summary/compact.html @@ -3,7 +3,7 @@ {{ $params := .Params }}
-
{{- with .Params.pinned -}}📌 {{- end -}}{{ .Title }}
+
{{- with .Params.pinned -}}{{ ($.Site.Params.pinTimeIcon | safeHTML) | default "📌" }} {{- end -}}{{ .Title }}
{{ if ne (.Date.Format (i18n "summary-dateformat")) (.Lastmod.Format (i18n "summary-dateformat")) }}