Theme: Fix summary for v0.134.0
Hugo v0.134.0 changed the return value of the content summary to always be HTML instead of plain text. So we don't need the work around any more.
This commit is contained in:
parent
f173698126
commit
102b3cb4db
1 changed files with 0 additions and 4 deletions
|
@ -1,11 +1,7 @@
|
|||
<article class="blog">
|
||||
{{- partial "blog-header.html" (dict "headingLink" true "level" 2 "page" . ) }}
|
||||
<section>
|
||||
{{- if in .RawContent "<!--more--> " }}
|
||||
{{ .Summary | safeHTML }}
|
||||
{{- else }}
|
||||
<p>{{ .Summary | safeHTML }}</p>
|
||||
{{- end }}
|
||||
{{- if .Truncated }}
|
||||
<div class="morelink"><a href="{{ .RelPermalink }}">mehr...</a></div>
|
||||
{{- end }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue