Simpler summary getter
This commit is contained in:
parent
63531bbdea
commit
25f9e10a02
1 changed files with 1 additions and 3 deletions
|
@ -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 }}
|
||||
|
|
Loading…
Reference in a new issue