Commit 2d79e88f authored by Johannah Sprinz's avatar Johannah Sprinz
Browse files

Add featured images to talk list

parent 3084e58c
Pipeline #405139319 passed with stages
in 17 seconds
......@@ -302,3 +302,37 @@ article {
}
}
}
.talk {
background-color: $enby_yellow;
width: 100%;
margin-bottom: 3rem;
display: flex;
justify-content: center;
align-items: center;
flex-flow: row nowrap;
@media (max-width: 60rem) {
flex-flow: wrap;
}
li {
padding: 3rem;
margin-top: 0;
.citation-url {
display: none;
}
@media (max-width: 60rem) {
// padding-bottom: 0;
margin-bottom: 0 !important;
margin-top: 0 !important;
}
}
.talk-image {
width: 38rem;
max-width: 100%;
height: 21.375rem;
flex-shrink: 0;
background-repeat: no-repeat;
background-position: center;
background-size: cover;
}
}
......@@ -5,5 +5,7 @@
{{ " " }}{{ .Params.subtitle }}
{{- end -}}</strong
>. {{ .Params.city }}: {{ .Params.conference | default .Params.publisher }}.
<em>{{ .Params.original_link | default (absURL .RelPermalink) }}</em>
<em class="citation-url"
>{{ .Params.original_link | default (absURL .RelPermalink) }}</em
>
</li>
......@@ -14,7 +14,15 @@
<ul>
{{ range where .Paginator.Pages "Draft" "!=" true }}
<a href="{{ .Params.ExternalLink | default .RelPermalink }}">
{{ partial "citation.html" . }}
<div class="talk">
{{ partial "citation.html" . }}
{{ if .Params.featured_image }}
<div
class="talk-image"
style="background-image: url({{ .Params.featured_image | default .Site.Params.avatarurl }});"
></div>
{{ end }}
</div>
</a>
{{ end }}
</ul>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment