edryd.org

some of my neat stuff
git clone git://edryd.org/edryd.org
Log | Files | Refs | LICENSE

commit aa74d4d8408ac311bfe15cfb6443bf8809ad609b
parent 0cd44bc3ed5106715bd759c09b77446da0d68a6e
Author: Ed van Bruggen <edvb@uw.edu>
Date:   Tue, 23 Feb 2021 00:46:24 -0800

Revert projects data format for mk-content

Diffstat:
content/projects/_index.md | 27---------------------------
data/projects.yaml | 25++++++++++++++-----------
layouts/index.html | 5++---
3 files changed, 16 insertions(+), 41 deletions(-)

diff --git a/content/projects/_index.md b/content/projects/_index.md @@ -1,27 +0,0 @@ ---- -title: projects ---- - -{{< projects.inline >}} - <div class="container"> - <!-- TODO combine code and scripts, loop over all projects --> - {{ range $.Site.Data.projects.projects }} - {{ if .header }} - <h2 class="heading pt-4">{{ .header | upper }}</h2> - {{ else if .id }} - {{ $gist := getJSON "https://api.github.com/gists/" .id }} - {{ $link := path.Join "projects/" .name | relURL }} - <div class="row text-inc"> - <div class="col-lg-4 text-lg-right"><a href="{{ $link }}">{{ .name }}</a></div> - <div class="col-lg-6"><a href="{{ $link }}" class="italic-off text-primary">{{ $gist.description }}</a></div> - </div> - {{ else }} - <div class="row text-inc"> - {{ $link := or .link (path.Join "projects/" .name | relURL) }} - <div class="col-lg-4 text-lg-right"><a href="{{ $link }}">{{ .name }}</a></div> - <div class="col-lg-6"><a href="{{ $link }}" class="italic-off text-primary">{{ .desc }}</a></div> - </div> - {{ end }} - {{ end }} - </div> -{{< /projects.inline >}} diff --git a/data/projects.yaml b/data/projects.yaml @@ -1,4 +1,4 @@ -projects: +code: - name: 'tisp' desc: 'Tiny lisp, simple and embeddable scheme-like language' - name: 'gst' @@ -21,20 +21,30 @@ projects: desc: 'Add an element of nyan cat to vim' - name: 'tim' desc: 'Extendable personal assistant' - - header: 'research' +research: - name: 'RECAST-workflow' desc: 'IRIS-HEP Fellowship' link: 'https://iris-hep.org/fellows/edvanbruggen.html' - name: 'mono-sbb' desc: 'Dark Higgs model' link: 'https://github.com/edvb/mono-sbb' - - name: 'Lattice QCD' + - name: 'UW DRiP' desc: 'Lattice QCD' link: '/docs/lattice-qcd.pdf' - name: 'Protein Folding' desc: 'Rosetta homology simulations' link: 'http://2018.igem.org/Team:Washington/Model' - - header: "scripts" +websites: + - name: 'MHEA' + desc: 'Mental Health for Every Adolescent' + link: 'https://projectmhea.org' + - name: 'LMB' + desc: 'Liam MB Real Estate' + link: 'https://lmbrealestate.com' + - name: 'UW iGEM' + desc: 'Sitdown with SynBio' + link: 'http://students.washington.edu/uwigem/sitdownsynbio/' +scripts: - name: 'body' id: 'fc7d3ab445e5c917c7158f3a607c24a6' - name: 'ed' @@ -55,10 +65,3 @@ projects: id: '1b668d6df73bb7623fe977cfcca182a9' - name: 'calc' id: 'b2dd8946da6a19349af518bc0be24d57' -# - websites: -# - name: 'MHEA' -# link: 'https://projectmhea.org' -# - name: 'LMB' -# link: 'https://lmbrealestate.org' -# - name: 'Synbio' -# link: 'http://students.washington.edu/uwigem/sitdownsynbio/' diff --git a/layouts/index.html b/layouts/index.html @@ -60,11 +60,11 @@ <div class="row"> <div class="col-lg-12"> <h2 class="heading">PROJECTS</h2> - {{ range first 5 .Site.Data.projects.projects }} + {{ range first 5 .Site.Data.projects.code }} <div class="row text-inc"> {{ $link := or .link (path.Join "projects/" .name | relURL) }} <div class="col-lg-4 text-lg-right"><a href="{{ $link }}">{{ .name }}</a></div> - <div class="col-lg-6"><a href="{{ $link }}" class="italic-off text-primary">{{ .desc }}</a></div> + <div class="col-lg-8"><a href="{{ $link }}" class="italic-off text-primary">{{ .desc }}</a></div> </div> {{ end }} <div class="col-sm-2 offset-sm-5 btn-effect"> @@ -83,7 +83,6 @@ <div class="col-lg-12"> <h2 class="heading">PHOTOS</h2> <div class="row"> - <!-- TODO loop over all files --> {{- $files := shuffle (readDir "/static/img/photos/best") }} {{/* {{- $files := shuffle (readDir $files) */}} {{- range first 9 $files -}}