Adjust summaries to account for Hugo breaking changes
Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
This commit is contained in:
parent
c5c57405b0
commit
4ff04221b0
@ -247,7 +247,7 @@ ul.post-list {
|
||||
|
||||
p.post-wordcount, p.post-status {
|
||||
text-align: center;
|
||||
margin-bottom: 0.6rem;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.series-link {
|
||||
|
@ -14,7 +14,7 @@
|
||||
{{ partial "seriesstatus.html" .page.Params.status }}
|
||||
</p>
|
||||
{{ end }}
|
||||
<p class="post-preview">{{ .page.Summary }} {{ if .page.Truncated }}...{{ end }}</p>
|
||||
<p class="post-preview">{{ partial "summary" .page }}</p>
|
||||
{{- if .linkSeries -}}
|
||||
{{- $term := index (.page.GetTerms "series") 0 -}}
|
||||
{{- with $term -}}
|
||||
|
5
layouts/partials/summary.html
Normal file
5
layouts/partials/summary.html
Normal file
@ -0,0 +1,5 @@
|
||||
{{- if .Params.summary -}}
|
||||
{{ .Params.summary }}
|
||||
{{- else -}}
|
||||
{{ .Summary | plainify | truncate 180 }}
|
||||
{{- end -}}
|
@ -7,7 +7,7 @@
|
||||
<p>{{ partial "seriesstatus.html" .Params.status }}</p>
|
||||
<p>{{ i18n "postsFromTo" (dict "from" $startYear "to" $endYear) }}</p>
|
||||
</div>
|
||||
<p>{{ .Summary }}</p>
|
||||
<p>{{ partial "summary" . }}</p>
|
||||
|
||||
<ul class="post-list">
|
||||
{{ range $pages }}
|
||||
|
Loading…
Reference in New Issue
Block a user