This commit is contained in:
Robert Austin 2019-02-17 18:43:41 +10:00
parent dcdde20b7c
commit ae72d8b0f5
15 changed files with 118 additions and 75 deletions

View file

@ -10,7 +10,7 @@
</div>
{{ range.Pages }}
<div class="content">{{.Content}}</div>
{{ .Render "summary" }}
{{ end }}
{{ end }}

View file

@ -1,7 +1,7 @@
<div class="summary">
<div class="summary mb-2">
{{ if .Params.image }}
<img alt="{{ .Title }}" src="{{ .Params.image }}" />
{{ end}}
<h2><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
{{ .Content | truncate 100 }}
<h2 class="title-summary"><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
<p>{{ .Content | plainify | truncate 140 }}</p>
</div>