Merge pull request #659 from xiaobinqt/dev_weibin

title support emoji
This commit is contained in:
Dillon
2022-05-23 23:05:13 +08:00
committed by GitHub
6 changed files with 7 additions and 7 deletions

View File

@@ -22,7 +22,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.section.dateFormat | default "01-02" | .Date.Format -}} {{- $.Site.Params.section.dateFormat | default "01-02" | .Date.Format -}}

View File

@@ -19,7 +19,7 @@
{{- /* Title */ -}} {{- /* Title */ -}}
<h1 class="single-title" itemprop="name headline"> <h1 class="single-title" itemprop="name headline">
<a href="{{ .RelPermalink }}">{{ .Title }}</a> <a href="{{ .RelPermalink }}">{{ .Title | emojify }}</a>
</h1> </h1>
{{- /* Meta */ -}} {{- /* Meta */ -}}

View File

@@ -63,10 +63,10 @@
<div class="post-nav"> <div class="post-nav">
{{- if .PrevInSection -}} {{- if .PrevInSection -}}
<a href="{{ .PrevInSection.RelPermalink }}" class="prev" rel="prev" title="{{ .PrevInSection.Title }}"><i class="fas fa-angle-left fa-fw" aria-hidden="true"></i>{{ .PrevInSection.Title }}</a> <a href="{{ .PrevInSection.RelPermalink }}" class="prev" rel="prev" title="{{ .PrevInSection.Title }}"><i class="fas fa-angle-left fa-fw" aria-hidden="true"></i>{{ .PrevInSection.Title | emojify }}</a>
{{- end -}} {{- end -}}
{{ if .NextInSection }} {{ if .NextInSection }}
<a href="{{ .NextInSection.RelPermalink }}" class="next" rel="next" title="{{ .NextInSection.Title }}">{{ .NextInSection.Title }}<i class="fas fa-angle-right fa-fw" aria-hidden="true"></i></a> <a href="{{ .NextInSection.RelPermalink }}" class="next" rel="next" title="{{ .NextInSection.Title }}">{{ .NextInSection.Title | emojify }}<i class="fas fa-angle-right fa-fw" aria-hidden="true"></i></a>
{{- end -}} {{- end -}}
</div> </div>
</div> </div>

View File

@@ -20,7 +20,7 @@
<article class="page single"> <article class="page single">
{{- /* Title */ -}} {{- /* Title */ -}}
<h1 class="single-title animate__animated animate__flipInX">{{ .Title }}</h1> <h1 class="single-title animate__animated animate__flipInX">{{ .Title | emojify }}</h1>
{{- /* Subtitle */ -}} {{- /* Subtitle */ -}}
{{- with $params.subtitle -}} {{- with $params.subtitle -}}

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