diff --git a/archetypes/default.md b/archetypes/default.md old mode 100644 new mode 100755 diff --git a/config.toml b/config.toml old mode 100644 new mode 100755 diff --git a/data/report.json b/data/report.json old mode 100644 new mode 100755 index c226a5e..6623360 --- a/data/report.json +++ b/data/report.json @@ -40,7 +40,7 @@ "country": "Canada" } ], - "summary": "Please write a brief summary of your project. This section will appear on the webpage.", + "summary": "Please write a brief summary of your project. This section will appear on the webpage.", "url": "http://github.com/repo_owner/repo_name", "coi": "Please add if there are competing interests. Otherwise, type None.", "acknow": "The authors would like to thank the organizers and attendees of OHBM Brainhack 2020.", @@ -51,8 +51,14 @@ "tag3" ], "supplemental": [ - "Material 1", - "Material 2" + { + "name": "Material 1", + "url": "https://material1.url" + }, + { + "name": "Material 2", + "url": "https://material2.url" + } ], "bibliography": "report", "preview": "# Introduction\nThe bibliography (\\code{report.bib}) must respect …", diff --git a/deploy.sh b/deploy.sh old mode 100644 new mode 100755 diff --git a/figures/brainhack.png b/figures/brainhack.png new file mode 100644 index 0000000..e2f13ef Binary files /dev/null and b/figures/brainhack.png differ diff --git a/figures/figures.css b/figures/figures.css new file mode 100644 index 0000000..ef9befa --- /dev/null +++ b/figures/figures.css @@ -0,0 +1,34 @@ +/* Edit figure appearance on the web-page + +Q: Where do I find my figure labels? +A: Figure labels are declared in the report.md + right before the caption text. + + Example (in report.md): + + \caption{\label{Figure-1} Your caption goes here.} + + The corresponding label is Figure-1. + +- Template: + + #figure_label_from_report_md{ + width: 60%; + } + +You can use any css key-value pairs that are applicable to +images. + +For example, you can make your figures glow on hover : + +#Figure-1:hover { + border-color: #66afe9; + box-shadow: 0 0 8px rgba(0,255,0, 0.6); +} + +Have fun :) +*/ + +#Figure-1 { + width: 50%; +} diff --git a/latex/bhgn.pdf b/latex/bhgn.pdf old mode 100644 new mode 100755 diff --git a/latex/bmc-mathphys.bst b/latex/bmc-mathphys.bst old mode 100644 new mode 100755 diff --git a/latex/bmcart-biblio.sty b/latex/bmcart-biblio.sty old mode 100644 new mode 100755 diff --git a/latex/bmcart.cls b/latex/bmcart.cls old mode 100644 new mode 100755 diff --git a/latex/brainhack-html-template.tex b/latex/brainhack-html-template.tex old mode 100644 new mode 100755 diff --git a/latex/brainhack-report-template.tex b/latex/brainhack-report-template.tex old mode 100644 new mode 100755 diff --git a/latex/hyphenat.sty b/latex/hyphenat.sty old mode 100644 new mode 100755 diff --git a/latex/lastpage.sty b/latex/lastpage.sty old mode 100644 new mode 100755 diff --git a/latex/mathjax-header-include.txt b/latex/mathjax-header-include.txt old mode 100644 new mode 100755 diff --git a/latex/mfirstuc.sty b/latex/mfirstuc.sty old mode 100644 new mode 100755 diff --git a/latex/siunitx-abbreviations.cfg b/latex/siunitx-abbreviations.cfg old mode 100644 new mode 100755 diff --git a/latex/siunitx.sty b/latex/siunitx.sty old mode 100644 new mode 100755 diff --git a/latex/todonotes.sty b/latex/todonotes.sty old mode 100644 new mode 100755 diff --git a/layouts/index.html b/layouts/index.html old mode 100644 new mode 100755 index 82d7030..b97a6ab --- a/layouts/index.html +++ b/layouts/index.html @@ -1,85 +1,181 @@ - - - {{ partial "head.html" . }} + } + main h1.title { + font-weight:400! important; + margin-top:5rem; + margin-bottom:.5em!important; + line-height:1em; + margin-right:1rem! important; + } + h2 { + font-weight: 400; + margin-top: 1em; + } + h3 { + font-weight:400; + line-height: 2; + color:#333; + margin:0; + padding:0; + text-transform: uppercase; + margin-top: 1em; + } + [v-cloak] { + display: none + } + + #content { flex-grow: 1; } + + main p { text-align: justify; hyphens: auto; } + + main { + margin-left:4rem; + margin-right:1rem; + } + + .tags { + list-style: none; + margin: 0; + overflow: hidden; + padding: 0; + } + + .tags li { + float: left; + } + + .tag { + background: rgb(59,81,94); + border-radius: 3px 0 0 3px; + color: aliceblue; + display: inline-block; + height: 26px; + line-height: 26px; + padding: 0 20px 0 23px; + position: relative; + margin: 0 10px 10px 0; + text-decoration: none; + -webkit-transition: color 0.2s; + } + + .tag::before { + background: #fff; + border-radius: 10px; + box-shadow: inset 0 1px rgba(0, 0, 0, 0.25); + content: ''; + height: 6px; + left: 10px; + position: absolute; + width: 6px; + top: 10px; + } + + .tag::after { + background: #fff; + border-bottom: 13px solid transparent; + border-left: 10px solid rgb(59,81,94); + border-top: 13px solid transparent; + content: ''; + position: absolute; + right: 0; + top: 0; + } + + .tag:hover { + background-color: rgb(66,67,68); + color: white; + } + + .tag:hover::after { + border-left-color: rgb(66,67,68); + } + + .comma-list { + display: inline; + list-style: none; + padding: 0px; + font-family: "Open Sans", cursive, sans-serif; + -webkit-font-smoothing: antialiased; + font-size: large; + } + .comma-list li { + display: inline; + } + .comma-list li::after { + content: ", "; + } + .comma-list li:last-child::after { + content: ""; + } + + .tooltip .arrow:before { + border-bottom-color: rgb(0, 0, 0) !important; + border-top-color: rgb(0, 0, 0)!important; + } + .tooltip-inner { background-color: rgb(59,81,94); } + + .color-on-hover { + filter: saturate(0); + } + .color-on-hover:hover { + filter: saturate(1); + } + .right-panel { + width: 222px; + color: #888; + line-height: 1.3rem; + margin-top: 5rem; + margin-left: 5rem; + } + .right-panel p { + font-size: 14px; + } + + ul.suppl { + padding-left: 2rem; + } + + ul.affiliations { + font-size: .9rem! important; + margin-bottom: 5px! important; + } + + ul.affiliations li { + list-style: none; + } + ul.affiliations li span { + vertical-align: super; + font-size: .7rem! important; + } + + ul.authors { + display: block; + font-size:1.2rem! important; + margin-bottom:5px! important; + } + ul.authors::after { + content: ""; + clear: both; + display: block; + } + ul.authors li { + list-style: none; + } + ul.authors li span { + vertical-align: super; + font-size: .7rem! important; + margin-left: -4px; + } + @@ -88,80 +184,142 @@ -
+
- -
- {{ partial "report.html" . }} +
+
+ {{ partial "share-buttons.html" . }} + {{ $url := print $.Site.Data.report.report.url }} + {{ if $.Site.Data.report.report.binder}} + {{ $u:= urls.Parse $.Site.Data.report.report.url }} + {{ partial "badge" (dict "name" $.Site.Data.ghdetails.repo) }} {{ partial "badge_custom" (dict "label" "Project" "message" "Repo" "link" $url "target" "_blank" "logo" "github" "logoWidth" "14" "color" "red") }} {{ partial "badge_binder" (dict "name" $u.Path) }} + {{ else }} + {{ partial "badge" (dict "name" $.Site.Data.ghdetails.repo) }} {{ partial "badge_custom" (dict "label" "Project" "message" "Repo" "link" $url "target" "_blank" "logo" "github" "logoWidth" "14" "color" "red") }} + {{ end }} + + + + +
+ + {{ if .Site.Data.report.report.supplemental }} +

Supplemental Materials

+
    + {{ range $suppl := .Site.Data.report.report.supplemental }} + {{ if $suppl }} +
  • {{ $suppl.name }}
  • + {{ end }} + {{ end }} +
+ {{ end }} + +

Contributions

+

{{ .Site.Data.report.report.contrib }}

+ +

Competing interests

+

{{ .Site.Data.report.report.coi }}

+ +

Acknowledgements

+

{{ .Site.Data.report.report.acknow }}

+ + {{ if .Site.Data.report.report.reviewers}} +

Reviewers

+
    + {{ range $reviewer := .Site.Data.report.report.reviewers }} +
  • @{{ $reviewer.gh_handle }}
  • + {{ else }} +
  • No reviewers
  • + {{ end }} +
+ {{ end }} + + {{ if .Site.Data.report.report.event }} +

Event

+

{{ .Site.Data.report.report.event }}

+ {{ end }} + +

License

+ + Creative Commons Attribution license (CC BY 4.0) +
-
- {{ partial "share-buttons.html" . }} -
- - {{ $myUrl := print $.Site.Data.report.report.url }} - {{ if $.Site.Data.report.report.binder}} - {{ $u:= urls.Parse $.Site.Data.report.report.url }} - {{ partial "badge" (dict "name" $.Site.Data.ghdetails.repo) }} {{ partial "badge_custom" (dict "label" "Project" "message" "Repo" "link" $myUrl "target" "_blank" "logo" "github" "logoWidth" "14" "color" "red")}} {{ partial "badge_binder" (dict "name" $u.Path) }} - {{else}} - {{ partial "badge" (dict "name" $.Site.Data.ghdetails.repo) }} {{ partial "badge_custom" (dict "label" "Project" "message" "Repo" "link" $myUrl "target" "_blank" "logo" "github" "logoWidth" "14" "color" "red")}} - {{end}} -
- - - - -

Abstract

-

{{.Site.Data.report.report.summary}}

-

Tags

-
    - {{ range $ky, $lbl := .Site.Data.report.report.tags}} -
  • {{$lbl}}
  • - {{else}} -
  • No tags.
  • - {{end}} -
-

Supplemental Materials

-
    - {{ range $ky, $lbl := .Site.Data.report.report.supplemental}} -
  • {{$lbl.name}}
  • - {{else}} -
  • No supplementary material.
  • - {{end}} + +
    + +

    {{ $.Site.Data.report.report.title }}

    + +
      + {{ $multiaffil := gt (len $.Site.Data.report.report.affiliations) 1 }} + {{ $.Scratch.Set "affilnext" 0 }} + + {{ range $author := $.Site.Data.report.report.author }} + {{ if $author.corref }} + {{ $.Scratch.Set "affil" $author.corref }} + {{ else }} + {{ $.Scratch.Set "affil" $author.affiliation }} + {{ end }} + + {{ $affil := index (where $.Site.Data.report.report.affiliations "id" ($.Scratch.Get "affil")) 0 }} + {{ $affil_full := (print $affil.orgname ", " $affil.city ", " $affil.country) }} + + {{ if (not (in ($.Scratch.Get "affil_seen") $affil.id)) }} + {{ $.Scratch.Set "affilnext" (add ($.Scratch.Get "affilnext") 1) }} + + {{/* Store affiliation ordering based on authorship, to add the superscript numbers */}} + {{ $.Scratch.Add "affil_seen" (slice $affil.id) }} + {{ $.Scratch.SetInMap "affil_order" (printf "%05d" ($.Scratch.Get "affilnext")) $affil.id }} + {{ $.Scratch.SetInMap "affil_order_inverse" $affil.id (printf "%05d" ($.Scratch.Get "affilnext")) }} + {{ end }} + + {{ if $author.url }} +
    • + + {{ $author.firstname }} {{ $author.surname }} + {{ if $multiaffil }}{{ int (index ($.Scratch.Get "affil_order_inverse") ($.Scratch.Get "affil")) }}{{ end }} + +
    • + {{ else }} +
    • + {{ $author.firstname }} {{ $author.surname }} + {{ if $multiaffil }}{{ int (index ($.Scratch.Get "affil_order_inverse") ($.Scratch.Get "affil")) }}{{ end }} +
    • + {{ end }} + {{ end }}
    - -

    Contributions

    -

    {{.Site.Data.report.report.contrib}}

    - -

    Competing interests

    -

    {{.Site.Data.report.report.coi}}

    - -

    Acknowledgements

    -

    {{.Site.Data.report.report.acknow}}

    - -

    Reviewers

    -
      - {{ range $ky, $lbl := .Site.Data.report.report.reviewers}} -
    • @{{$lbl.gh_handle}}
    • - {{else}} -
    • No reviewers
    • - {{end}} + +
        + {{ range $idx, $id := $.Scratch.GetSortedMapValues "affil_order" }} + {{ $affil := index (where $.Site.Data.report.report.affiliations "id" $id) 0 }} + {{ $affil_full := print $affil.orgname ", " $affil.city ", " $affil.country }} +
      • + {{ if $multiaffil }}{{ add (int $idx) 1 }}{{ end }}{{ $affil.orgname }} +
      • + {{ end }}
      -

      Event

      -

      {{.Site.Data.report.report.event}}

      +

      Abstract

      +

      {{ .Site.Data.report.report.summary }}

      +
        + {{ range $tag := .Site.Data.report.report.tags }} +
      • {{$tag}}
      • + {{ else }} +
      • No tags.
      • + {{ end }} +
      -

      License

      - Creative Commons Attribution license (CC BY 4.0) - + {{ partial "report.html" . }} -
+
-
{{ partial "footer.html" . }} - - + diff --git a/layouts/partials/badge.html b/layouts/partials/badge.html old mode 100644 new mode 100755 diff --git a/layouts/partials/badge_binder.html b/layouts/partials/badge_binder.html old mode 100644 new mode 100755 diff --git a/layouts/partials/badge_custom.html b/layouts/partials/badge_custom.html old mode 100644 new mode 100755 diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html old mode 100644 new mode 100755 index 683ed9f..7ea0e61 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,17 +1,21 @@ - - - \ No newline at end of file + footer .logo { + font-size: 1.3rem; + } + + + \ No newline at end of file diff --git a/layouts/partials/head.html b/layouts/partials/head.html old mode 100644 new mode 100755 index a4a471d..87a4d5a --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -30,101 +30,92 @@ - + @@ -132,3 +123,8 @@ {{if $.Site.Data.report.report.hypothesis}} {{end}} + \ No newline at end of file diff --git a/layouts/partials/header.html b/layouts/partials/header.html old mode 100644 new mode 100755 index 0104354..e69de29 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -1,120 +0,0 @@ - - - - - - - - -
- -
-
-
- {{ with .Site.Params.header }} -

{{$.Site.Data.report.report.title}}

- {{ end }} -
    -

    Authors

    - {{ range $ky, $lbl := $.Site.Data.report.report.author}} - - {{ if $lbl.corref }} - {{ $.Scratch.Set "affil" $lbl.corref}} - {{else}} - {{ $.Scratch.Set "affil" $lbl.affiliation}} - {{end}} - - {{ range $ky2, $lbl2 := $.Site.Data.report.report.affiliations}} - {{if eq ($.Scratch.Get "affil") $lbl2.id}} - {{ $tmp := (print $lbl2.orgname ", " $lbl2.city ", " $lbl2.country) }} - {{ $.Scratch.Set "inst" $tmp}} - {{end}} - {{end}} - - {{if $lbl.url}} - -
  • - - {{ $lbl.firstname }} {{$lbl.surname}} -
  • - - {{end}} - {{if not $lbl.url}} -
  • - {{ $lbl.firstname }} {{$lbl.surname}} -
  • - {{end}} - {{ end }} -
-
- -
    - {{ range $ky, $lbl := $.Site.Data.report.report.affiliations}} -
  • - {{ $lbl.orgname }} -
  • - {{end}} -
- -
-
-
-
- - \ No newline at end of file diff --git a/layouts/partials/navbar.html b/layouts/partials/navbar.html old mode 100644 new mode 100755 index a5eac5f..960ad7a --- a/layouts/partials/navbar.html +++ b/layouts/partials/navbar.html @@ -1,18 +1,53 @@ - -