Skip to content

Commit

Permalink
fix: remove addtional ellipsis for summary in CJK langs
Browse files Browse the repository at this point in the history
  • Loading branch information
reuixiy committed Oct 27, 2024
1 parent 9a9827e commit 9e488a5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions layouts/partials/utils/summary.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
{{- $summary := .Summary -}}
{{/*
2024-10-27 @reuixiy I found that Hugo now applies the same logic for CJK language,
so we don’t need to add ellipsis additionally now.
*/}}
{{/*
{{- if .Truncated -}}
<!-- For the CJK language, add ellipsis. -->
{{- if .Params.isCJKLanguage -}}
Expand All @@ -8,4 +13,5 @@
<!-- (Tested English Only) -->
{{- end -}}
{{- end -}}
*/}}
{{- return $summary -}}

0 comments on commit 9e488a5

Please sign in to comment.