Skip to content
Snippets Groups Projects
Commit 6b8f3e02 authored by alexisben's avatar alexisben
Browse files

index publications

parent b806dfe7
No related branches found
No related tags found
No related merge requests found
.publications__section
.publications-statistics
ol
@include list-reset
@include grid(2)
@include grid(3, md)
@include grid(4, desktop)
@include grid(6, xxl)
b
@include lead
span
@include meta
b, span
display: block
.publications
margin-top: $spacing3
article
padding-bottom: $spacing2
padding-top: $spacing2
border-bottom: 1px solid $color-border
position: relative
@include media-breakpoint-down(desktop)
padding-right: $spacing2
a + .meta
margin-top: $spacing1
a::before
margin-top: px2rem(-6)
@include media-breakpoint-up(desktop)
@include grid(3)
align-items: baseline
a
@include h3
grid-column: 1 / 3
display: block
text-decoration: none
@include stretched-link(after)
&:hover
color: $color-accent
@include icon-block(arrow-right, before)
position: absolute
right: 0px
.meta
padding-right: $spacing2
.publications__page
.hero
......
......@@ -2,9 +2,11 @@
<div class="top">
<h2 class="h5">{{ i18n "persons.publications" }}</h2>
</div>
<div class="publications">
<ul class="publications">
{{ range . }}
{{ partial "publications/publication.html" . }}
<li>
{{ partial "publications/publication.html" . }}
</li>
{{ end }}
</div>
</ul>
</section>
<article class="publication">
<p class="title">
{{ $title := .Title }}
<a href="{{ .Permalink }}" title="{{ safeHTML (i18n "commons.more_aria" (dict "Title" $title)) }}">{{ $title }}</a>
</p>
{{ $title := .Title }}
<a href="{{ .Permalink }}" title="{{ safeHTML (i18n "commons.more_aria" (dict "Title" $title)) }}">{{ $title }}</a>
<p class="meta">
{{ .Date.Format "2006" }}
{{ .Params.authors }}
{{ .Date.Format "2006" -}}{{- if .Params.authors -}},{{- end }} {{ .Params.authors }}
</p>
</article>
<div class="publications-statistics">
{{ range first 6 (.Pages.GroupByDate "2006") }}
{{ len .Pages }}
{{ i18n "publications.stats.label"}}
{{ .Key }}
{{ end }}
<ol>
{{ range first 6 (.Pages.GroupByDate "2006") }}
<li>
<p>
<b>{{ len .Pages }}</b>
<span>{{ i18n "publications.stats.label"}}</span>
<span>{{ .Key }}</span>
</p>
</li>
{{ end }}
</ol>
</div>
\ No newline at end of file
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