Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplified layout #1

Open
wants to merge 15 commits into
base: main
Choose a base branch
from
Prev Previous commit
Next Next commit
move title to index.html
  • Loading branch information
r03ert0 committed Nov 15, 2020
commit ace6fd7f14ec23fa3c01c9d0ec1449292e937375
56 changes: 56 additions & 0 deletions layouts/index.html
Original file line number Diff line number Diff line change
@@ -188,6 +188,62 @@ <h3 style="margin-top: 1em;">License</h3>

<!-- Show the partial report.html (artifact from pandoc job) -->
<div class="col-xs-12 col-sm-7 col-pull-7" style="margin-left:4rem;margin-right:1rem">

<h1
style="font-weight:400! important;margin-top:5rem;margin-bottom:.5em!important;line-height:1em;margin-right:1rem! important;"
>{{$.Site.Data.report.report.title}}</h1>

<ul class="comma-list" style="font-size:1.2rem! important;margin-bottom:5px! important;">
{{ 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}}

<li style="list-style: none;" data-toggle="tooltip" title={{ $.Scratch.Get "inst" }} class="red-tooltip">

<a href='{{ $lbl.url }}'><u>{{ $lbl.firstname }} {{$lbl.surname}}</u></a>
</li>

{{end}}
{{if not $lbl.url}}
<li style="list-style: none;" data-toggle="tooltip" title={{ $.Scratch.Get "inst" }}>
{{ $lbl.firstname }} {{$lbl.surname}}
</li>
{{end}}
{{end}}
</ul>
<br />

<ul class="comma-list" style="font-size:.7rem! important;margin-bottom:5px! important;">
{{ range $ky, $lbl := $.Site.Data.report.report.affiliations}}
<li style="list-style: none;">
{{ $lbl.orgname }}
</li>
{{end}}
</ul>

<h2 style="margin-top: 1em;">Abstract</h2>
<p> {{.Site.Data.report.report.summary}}</p>
<ul class="tags">
{{ range $ky, $lbl := .Site.Data.report.report.tags}}
<li class="tag">{{$lbl}}</li>
{{else}}
<li>No tags.</li>
{{end}}
</ul>

{{ partial "report.html" . }}
</div>

55 changes: 0 additions & 55 deletions layouts/partials/report.html
Original file line number Diff line number Diff line change
@@ -19,61 +19,6 @@
</head>
<body>

<h1
style="font-weight:400! important;margin-top:5rem;margin-bottom:.5em!important;line-height:1em;margin-right:1rem! important;"
>{{$.Site.Data.report.report.title}}</h1>

<ul class="comma-list" style="font-size:1.2rem! important;margin-bottom:5px! important;">
{{ 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}}

<li style="list-style: none;" data-toggle="tooltip" title={{ $.Scratch.Get "inst" }} class="red-tooltip">

<a href='{{ $lbl.url }}'><u>{{ $lbl.firstname }} {{$lbl.surname}}</u></a>
</li>

{{end}}
{{if not $lbl.url}}
<li style="list-style: none;" data-toggle="tooltip" title={{ $.Scratch.Get "inst" }}>
{{ $lbl.firstname }} {{$lbl.surname}}
</li>
{{end}}
{{end}}
</ul>
<br />

<ul class="comma-list" style="font-size:.7rem! important;margin-bottom:5px! important;">
{{ range $ky, $lbl := $.Site.Data.report.report.affiliations}}
<li style="list-style: none;">
{{ $lbl.orgname }}
</li>
{{end}}
</ul>

<h2 style="margin-top: 1em;">Abstract</h2>
<p> {{.Site.Data.report.report.summary}}</p>
<ul class="tags">
{{ range $ky, $lbl := .Site.Data.report.report.tags}}
<li class="tag">{{$lbl}}</li>
{{else}}
<li>No tags.</li>
{{end}}
</ul>

<h2 id="introduction">Introduction</h2>
<p>In this section a mathematical model of the growing embryo will be described. This model
will be a simplification and an idealization, and consequently a falsification. It is to be