Complex summary
This commit is contained in:
parent
0289f66d55
commit
484d00e605
2 changed files with 8 additions and 1 deletions
|
@ -2,7 +2,7 @@
|
|||
<div class="mb-3 image" data-image="{{ .Params.image }}" style="width: 100%; height: 30vh"></div>
|
||||
{{ end }}
|
||||
<h1 class="display-5">{{ .Title }}</h1>
|
||||
<h5 class="my-3">{{ .Params.subtitle }}</h5>
|
||||
<h5 class="my-3">{{ partial "subtitle.html" . }}</h5>
|
||||
<p>
|
||||
{{ if .Params.date }}
|
||||
<span class="pr-4" title='{{ .Date.Format "January 2 2006" }}'>{{ .Date.Format "2006-01-02" }}</span>
|
||||
|
|
7
layouts/partials/subtitle.html
Normal file
7
layouts/partials/subtitle.html
Normal file
|
@ -0,0 +1,7 @@
|
|||
{{ if .Params.subtitle }}
|
||||
{{ markdownify .Params.subtitle }}
|
||||
{{ else if .Params.repo }}
|
||||
{{ (getJSON "https://api.github.com/repos/" .Params.repo).description }}
|
||||
{{ else if .Params.gist }}
|
||||
{{ (getJSON "https://api.github.com/gists/" .Params.gist).description }}
|
||||
{{ end }}
|
Loading…
Reference in a new issue