Skip to content
Snippets Groups Projects
Commit f89a6da7 authored by Arnaud Levy's avatar Arnaud Levy
Browse files

publications

parent 54cd348f
No related branches found
No related tags found
No related merge requests found
......@@ -143,6 +143,11 @@ params:
mobile: 350
tablet: 450
desktop: 900
publications:
hero:
mobile: 400
tablet: 800
desktop: 900
programs:
hero:
mobile: 400
......
{{- partial "header/hero.html"
(dict
"title" .Title
"image" .Params.image
"sizes" site.Params.image_sizes.sections.publications.hero
"context" .
) -}}
{{- partial "header/hero.html"
(dict
"title" .Title
"context" .
) -}}
<article class="publication">
<div class="post-content">
{{- $title := partial "PrepareHTML" .Title -}}
<h1 itemprop="headline"><a href="{{ .Permalink }}" title="{{ safeHTML (i18n "commons.more_aria" (dict "Title" $title)) }}">{{ $title }}</a></h1>
<time itemprop="datePublished" datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date | time.Format ":date_short" }}</time>
</div>
</article>
<div class="publications">
{{ range .Paginator.Pages }}
{{ partial "publications/publication.html" . }}
{{ end }}
</div>
{{- partial "commons/summary.html" . -}}
{{ define "main" }}
{{ partial "publications/hero-list.html" . }}
<div class="document-content">
{{ partial "commons/list-content.html" . }}
{{ partial "publications/summary.html" (dict
"with_container" true
"context" .
) }}
{{ partial "blocks/list.html" . }}
<div class="container">
{{ partial "publications/publications.html" . }}
{{ partial "commons/pagination.html" . }}
</div>
</div>
{{ end }}
{{ define "main" }}
{{ partial "publications/hero-single.html" . }}
{{ end }}
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