🐛 🔥 Fixed flinks page in multiple languages.

This commit is contained in:
elkan1788
2025-01-25 20:52:11 +08:00
parent 6d65d92943
commit abec39b9ec
10 changed files with 98 additions and 4 deletions

View File

@@ -18,18 +18,19 @@
</div>
{{ end }}
{{/** Post summary **/}}
{{ $summary := default .Site.Params.PostMeta.summary .Params.Summary }}
{{ if $summary }}
{{ if .Site.Params.PostMeta.summary }}
{{ with .Params.Description }}
<div class="post-summary-wrapper">
<div class="summary-title">
<span><i class="fa-solid fa-list"></i></span>
<span>{{ T "PostMeta.summary.title" }}</span>
</div>
<div class="summary-content">
{{ default .Summary .Params.Summary }}
{{ . }}
</div>
</div>
{{ end }}
{{ end }}
{{/** Started use the read more content anchor the need
Hugo framework min marjo version greater than 0.134.0 **/}}
{{ .Summary }}