add pin icon
This commit is contained in:
parent
2e96cb4cf1
commit
fac34001fa
|
@ -50,6 +50,7 @@ modifiedTimeIcon = "📝"
|
||||||
readingTimeIcon = "☕"
|
readingTimeIcon = "☕"
|
||||||
authorIcon = "✍️"
|
authorIcon = "✍️"
|
||||||
pagePvIcon = "👀"
|
pagePvIcon = "👀"
|
||||||
|
pinIcon = "📌"
|
||||||
tagIcon = "🏷️"
|
tagIcon = "🏷️"
|
||||||
publicationIcon = "📚"
|
publicationIcon = "📚"
|
||||||
typeIcon = "🎯"
|
typeIcon = "🎯"
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<article class="summary-card" data-ani="{{ $.Site.Params.enableUiAnimation | default "true" }}">
|
<article class="summary-card" data-ani="{{ $.Site.Params.enableUiAnimation | default "true" }}">
|
||||||
<header>
|
<header>
|
||||||
<h5 class="title h5"><a href='{{ .Permalink }}'>{{- with .Params.pinned -}}📌 {{- end -}}{{ .Title }}</a> </h5>
|
<h5 class="title h5"><a href='{{ .Permalink }}'>{{- with .Params.pinned -}}{{ ($.Site.Params.pinIcon | safeHTML) | default "📌" }} {{- end -}}{{ .Title }}</a> </h5>
|
||||||
<h6 class="subtitle caption">
|
<h6 class="subtitle caption">
|
||||||
<time title="{{ i18n "tooltip-written" }}" dir="{{ if ne ($.Param "languagedir") "rtl" }}ltr{{ else }}rtl{{ end }}">{{ ($.Site.Params.writtenTimeIcon | safeHTML) | default "📅" }}{{ .Date.Format (i18n "summary-dateformat") }} </time>
|
<time title="{{ i18n "tooltip-written" }}" dir="{{ if ne ($.Param "languagedir") "rtl" }}ltr{{ else }}rtl{{ end }}">{{ ($.Site.Params.writtenTimeIcon | safeHTML) | default "📅" }}{{ .Date.Format (i18n "summary-dateformat") }} </time>
|
||||||
{{ if ne (.Date.Format (i18n "summary-dateformat")) (.Lastmod.Format (i18n "summary-dateformat")) }}
|
{{ if ne (.Date.Format (i18n "summary-dateformat")) (.Lastmod.Format (i18n "summary-dateformat")) }}
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
|
|
||||||
<div class="summary-classic__content">
|
<div class="summary-classic__content">
|
||||||
<header>
|
<header>
|
||||||
<h5 class="title h5"><a href='{{ .Permalink }}'>{{- with .Params.pinned -}}📌 {{- end -}}{{ .Title }}</a> </h5>
|
<h5 class="title h5"><a href='{{ .Permalink }}'>{{- with .Params.pinned -}}{{ ($.Site.Params.pinIcon | safeHTML) | default "📌" }} {{- end -}}{{ .Title }}</a> </h5>
|
||||||
<h6 class="subtitle caption">
|
<h6 class="subtitle caption">
|
||||||
<time title="{{ i18n "tooltip-written" }}" dir="{{ if ne ($.Param "languagedir") "rtl" }}ltr{{ else }}rtl{{ end }}">{{ ($.Site.Params.writtenTimeIcon | safeHTML) | default "📅" }} {{ .Date.Format (i18n "summary-dateformat") }} </time>
|
<time title="{{ i18n "tooltip-written" }}" dir="{{ if ne ($.Param "languagedir") "rtl" }}ltr{{ else }}rtl{{ end }}">{{ ($.Site.Params.writtenTimeIcon | safeHTML) | default "📅" }} {{ .Date.Format (i18n "summary-dateformat") }} </time>
|
||||||
{{ if ne (.Date.Format (i18n "summary-dateformat")) (.Lastmod.Format (i18n "summary-dateformat")) }}
|
{{ if ne (.Date.Format (i18n "summary-dateformat")) (.Lastmod.Format (i18n "summary-dateformat")) }}
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
{{ $params := .Params }}
|
{{ $params := .Params }}
|
||||||
<div class="summary-compact__meta">
|
<div class="summary-compact__meta">
|
||||||
<header>
|
<header>
|
||||||
<h5 class="title h6"><a href='{{ .Permalink }}'>{{- with .Params.pinned -}}📌 {{- end -}}{{ .Title }}</a> </h5>
|
<h5 class="title h6"><a href='{{ .Permalink }}'>{{- with .Params.pinned -}}{{ ($.Site.Params.pinTimeIcon | safeHTML) | default "📌" }} {{- end -}}{{ .Title }}</a> </h5>
|
||||||
<h6 class="subtitle caption">
|
<h6 class="subtitle caption">
|
||||||
<time title="{{ i18n "tooltip-written" }}" dir="{{ if ne ($.Param "languagedir") "rtl" }}ltr{{ else }}rtl{{ end }}">{{ ($.Site.Params.writtenTimeIcon | safeHTML) | default "📅" }} {{ .Date.Format (i18n "summary-dateformat") }} </time>
|
<time title="{{ i18n "tooltip-written" }}" dir="{{ if ne ($.Param "languagedir") "rtl" }}ltr{{ else }}rtl{{ end }}">{{ ($.Site.Params.writtenTimeIcon | safeHTML) | default "📅" }} {{ .Date.Format (i18n "summary-dateformat") }} </time>
|
||||||
{{ if ne (.Date.Format (i18n "summary-dateformat")) (.Lastmod.Format (i18n "summary-dateformat")) }}
|
{{ if ne (.Date.Format (i18n "summary-dateformat")) (.Lastmod.Format (i18n "summary-dateformat")) }}
|
||||||
|
|
Loading…
Reference in New Issue