Merge pull request #20 from remeika/summary

Use Hugo's content summary feature for documentation overview
This commit is contained in:
Robert Austin 2019-08-06 14:40:35 +10:00 committed by GitHub
commit f7bbb030ca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 2 deletions

View file

@ -3,5 +3,5 @@
<img alt="{{ .Title }}" src="{{ .Params.image }}" />
{{ end}}
<h2 class="title-summary"><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
<p>{{ htmlUnescape .Content | plainify | truncate 140 }}</p>
<p>{{ .Summary }}</p>
</div>