commit cace74cc2337d18ec73493facdcc7d09a47e2ab0
parent e53fca834f93d520877d3f2cc9d3c2202869eeda
Author: Ed van Bruggen <edvb@uw.edu>
Date: Mon, 15 Feb 2021 22:26:15 -0800
Restructure projects data file
Diffstat:
3 files changed, 41 insertions(+), 33 deletions(-)
diff --git a/content/projects/_index.md b/content/projects/_index.md
@@ -5,21 +5,23 @@ title: projects
{{< projects.inline >}}
<div class="container">
<!-- TODO combine code and scripts, loop over all projects -->
- {{ range $.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>
- {{ end }}
- <h2 class="heading pt-4">SCRIPTS</h2>
- {{ range $.Site.Data.projects.scripts }}
- {{ $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>
+ {{ 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,17 +1,10 @@
-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'
-code:
+projects:
- name: 'tisp'
desc: 'Tiny lisp, simple and embeddable scheme-like language'
- name: 'gst'
desc: 'Painless CLI gist creator'
- name: 'dotfiles'
- desc: 'Config files for my linux setup'
+ desc: 'Config files for my Linux setup'
- name: 's'
desc: 'Command line interpreter'
link: 'https://github.com/rain-1/s'
@@ -28,7 +21,20 @@ code:
desc: 'Add an element of nyan cat to vim'
- name: 'tim'
desc: 'Extendable personal assistant'
-scripts:
+ - header: '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'
+ 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"
- name: 'body'
id: 'fc7d3ab445e5c917c7158f3a607c24a6'
- name: 'ed'
@@ -49,10 +55,10 @@ scripts:
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/'
+# - 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,7 +60,7 @@
<div class="row">
<div class="col-lg-12">
<h2 class="heading">PROJECTS</h2>
- {{ range first 5 .Site.Data.projects.code }}
+ {{ range first 5 .Site.Data.projects.projects }}
<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>