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 }}