mirror of https://github.com/jpanther/congo.git
💄 Add Markdown and Emoji support to parameters
parent
b1ae418cc3
commit
4c13c4d776
|
@ -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))
|
- 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
|
## [1.4.0] - 2021-10-20
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
<a class="flex" href="{{ .NextInSection.RelPermalink }}">
|
<a class="flex" href="{{ .NextInSection.RelPermalink }}">
|
||||||
<span class="mr-3 article-pagination-direction">←</span>
|
<span class="mr-3 article-pagination-direction">←</span>
|
||||||
<span class="flex flex-col">
|
<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">
|
<span class="-mt-1 text-xs text-neutral-400 dark:text-neutral-500">
|
||||||
{{ if .Params.showDate | default (.Site.Params.article.showDate | default true) }}
|
{{ if .Params.showDate | default (.Site.Params.article.showDate | default true) }}
|
||||||
{{ partial "meta/date.html" . }}
|
{{ partial "meta/date.html" . }}
|
||||||
|
@ -22,7 +22,7 @@
|
||||||
{{ if .PrevInSection }}
|
{{ if .PrevInSection }}
|
||||||
<a class="flex text-right" href="{{ .PrevInSection.RelPermalink }}">
|
<a class="flex text-right" href="{{ .PrevInSection.RelPermalink }}">
|
||||||
<span class="flex flex-col">
|
<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">
|
<span class="-mt-1 text-xs text-neutral-400 dark:text-neutral-500">
|
||||||
{{ if .Params.showDate | default (.Site.Params.article.showDate | default true) }}
|
{{ if .Params.showDate | default (.Site.Params.article.showDate | default true) }}
|
||||||
{{ partial "meta/date.html" . }}
|
{{ partial "meta/date.html" . }}
|
||||||
|
|
|
@ -4,9 +4,9 @@
|
||||||
<img class="w-24 h-24 !mt-0 !mb-0 mr-4 rounded-full" src="{{ . | relURL }}" />
|
<img class="w-24 h-24 !mt-0 !mb-0 mr-4 rounded-full" src="{{ . | relURL }}" />
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<div>
|
<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">
|
<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>
|
||||||
<div class="font-semibold leading-6 text-neutral-800 dark:text-neutral-300">
|
<div class="font-semibold leading-6 text-neutral-800 dark:text-neutral-300">
|
||||||
{{ . }}
|
{{ . }}
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
class="hover:underline hover:underline-primary-500 hover:underline-thickness-bold hover:underline-offset-small"
|
class="hover:underline hover:underline-primary-500 hover:underline-thickness-bold hover:underline-offset-small"
|
||||||
href="{{ .URL }}"
|
href="{{ .URL }}"
|
||||||
title="{{ .Title }}"
|
title="{{ .Title }}"
|
||||||
>{{ .Name }}</a
|
>{{ .Name | markdownify | emojify }}</a
|
||||||
>
|
>
|
||||||
</li>
|
</li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@ -23,7 +23,7 @@
|
||||||
{{- else }}
|
{{- else }}
|
||||||
©
|
©
|
||||||
{{ now.Format "2006" }}
|
{{ now.Format "2006" }}
|
||||||
{{ .Site.Author.name }}
|
{{ .Site.Author.name | markdownify | emojify }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
</p>
|
</p>
|
||||||
{{/* Theme attribution */}}
|
{{/* Theme attribution */}}
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
class="hover:underline hover:underline-primary-500 hover:underline-thickness-bold hover:underline-offset-small"
|
class="hover:underline hover:underline-primary-500 hover:underline-thickness-bold hover:underline-offset-small"
|
||||||
rel="me"
|
rel="me"
|
||||||
href="{{ "/" | relURL }}"
|
href="{{ "/" | relURL }}"
|
||||||
>{{ .Site.Title }}</a
|
>{{ .Site.Title | markdownify | emojify }}</a
|
||||||
>
|
>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
</div>
|
</div>
|
||||||
|
@ -34,7 +34,7 @@
|
||||||
class="hover:underline hover:underline-primary-500 hover:underline-thickness-bold hover:underline-offset-small"
|
class="hover:underline hover:underline-primary-500 hover:underline-thickness-bold hover:underline-offset-small"
|
||||||
href="{{ .URL }}"
|
href="{{ .URL }}"
|
||||||
title="{{ .Title }}"
|
title="{{ .Title }}"
|
||||||
>{{ .Name }}</a
|
>{{ .Name | markdownify | emojify }}</a
|
||||||
>
|
>
|
||||||
</li>
|
</li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
Loading…
Reference in New Issue