🐛 add emojify on remaining .Title, .Site.Title, and metas

pull/84/head
Rishi Maharaj 2022-01-18 16:24:15 -08:00
parent 80533d8641
commit d61ea9f694
1 changed files with 5 additions and 5 deletions

View File

@ -7,11 +7,11 @@
<meta http-equiv="X-UA-Compatible" content="ie=edge" /> <meta http-equiv="X-UA-Compatible" content="ie=edge" />
{{/* Title */}} {{/* Title */}}
{{ if .IsHome -}} {{ if .IsHome -}}
<title>{{ .Site.Title }}</title> <title>{{ .Site.Title | emojify }}</title>
<meta name="title" content="{{ .Site.Title }}" /> <meta name="title" content="{{ .Site.Title | emojify }}" />
{{- else -}} {{- else -}}
<title>{{ .Title | emojify }} &middot; {{ .Site.Title }}</title> <title>{{ .Title | emojify }} &middot; {{ .Site.Title | emojify }}</title>
<meta name="title" content="{{ .Title }} &middot; {{ .Site.Title }}" /> <meta name="title" content="{{ .Title | emojify }} &middot; {{ .Site.Title | emojify }}" />
{{- end }} {{- end }}
{{/* Metadata */}} {{/* Metadata */}}
{{ with .Params.Description -}} {{ with .Params.Description -}}
@ -30,7 +30,7 @@
{{ end }} {{ end }}
<link rel="canonical" href="{{ .Permalink }}" /> <link rel="canonical" href="{{ .Permalink }}" />
{{ range .AlternativeOutputFormats -}} {{ range .AlternativeOutputFormats -}}
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .RelPermalink $.Site.Title | safeHTML }} {{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .RelPermalink $.Site.Title | safeHTML | emojify }}
{{ end -}} {{ end -}}
{{/* Styles */}} {{/* Styles */}}
{{ $schemeCSS := resources.Get (printf "css/schemes/%s.css" (.Site.Params.colorScheme | default "congo")) }} {{ $schemeCSS := resources.Get (printf "css/schemes/%s.css" (.Site.Params.colorScheme | default "congo")) }}