title support emoji

This commit is contained in:
weibin 2022-03-22 21:03:45 +08:00
parent 765b28f663
commit e12ad76790
2 changed files with 2 additions and 2 deletions

View file

@ -29,7 +29,7 @@
{{- range .Pages -}} {{- range .Pages -}}
<article class="archive-item"> <article class="archive-item">
<a href="{{ .RelPermalink }}" class="archive-item-link"> <a href="{{ .RelPermalink }}" class="archive-item-link">
{{- .Title -}} {{- .Title | emojify -}}
</a> </a>
<span class="archive-item-date"> <span class="archive-item-date">
{{- $.Site.Params.list.dateFormat | default "01-02" | .Date.Format -}} {{- $.Site.Params.list.dateFormat | default "01-02" | .Date.Format -}}

View file

@ -30,7 +30,7 @@
{{- range first 5 $pages -}} {{- range first 5 $pages -}}
<article class="archive-item"> <article class="archive-item">
<a href="{{ .RelPermalink }}" class="archive-item-link"> <a href="{{ .RelPermalink }}" class="archive-item-link">
{{- .Title -}} {{- .Title | emojify -}}
</a> </a>
</article> </article>
{{- end -}} {{- end -}}