From 80533d864110d566cb08895a6dd2940a2b4652d6 Mon Sep 17 00:00:00 2001 From: Rishi Maharaj Date: Tue, 18 Jan 2022 14:15:23 -0800 Subject: [PATCH 1/3] =?UTF-8?q?=F0=9F=90=9B=20=20add=20emojify=20for=20tit?= =?UTF-8?q?le=20on=20list=20page=20and=20browser=20/=20tab=20title?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- layouts/partials/article-link.html | 4 ++-- layouts/partials/head.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/layouts/partials/article-link.html b/layouts/partials/article-link.html index 7fc87859..c816a024 100644 --- a/layouts/partials/article-link.html +++ b/layouts/partials/article-link.html @@ -6,7 +6,7 @@ href="{{ . }}" target="_blank" rel="external" - >{{ $.Title }}{{ $.Title | emojify }} {{ .Title }}{{ .Title | emojify }} {{ end }} {{ if and .Draft .Site.Params.article.showDraftLabel }} diff --git a/layouts/partials/head.html b/layouts/partials/head.html index c3ce9fd9..f6d38655 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -10,7 +10,7 @@ {{ .Site.Title }} {{- else -}} - {{ .Title }} · {{ .Site.Title }} + {{ .Title | emojify }} · {{ .Site.Title }} {{- end }} {{/* Metadata */}} From d61ea9f694fe2ceaf22c22e5c98c1468712d652c Mon Sep 17 00:00:00 2001 From: Rishi Maharaj Date: Tue, 18 Jan 2022 16:24:15 -0800 Subject: [PATCH 2/3] :bug: add emojify on remaining .Title, .Site.Title, and metas --- layouts/partials/head.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/layouts/partials/head.html b/layouts/partials/head.html index f6d38655..5b8d053a 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -7,11 +7,11 @@ {{/* Title */}} {{ if .IsHome -}} - {{ .Site.Title }} - + {{ .Site.Title | emojify }} + {{- else -}} - {{ .Title | emojify }} · {{ .Site.Title }} - + {{ .Title | emojify }} · {{ .Site.Title | emojify }} + {{- end }} {{/* Metadata */}} {{ with .Params.Description -}} @@ -30,7 +30,7 @@ {{ end }} {{ range .AlternativeOutputFormats -}} - {{ printf `` .Rel .MediaType.Type .RelPermalink $.Site.Title | safeHTML }} + {{ printf `` .Rel .MediaType.Type .RelPermalink $.Site.Title | safeHTML | emojify }} {{ end -}} {{/* Styles */}} {{ $schemeCSS := resources.Get (printf "css/schemes/%s.css" (.Site.Params.colorScheme | default "congo")) }} From 32a01325de90675519eb4ead6e1e618bfc072b5b Mon Sep 17 00:00:00 2001 From: Rishi Maharaj Date: Tue, 18 Jan 2022 16:58:52 -0800 Subject: [PATCH 3/3] =?UTF-8?q?=F0=9F=90=9B=20=20fix=20ordering=20of=20saf?= =?UTF-8?q?eHTML=20and=20emojify?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- layouts/partials/head.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 5b8d053a..3895ba3d 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -30,7 +30,7 @@ {{ end }} {{ range .AlternativeOutputFormats -}} - {{ printf `` .Rel .MediaType.Type .RelPermalink $.Site.Title | safeHTML | emojify }} + {{ printf `` .Rel .MediaType.Type .RelPermalink ($.Site.Title | emojify) | safeHTML }} {{ end -}} {{/* Styles */}} {{ $schemeCSS := resources.Get (printf "css/schemes/%s.css" (.Site.Params.colorScheme | default "congo")) }}