💄 Add Markdown and Emoji support to parameters

pull/24/head
James Panther 2021-10-27 10:34:50 +11:00
parent b1ae418cc3
commit 4c13c4d776
No known key found for this signature in database
GPG Key ID: D36F789E45745D17
5 changed files with 12 additions and 8 deletions

View File

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

View File

@ -8,7 +8,7 @@
<a class="flex" href="{{ .NextInSection.RelPermalink }}">
<span class="mr-3 article-pagination-direction">&larr;</span>
<span class="flex flex-col">
<span class="article-pagination-title">{{ .NextInSection.Title }}</span>
<span class="article-pagination-title">{{ .NextInSection.Title | emojify }}</span>
<span class="-mt-1 text-xs text-neutral-400 dark:text-neutral-500">
{{ if .Params.showDate | default (.Site.Params.article.showDate | default true) }}
{{ partial "meta/date.html" . }}
@ -22,7 +22,7 @@
{{ if .PrevInSection }}
<a class="flex text-right" href="{{ .PrevInSection.RelPermalink }}">
<span class="flex flex-col">
<span class="article-pagination-title">{{ .PrevInSection.Title }}</span>
<span class="article-pagination-title">{{ .PrevInSection.Title | emojify }}</span>
<span class="-mt-1 text-xs text-neutral-400 dark:text-neutral-500">
{{ if .Params.showDate | default (.Site.Params.article.showDate | default true) }}
{{ partial "meta/date.html" . }}

View File

@ -4,9 +4,9 @@
<img class="w-24 h-24 !mt-0 !mb-0 mr-4 rounded-full" src="{{ . | relURL }}" />
{{ end }}
<div>
{{ with .Site.Author.name }}
{{ with .Site.Author.name | markdownify | emojify }}
<div class="text-[0.6rem] leading-3 text-neutral-400 dark:text-neutral-500 uppercase">
{{ i18n "author.byline_title" | emojify }}
{{ i18n "author.byline_title" | markdownify | emojify }}
</div>
<div class="font-semibold leading-6 text-neutral-800 dark:text-neutral-300">
{{ . }}

View File

@ -9,7 +9,7 @@
class="hover:underline hover:underline-primary-500 hover:underline-thickness-bold hover:underline-offset-small"
href="{{ .URL }}"
title="{{ .Title }}"
>{{ .Name }}</a
>{{ .Name | markdownify | emojify }}</a
>
</li>
{{ end }}
@ -23,7 +23,7 @@
{{- else }}
&copy;
{{ now.Format "2006" }}
{{ .Site.Author.name }}
{{ .Site.Author.name | markdownify | emojify }}
{{- end }}
</p>
{{/* Theme attribution */}}

View File

@ -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 }}</a
>{{ .Site.Title | markdownify | emojify }}</a
>
{{- end }}
</div>
@ -34,7 +34,7 @@
class="hover:underline hover:underline-primary-500 hover:underline-thickness-bold hover:underline-offset-small"
href="{{ .URL }}"
title="{{ .Title }}"
>{{ .Name }}</a
>{{ .Name | markdownify | emojify }}</a
>
</li>
{{ end }}