💄 Add Markdown and Emoji support to parameters

This commit is contained in:
James Panther
2021-10-27 10:34:50 +11:00
parent b1ae418cc3
commit 4c13c4d776
5 changed files with 12 additions and 8 deletions
+2 -2
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" . }}
+2 -2
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">
{{ . }}
+2 -2
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 */}}
+2 -2
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 }}