1
Fork 0

Complex summary

This commit is contained in:
Jake Howard 2017-11-10 23:08:50 +00:00
parent 0289f66d55
commit 484d00e605
Signed by: jake
GPG key ID: 57AFB45680EDD477
2 changed files with 8 additions and 1 deletions

View file

@ -2,7 +2,7 @@
<div class="mb-3 image" data-image="{{ .Params.image }}" style="width: 100%; height: 30vh"></div> <div class="mb-3 image" data-image="{{ .Params.image }}" style="width: 100%; height: 30vh"></div>
{{ end }} {{ end }}
<h1 class="display-5">{{ .Title }}</h1> <h1 class="display-5">{{ .Title }}</h1>
<h5 class="my-3">{{ .Params.subtitle }}</h5> <h5 class="my-3">{{ partial "subtitle.html" . }}</h5>
<p> <p>
{{ if .Params.date }} {{ if .Params.date }}
<span class="pr-4" title='{{ .Date.Format "January 2 2006" }}'>{{ .Date.Format "2006-01-02" }}</span> <span class="pr-4" title='{{ .Date.Format "January 2 2006" }}'>{{ .Date.Format "2006-01-02" }}</span>

View 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 }}