Skip to content

Commit

Permalink
fix: remove extra white space in summary.html
Browse files Browse the repository at this point in the history
due to multi-line comments
  • Loading branch information
reuixiy committed Jun 25, 2020
1 parent f1e3503 commit 8ebbfa8
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions layouts/partials/utils/summary.html
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
{{ if .Truncated -}}
{{- $summary := .Summary -}}
{{- if .Truncated -}}
<!-- For the CJK language, add ellipsis. -->
{{- if .Params.isCJKLanguage -}}
{{- .Summary -}}
{{- i18n "ellipsis" -}}
{{- $summary = printf `%s%s` .Summary (i18n "ellipsis") -}}
<!-- For the other languages, no need. -->
<!-- Hugo’s automatic summary split method will split until end of sentence. -->
<!-- (Tested English Only) -->
{{- else -}}
{{- .Summary -}}
{{- end -}}
{{- else -}}
{{- .Summary -}}
{{- end -}}
{{- return $summary -}}

0 comments on commit 8ebbfa8

Please sign in to comment.