Blog: List page with summary and pagination
This commit is contained in:
parent
a80cb42a34
commit
171fa015f1
14 changed files with 282 additions and 53 deletions
13
themes/ccchh/layouts/_default/summary.html
Normal file
13
themes/ccchh/layouts/_default/summary.html
Normal file
|
@ -0,0 +1,13 @@
|
|||
|
||||
<article>
|
||||
{{- partial "blog-header.html" (dict "subitem" true "page" . ) }}
|
||||
|
||||
{{- if in .RawContent "<!--more-->" }}
|
||||
{{ .Summary | safeHTML }}
|
||||
{{- else }}
|
||||
<p>{{ .Summary | safeHTML }}</p>
|
||||
{{- end }}
|
||||
{{- if .Truncated }}
|
||||
<div class="morelink"><a href="{{ .RelPermalink }}">mehr...</a></div>
|
||||
{{- end }}
|
||||
</article>
|
Loading…
Add table
Add a link
Reference in a new issue