Skip to content
Snippets Groups Projects
Commit 3949a32a authored by alexisben's avatar alexisben
Browse files

fix diplomas hero

parent f5cea24a
No related branches found
No related tags found
No related merge requests found
......@@ -3,14 +3,11 @@
<div class="document-content">
<div class="container">
{{ partial "diplomas/image.html" .Params.image }}
{{ partial "diplomas/chapo.html" .Params.description_short }}
</div>
{{ partial "blocks/list.html" . }}
<div class="container">
{{ .Scratch.Set "show_programs" true }}
{{ partial "diplomas/diplomas.html" . }}
{{ .Scratch.Delete "show_programs" }}
</div>
</div>
......
{{ $show_programs := false }}
{{- if .Scratch.Get "show_programs" }}
{{ $show_programs = true }}
{{ end -}}
<ul class="diplomas">
{{ range .Paginator.Pages }}
<li>
......@@ -18,17 +14,17 @@
Lorem, ipsum dolor sit amet consectetur adipisicing elit. Esse labore aliquid nobis quasi, molestiae voluptatum ullam et consequatur voluptas. Eligendi quaerat veniam, sequi repellat illo dignissimos quasi libero itaque dolorum?
{{- partial "PrepareHTML" .Params.description_short -}}
</div>
{{- if $show_programs }}
<ol class="programs">
{{- range .Pages -}}
<li>
<a href="{{ .Permalink }}" title="{{ safeHTML (i18n "commons.more_aria" (dict "Title" .Title)) }}">
{{- partial "PrepareHTML" .Title -}}
</a>
</li>
{{- end -}}
</ol>
{{ end -}}
<ol class="programs">
{{- range .Pages -}}
<li>
<a href="{{ .Permalink }}" title="{{ safeHTML (i18n "commons.more_aria" (dict "Title" .Title)) }}">
{{- partial "PrepareHTML" .Title -}}
</a>
</li>
{{- end -}}
</ol>
</div>
</li>
{{ end }}
......
......@@ -2,5 +2,6 @@
{{- partial "header/hero.html"
(dict
"title" $title
"image" .Params.image
"context" .
) -}}
......@@ -6,6 +6,22 @@
{{- end -}}
<div class="content">
<h1>{{ partial "PrepareHTML" $title }}</h1>
{{- if .Params.image }}
<figure>
{{ partial "commons/image.html"
(dict
"image" .image
"mobile" "351"
"tablet" "456"
"desktop" "856"
) }}
{{ if .image.credit }}
<figcaption>
{{- partial "PrepareHTML" .image.credit -}}
</figcaption>
{{ end }}
</figure>
{{ end -}}
</div>
</div>
<div id="essential">
......
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