edryd.org

Unnamed repository; edit this file 'description' to name the repository.
git clone git://edryd.org/edryd.org
Log | Files | Refs | LICENSE

_index.md (1084B)


      1 ---
      2 title: projects
      3 ---
      4 
      5 {{< projects.inline >}}
      6   <div class="container">
      7     <!-- TODO combine code and scripts, loop over all projects -->
      8     {{ range $.Site.Data.projects.projects }}
      9       {{ if .header }}
     10         <h2 class="heading pt-4">{{ .header | upper }}</h2>
     11       {{ else if .id }}
     12         {{ $gist := getJSON "https://api.github.com/gists/" .id }}
     13         {{ $link := path.Join "projects/" .name | relURL }}
     14         <div class="row text-inc">
     15           <div class="col-lg-4 text-lg-right"><a href="{{ $link }}">{{ .name }}</a></div>
     16           <div class="col-lg-6"><a href="{{ $link }}" class="italic-off text-primary">{{ $gist.description }}</a></div>
     17         </div>
     18       {{ else }}
     19         <div class="row text-inc">
     20           {{ $link := or .link (path.Join "projects/" .name | relURL) }}
     21           <div class="col-lg-4 text-lg-right"><a href="{{ $link }}">{{ .name }}</a></div>
     22           <div class="col-lg-6"><a href="{{ $link }}" class="italic-off text-primary">{{ .desc }}</a></div>
     23         </div>
     24       {{ end }}
     25     {{ end }}
     26   </div>
     27 {{< /projects.inline >}}