2017-05-06 16:08:40 +01:00
|
|
|
{{ partial "page_start.html" . }}
|
|
|
|
<div id="page-wrapper">
|
|
|
|
<section id="main" class="container">
|
2017-07-04 09:13:46 +01:00
|
|
|
{{ partial "content.html" . }}
|
2017-07-04 09:42:44 +01:00
|
|
|
|
2017-07-04 09:07:15 +01:00
|
|
|
<div class="box">
|
2017-05-06 16:08:40 +01:00
|
|
|
<ul class="actions fir">
|
|
|
|
{{ if .Params.download_url }}
|
|
|
|
<li><a class="button special fit" href="{{ .Params.download_url }}">Download {{ .Title }}</a></li>
|
|
|
|
{{ end }}
|
|
|
|
{{ if .Params.repo }}
|
2017-07-04 09:07:15 +01:00
|
|
|
{{ $data := getJSON "https://api.github.com/repos/" .Params.repo }}
|
|
|
|
<li><a class="button special fit" href="{{ $data.html_url }}"><i class="fa fa-github fa-lg"></i> View Source</a></li>
|
|
|
|
{{ end }}
|
|
|
|
{{ if .Params.gist }}
|
2017-07-04 09:13:46 +01:00
|
|
|
{{ $data := getJSON "https://api.github.com/gists/" .Params.gist }}
|
2017-07-04 09:07:15 +01:00
|
|
|
<li><a class="button special fit" href="{{ $data.html_url }}"><i class="fa fa-github fa-lg"></i> View Source</a></li>
|
2017-05-06 16:08:40 +01:00
|
|
|
{{ end }}
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
</div>
|
|
|
|
{{ partial "page_end.html" . }}
|