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 }}
|
{{ .Summary | plainify | chomp }}{{ if .Truncated }}…{{ end }}
|
||||||
{{ else if .Params.subtitle }}
|
{{ else if .Params.subtitle }}
|
||||||
{{ .Params.subtitle | markdownify }}
|
{{ .Params.subtitle | markdownify }}
|
||||||
{{ else if .Content }}
|
|
||||||
{{ .Summary | plainify | chomp }}{{ if .Truncated }}…{{ end }}
|
|
||||||
{{ else if .Params.repo }}
|
{{ else if .Params.repo }}
|
||||||
{{ (getJSON "https://api.github.com/repos/" .Params.repo).description }}
|
{{ (getJSON "https://api.github.com/repos/" .Params.repo).description }}
|
||||||
{{ else if .Params.gist }}
|
{{ else if .Params.gist }}
|
||||||
|
|
Loading…
Reference in a new issue