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
8cae9bfc9a
commit
33154e80d2
1 changed files with 0 additions and 4 deletions
|
@ -1,11 +1,7 @@
|
||||||
<article class="blog">
|
<article class="blog">
|
||||||
{{- partial "blog-header.html" (dict "headingLink" true "level" 2 "page" . ) }}
|
{{- partial "blog-header.html" (dict "headingLink" true "level" 2 "page" . ) }}
|
||||||
<section>
|
<section>
|
||||||
{{- if in .RawContent "<!--more--> " }}
|
|
||||||
{{ .Summary | safeHTML }}
|
{{ .Summary | safeHTML }}
|
||||||
{{- else }}
|
|
||||||
<p>{{ .Summary | safeHTML }}</p>
|
|
||||||
{{- end }}
|
|
||||||
{{- if .Truncated }}
|
{{- if .Truncated }}
|
||||||
<div class="morelink"><a href="{{ .RelPermalink }}">mehr...</a></div>
|
<div class="morelink"><a href="{{ .RelPermalink }}">mehr...</a></div>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue