Skip to content

Commit

Permalink
Address #26
Browse files Browse the repository at this point in the history
  • Loading branch information
agahkarakuzu committed Dec 16, 2020
1 parent bfc9d3c commit 0205927
Show file tree
Hide file tree
Showing 11 changed files with 16 additions and 5 deletions.
Binary file added .DS_Store
Binary file not shown.
Binary file added assets/.DS_Store
Binary file not shown.
Binary file added data/.DS_Store
Binary file not shown.
3 changes: 2 additions & 1 deletion data/nlbooks/adni_book.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ date: "2020-03-26"
labels:
- Publication
image: "adni_featured.png"
url: https://simexp.github.io/vcog_hps_ad_book/intro.html
url: https://simexp.github.io/vcog_hps_ad_book
ext: https://github.com/SIMEXP/vcog_hps_ad_book
3 changes: 2 additions & 1 deletion data/nlbooks/maclearn_book.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,5 @@ labels:
- Educational
- Interactive tutorials
image: "ml_featured.png"
url: https://brainhack101.github.io/introML-book/intro
url: https://brainhack101.github.io/introML-book
ext: https://github.com/brainhack101/introML-book
3 changes: 2 additions & 1 deletion data/nlbooks/sct_book.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ labels:
- Educational
- Interactive tutorials
image: "sct_featured.png"
url: https://mathieuboudreau.github.io/pipelines-jupyter-book/01/sct_mtsat
url: https://mathieuboudreau.github.io/pipelines-jupyter-book/01/sct_mtsat
ext: https://github.com/mathieuboudreau/pipelines-jupyter-book
3 changes: 2 additions & 1 deletion data/nlbooks/t1mapping_book.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ labels:
- Educational
- Interactive tutorials
image: "mp2rage_featured.png"
url: http://qmrlab.org/t1_book/intro
url: http://qmrlab.org/t1_book
ext: https://github.com/qMRLab/t1_book
9 changes: 8 additions & 1 deletion layouts/partials/cards.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,14 @@ <h1>{{ .value.title }}</h1>
<p> {{ .value.summary }}</p>
<p>
{{ $myUrl := (index .value).url}}
{{ partial "badge_nl" (dict "message" "Book" "link" $myUrl "target" "_blank" "logoWidth" "14" "color" "e91b21")}} {{ partial "badge" (dict "label" "GitHub" "message" "Code" "link" $myUrl "target" "_blank" "logo" "github" "logoWidth" "14" "color" "1f2428")}}
{{ if $.value.ext }}
{{ partial "badge_nl" (dict "message" "Book" "link" $myUrl "target" "_blank" "logoWidth" "14" "color" "e91b21")}} {{ partial "badge" (dict "label" "GitHub" "message" "Code" "link" $.value.ext "target" "_blank" "logo" "github" "logoWidth" "14" "color" "1f2428")}}
{{else}}
{{ $u:= urls.Parse $myUrl }}
{{ $baseGH := "https://github.com/neurolibre"}}
{{ $urlGH := print $baseGH $u.Path}}
{{ partial "badge_nl" (dict "message" "Book" "link" $myUrl "target" "_blank" "logoWidth" "14" "color" "e91b21")}} {{ partial "badge" (dict "label" "GitHub" "message" "Code" "link" $urlGH "target" "_blank" "logo" "github" "logoWidth" "14" "color" "1f2428")}}
{{end}}
</p>
</div>
</div>
Binary file added static/.DS_Store
Binary file not shown.
Binary file added static/img/.DS_Store
Binary file not shown.
Binary file added static/img/nlbooks/.DS_Store
Binary file not shown.

0 comments on commit 0205927

Please sign in to comment.