Allow forcing summary over github data
This commit is contained in:
parent
a7b9ea92bd
commit
c240553d0b
1 changed files with 15 additions and 1 deletions
|
@ -1,2 +1,16 @@
|
|||
{{ .Summary | plainify | chomp }}{{ if .Truncated }}…{{ end }}
|
||||
{{ if eq .Section "posts" }}
|
||||
{{ .Summary | plainify | chomp }}{{ if .Truncated }}…{{ end }}
|
||||
{{ else if .Params.subtitle }}
|
||||
{{ .Params.subtitle | markdownify }}
|
||||
{{ else if .Params.repo }}
|
||||
{{ if eq .Params.force_summary false }}
|
||||
{{ (getJSON "https://api.github.com/repos/" .Params.repo).description }}
|
||||
{{ end }}
|
||||
{{ else if .Params.gist }}
|
||||
{{ if eq .Params.force_summary false }}
|
||||
{{ (getJSON "https://api.github.com/gists/" .Params.gist).description }}
|
||||
{{ end }}
|
||||
{{ else }}
|
||||
{{ .Summary | plainify | chomp }}{{ if .Truncated }}…{{ end }}
|
||||
{{ end }}
|
||||
|
||||
|
|
Loading…
Reference in a new issue