From 4c13c4d7769309b900c02dcf91869a9e07f8e747 Mon Sep 17 00:00:00 2001 From: James Panther <4462786+jpanther@users.noreply.github.com> Date: Wed, 27 Oct 2021 10:34:50 +1100 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84=20Add=20Markdown=20and=20Emoji=20s?= =?UTF-8?q?upport=20to=20parameters?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 4 ++++ layouts/partials/article-pagination.html | 4 ++-- layouts/partials/author.html | 4 ++-- layouts/partials/footer.html | 4 ++-- layouts/partials/header.html | 4 ++-- 5 files changed, 12 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3502b179..f0e8bb3c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), - French translation ([#18](https://github.com/jpanther/congo/pull/18)) +### Changed + +- Site name, author and menus will now render Markdown and Emoji + ## [1.4.0] - 2021-10-20 ### Added diff --git a/layouts/partials/article-pagination.html b/layouts/partials/article-pagination.html index ffab5614..622aaf4a 100644 --- a/layouts/partials/article-pagination.html +++ b/layouts/partials/article-pagination.html @@ -8,7 +8,7 @@ - {{ .NextInSection.Title }} + {{ .NextInSection.Title | emojify }} {{ if .Params.showDate | default (.Site.Params.article.showDate | default true) }} {{ partial "meta/date.html" . }} @@ -22,7 +22,7 @@ {{ if .PrevInSection }} - {{ .PrevInSection.Title }} + {{ .PrevInSection.Title | emojify }} {{ if .Params.showDate | default (.Site.Params.article.showDate | default true) }} {{ partial "meta/date.html" . }} diff --git a/layouts/partials/author.html b/layouts/partials/author.html index 9dd7a56c..5d8ef426 100644 --- a/layouts/partials/author.html +++ b/layouts/partials/author.html @@ -4,9 +4,9 @@ {{ end }}
- {{ with .Site.Author.name }} + {{ with .Site.Author.name | markdownify | emojify }}
- {{ i18n "author.byline_title" | emojify }} + {{ i18n "author.byline_title" | markdownify | emojify }}
{{ . }} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 05b91696..27e1d923 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -9,7 +9,7 @@ class="hover:underline hover:underline-primary-500 hover:underline-thickness-bold hover:underline-offset-small" href="{{ .URL }}" title="{{ .Title }}" - >{{ .Name }}{{ .Name | markdownify | emojify }} {{ end }} @@ -23,7 +23,7 @@ {{- else }} © {{ now.Format "2006" }} - {{ .Site.Author.name }} + {{ .Site.Author.name | markdownify | emojify }} {{- end }}

{{/* Theme attribution */}} diff --git a/layouts/partials/header.html b/layouts/partials/header.html index d0b195ba..0a6a6778 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -20,7 +20,7 @@ class="hover:underline hover:underline-primary-500 hover:underline-thickness-bold hover:underline-offset-small" rel="me" href="{{ "/" | relURL }}" - >{{ .Site.Title }}{{ .Site.Title | markdownify | emojify }} {{- end }}
@@ -34,7 +34,7 @@ class="hover:underline hover:underline-primary-500 hover:underline-thickness-bold hover:underline-offset-small" href="{{ .URL }}" title="{{ .Title }}" - >{{ .Name }}{{ .Name | markdownify | emojify }} {{ end }}