Skip to content
Snippets Groups Projects
Commit 65c6ed97 authored by Olivia206's avatar Olivia206
Browse files

changed papers in volumes

parent 4592049b
No related branches found
No related tags found
No related merge requests found
......@@ -14,16 +14,53 @@
margin-top: $spacing3
> div
&:first-of-type
grid-column: 1 / 8
grid-column: 1 / 7
&:last-of-type
grid-column: 9 / 12
grid-column: 7 / 12
@include grid(2, desktop)
@include media-breakpoint-down(desktop)
margin-top: $spacing1
@include media-breakpoint-up(desktop)
align-items: start
a, button
@include meta
@include button-reset
align-items: center
cursor: pointer
display: flex
padding: 0
&::before
background-color: white
border: 1px solid $color-border
margin-right: $spacing0
padding: half($spacing0)
transition: background 0.3s ease, border 0.3s ease
@include media-breakpoint-up(desktop)
margin-right: $spacing1
&:hover
text-decoration: none
&::before
background-color: $color-text
border-color: transparent
color: $color-background
button
@include icon-block(eye, before)
a
@include icon-block(download, before)
@include media-breakpoint-down(desktop)
* + *
margin-top: $spacing0
h3
a:hover
color: $color-accent
.paper-volume
@include meta
text-transform: lowercase
a
@include link($color-text)
text-transform: none
span
text-transform: uppercase
.papers__page
.document-content
......
<article class="paper">
<article class="paper" itemscope itemtype="https://schema.org/ScholarlyArticle">
<div>
<h3><a href="{{ .Permalink }}">{{ partial "PrepareHTML" .Title }}</a></h3>
<p>
{{- range $index, $authors := .Params.Researchers -}}
{{- $author := site.GetPage (printf "/persons/%s" .) -}}
{{- if ne $index 0 -}},{{ end }}
<span itemprop="author" itemscope itemtype="https://schema.org/Person"><a href="{{ $author.Permalink }}" itemprop="url"><span itemprop="name">{{ trim $author.Title "\n" }}</span></a></span>
{{- end -}}
</p>
<h3>
<a href="{{ .Permalink }}" itemprop="url">
<span itemprop="name">{{ partial "PrepareHTML" .Title }}</span>
</a>
</h3>
{{- range $index, $authors := .Params.Researchers -}}
{{- $author := site.GetPage (printf "/persons/%s" .) -}}
{{- if ne $index 0 -}},{{ end }}
<span itemprop="author" itemscope itemtype="https://schema.org/Person"><a href="{{ $author.Permalink }}" itemprop="url"><span itemprop="name">{{ trim $author.Title "\n" }}</span></a></span>
{{- end -}}
<p class="paper-volume">
<span>Article</span>
{{ range .Params.Volumes }}
{{ $volume := site.GetPage (printf "/volumes%s" .) }}
{{ $volume := site.GetPage (printf "/volumes/%s" .) }}
{{ if $volume }}
{{ i18n "commons.in" }} “<a href="{{ $volume.Permalink }}">{{ $volume.Title }}</a>
{{ end }}
......@@ -18,12 +21,22 @@
</p>
</div>
<div role="group">
{{ if .Params.pdf }}
{{- $pdf := partial "GetMedia" .Params.pdf -}}
{{- $pdf_size := partial "GetHumanSize" $pdf.size -}}
<a href="{{ $pdf.url }}" download>
{{- i18n "commons.pdf_with_size" (dict "Size" $pdf_size) }}
</a>
{{ end }}
<button type="button" data-bs-toggle="modal">Résumé</button>
<a href="#" download>PDF (435 ko)</a>
{{/* <button type="button" data-bs-toggle="modal" data-bs-target="#{{ $modalId }}">{{ i18n "volumes.abstract" }}</button>
{{ if .Params.pdf }}
{{- $pdf := partial "GetMedia" .Params.pdf -}}
{{- $pdf_size := partial "GetHumanSize" $pdf.size -}}
<a href="{{ $pdf.url }}" download>
{{- i18n "commons.pdf_with_size" (dict "Size" $pdf_size) }}
</a>
{{ end }}
</div>
{{ partial "papers/modal.html"
(dict
"modalId" $modalId
"title" .Title
"abstract" .Params.abstract
) }} */}}
</div>
</article>
<section>
<div class="top">
<h2>{{ i18n "volumes.table_contents" }}</h2>
</div>
<div class="papers">
{{ partial "papers/papers.html" (dict
"paper" .) }}
</div>
</section>
{{ if .Pages }}
<div>
<h2>{{ i18n "volumes.table_contents" }}</h2>
<ol class="volume-table">
{{ range $index, $articles := .Pages }}
{{ $modalId := print "modalID_" $index }}
<li itemprop="hasPart" itemscope itemtype="https://schema.org/ScholarlyArticle">
<div>
<span itemprop="articleSection">{{ i18n "volumes.article.singular_name" }}</span>
</div>
<div>
<h3>
<a href="{{ .Permalink }}" itemprop="url">
<span itemprop="name">{{ partial "PrepareHTML" .Title }}</span>
</a>
</h3>
<p>
{{- range $index, $authors := .Params.Researchers -}}
{{- $author := site.GetPage (printf "/persons/%s" .) -}}
{{- if ne $index 0 -}},{{ end }}
<span itemprop="author" itemscope itemtype="https://schema.org/Person"><a href="{{ $author.Permalink }}" itemprop="url"><span itemprop="name">{{ trim $author.Title "\n" }}</span></a></span>
{{- end -}}
</p>
<div class="item--informations" role="group">
{{/* <a href="{{ .Permalink }}" itemprop="url">{{ i18n "commons.read" }}</a> */}}
<button type="button" data-bs-toggle="modal" data-bs-target="#{{ $modalId }}">{{ i18n "volumes.abstract" }}</button>
{{ if .Params.pdf }}
{{- $pdf := partial "GetMedia" .Params.pdf -}}
{{- $pdf_size := partial "GetHumanSize" $pdf.size -}}
<a href="{{ $pdf.url }}" download>
{{- i18n "commons.pdf_with_size" (dict "Size" $pdf_size) }}
</a>
{{ end }}
</div>
{{ partial "volumes/modal.html"
(dict
"modalId" $modalId
"title" .Title
"abstract" .Params.abstract
) }}
</div>
</li>
{{ end }}
</ol>
</div>
{{ end }}
......@@ -17,7 +17,7 @@
<div class="content">
{{ partial "volumes/description.html" . }}
{{ partial "volumes/table-contents.html" . }}
{{ partial "volumes/papers.html" . }}
</div>
</div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment