diff options
author | Athanasia Monika Mowinckel <a.m.mowinckel@psykologi.uio.no> | 2020-10-17 17:29:13 +0300 |
---|---|---|
committer | Athanasia Monika Mowinckel <a.m.mowinckel@psykologi.uio.no> | 2020-10-17 17:29:13 +0300 |
commit | e006854cb371d67aca999dbcabff1322892af345 (patch) | |
tree | b3b87112fd97766aa96dbb4dab4fbb27b3b64460 | |
parent | b121939b5da723b36442339020cfd15fc0a5726f (diff) |
make download customiseable
-rw-r--r-- | layouts/partials/home/download.html | 37 |
1 files changed, 12 insertions, 25 deletions
diff --git a/layouts/partials/home/download.html b/layouts/partials/home/download.html index 293d306..c1e24dd 100644 --- a/layouts/partials/home/download.html +++ b/layouts/partials/home/download.html @@ -1,27 +1,14 @@ -<div class="row section topspace"> - <div class="panel panel-cta"> - <div class="panel-body"> - <div class="col-lg-8"> - <p>A simple, nice-looking <b>call to action box</b>. Boxing is about respect. getting it for yourself, - and taking it away from the other guy. no, this is mount everest. </p> - </div> - <div class="col-lg-4 text-right"> - <a href="http://www.gettemplate.com/downloads/initio.zip " class="btn btn-primary btn-lg">Download original template</a> - </div> - </div> - </div> -</div> <!-- /section --> - -<div class="row section topspace"> - <div class="panel panel-cta"> - <div class="panel-body"> - <div class="col-lg-8"> - <p>A simple, nice-looking <b>call to action box</b>. Boxing is about respect. getting it for yourself, - and taking it away from the other guy. no, this is mount everest. </p> - </div> - <div class="col-lg-4 text-right"> - <a href="https://github.com/miguelsimoni/hugo-initio/archive/master.zip " class="btn btn-primary btn-lg">Download HUGO template</a> +{{ range where .Data.Pages "Section" .Section }} + <div class="row section topspace"> + <div class="panel panel-cta"> + <div class="panel-body"> + <div class="col-lg-8"> + {{ .Content }} + </div> + <div class="col-lg-4 text-right"> + <a href={{ .Params.file }} class="btn btn-primary btn-lg">{{ .Title }}</a> + </div> </div> </div> - </div> -</div> <!-- /section --> + </div> <!-- /section --> +{{ end }} |