From faa7a679fac263106b88139a3e3fefa8f3b5ee70 Mon Sep 17 00:00:00 2001 From: weibin Date: Tue, 22 Mar 2022 11:08:30 +0800 Subject: [PATCH] title support emoji --- layouts/_default/summary.html | 2 +- layouts/partials/single/footer.html | 4 ++-- layouts/posts/single.html | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/layouts/_default/summary.html b/layouts/_default/summary.html index 990b6a9e..470bf50c 100644 --- a/layouts/_default/summary.html +++ b/layouts/_default/summary.html @@ -19,7 +19,7 @@ {{- /* Title */ -}}

- {{ .Title }} + {{ .Title | emojify }}

{{- /* Meta */ -}} diff --git a/layouts/partials/single/footer.html b/layouts/partials/single/footer.html index c5b682f4..3b37d5d9 100644 --- a/layouts/partials/single/footer.html +++ b/layouts/partials/single/footer.html @@ -63,10 +63,10 @@
{{- if .PrevInSection -}} - + {{- end -}} {{ if .NextInSection }} - + {{- end -}}
diff --git a/layouts/posts/single.html b/layouts/posts/single.html index 8f788a2a..20869726 100644 --- a/layouts/posts/single.html +++ b/layouts/posts/single.html @@ -20,7 +20,7 @@
{{- /* Title */ -}} -

{{ .Title }}

+

{{ .Title | emojify }}

{{- /* Subtitle */ -}} {{- with $params.subtitle -}}