🔀 Merge pull request #84 from rshmhrj/emojify-titles

Fixes #83
pull/90/head
James Panther 2022-01-19 12:12:28 +11:00 committed by GitHub
commit b458f01223
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 7 deletions

View File

@ -6,7 +6,7 @@
href="{{ . }}" href="{{ . }}"
target="_blank" target="_blank"
rel="external" rel="external"
>{{ $.Title }}</a >{{ $.Title | emojify }}</a
> >
<span <span
class="-mt-2 text-xs cursor-default text-neutral-400 dark:text-neutral-500" class="-mt-2 text-xs cursor-default text-neutral-400 dark:text-neutral-500"
@ -18,7 +18,7 @@
<a <a
class="hover:underline hover:underline-primary-500 hover:underline-offset-small text-neutral-800 dark:text-neutral" class="hover:underline hover:underline-primary-500 hover:underline-offset-small text-neutral-800 dark:text-neutral"
href="{{ .RelPermalink }}" href="{{ .RelPermalink }}"
>{{ .Title }}</a >{{ .Title | emojify }}</a
> >
{{ end }} {{ end }}
{{ if and .Draft .Site.Params.article.showDraftLabel }} {{ if and .Draft .Site.Params.article.showDraftLabel }}

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 }} &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 | emojify) | safeHTML }}
{{ 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")) }}