feat/update-hugo #87
1 changed files with 0 additions and 4 deletions
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.
commit
33154e80d2
|
@ -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