From b7169d22592b2860edd044933a61f639cde4aa43 Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Sun, 8 Nov 2020 23:07:23 +0530 Subject: [PATCH] language-switch: enable emojify - languageName: ":country_emoji:" can now be displayed as emoji --- layouts/_default/single.html | 2 +- layouts/partials/header.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 2d39c802..d4476eda 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -16,7 +16,7 @@
  • {{- if (and $.Site.Params.displayFullLangName (.Language.LanguageName)) }} - {{- .Language.LanguageName | humanize -}} + {{- .Language.LanguageName | emojify | humanize -}} {{- else }} {{- .Lang | humanize -}} {{- end -}} diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 0a433b91..c68db5c2 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -87,7 +87,7 @@ {{- if (and $.Site.Params.displayFullLangName (.Language.LanguageName)) }} - {{- .Language.LanguageName | humanize -}} + {{- .Language.LanguageName | emojify | humanize -}} {{- else }} {{- .Lang | humanize -}} {{- end -}}