1
Fork 0

Simpler summary getter

This commit is contained in:
Jake Howard 2017-11-17 21:03:57 +00:00
parent 63531bbdea
commit 25f9e10a02
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -1,9 +1,7 @@
{{ if eq .Section "posts" }}
{{ if .Content }}
{{ .Summary | plainify | chomp }}{{ if .Truncated }}…{{ end }}
{{ else if .Params.subtitle }}
{{ .Params.subtitle | markdownify }}
{{ else if .Content }}
{{ .Summary | plainify | chomp }}{{ if .Truncated }}…{{ end }}
{{ else if .Params.repo }}
{{ (getJSON "https://api.github.com/repos/" .Params.repo).description }}
{{ else if .Params.gist }}