projects.html (2483B)
1 {{ define "main" }} 2 <section> 3 <div class="container"> 4 <div class="row"> 5 <div class="col-lg-12"> 6 {{- with .Title }} 7 <h1 class="heading">{{ . | upper }}</h1> 8 {{- end }} 9 <div class="row"> 10 <!-- TODO remove code duplication from _default/list --> 11 <div class="container"> 12 <!-- TODO combine code and scripts, loop over all projects --> 13 {{ range $.Site.Data.projects.code }} 14 <div class="row text-inc"> 15 {{ $link := or .link (path.Join "projects/" .name | relURL) }} 16 <div class="col-lg-4 text-lg-right"><a href="{{ $link }}">{{ .name }}</a></div> 17 <div class="col-lg-8"><a href="{{ $link }}" class="italic-off text-primary">{{ .desc }}</a></div> 18 </div> 19 {{ end }} 20 <h2 class="heading pt-4">RESEARCH</h2> 21 {{ range $.Site.Data.projects.research }} 22 <div class="row text-inc"> 23 {{ $link := or .link (path.Join "projects/" .name | relURL) }} 24 <div class="col-lg-4 text-lg-right"><a href="{{ $link }}">{{ .name }}</a></div> 25 <div class="col-lg-8"><a href="{{ $link }}" class="italic-off text-primary">{{ .desc }}</a></div> 26 </div> 27 {{ end }} 28 <h2 class="heading pt-4">WEBSITES</h2> 29 <!-- TODO cards with photos --> 30 {{ range $.Site.Data.projects.websites }} 31 <div class="row text-inc"> 32 <div class="col-lg-4 text-lg-right"><a href="{{ .link }}">{{ .name }}</a></div> 33 <div class="col-lg-8"><a href="{{ .link }}" class="italic-off text-primary">{{ .desc }}</a></div> 34 </div> 35 {{ end }} 36 <h2 class="heading pt-4">SCRIPTS</h2> 37 {{ range $.Site.Data.projects.scripts }} 38 {{ $gist := getJSON "https://api.github.com/gists/" .id }} 39 {{ $link := path.Join "projects/" .name | relURL }} 40 <div class="row text-inc"> 41 <div class="col-lg-4 text-lg-right"><a href="{{ $link }}">{{ .name }}</a></div> 42 <div class="col-lg-8"><a href="{{ $link }}" class="italic-off text-primary">{{ $gist.description }}</a></div> 43 </div> 44 {{ end }} 45 </div> 46 </div> 47 </div> 48 </div> 49 </div> 50 </section> 51 {{ end }}