Skip to content
Snippets Groups Projects
Commit 790e12db authored by alexisben's avatar alexisben
Browse files

fix project image ratio

parent 9b51f109
No related branches found
No related tags found
No related merge requests found
......@@ -30,8 +30,8 @@
img
display: block
object-fit: cover
@if $article-media-aspect-ratio
aspect-ratio: $article-media-aspect-ratio
@if $aspect-ratio
aspect-ratio: $aspect-ratio
h2, h3, [itemprop=headline], [itemprop=name]
@include h3
a
......
{{- $block := .block -}}
{{- $block_title := .block.title -}}
{{- $block_class := partial "GetBlockClass" .block -}}
{{- $layout := .block.data.layout | default "grid" -}}
{{- $layout := "grid" -}}
{{- with .block.data -}}
<div class="{{ $block_class }}">
......
{{ $heading_level := .heading_level | default 3 }}
{{ $heading := printf "h%d" $heading_level }}
<div class="list">
{{ range $project := .projects -}}
{{ with site.GetPage .file }}
{{ partial "projects/project.html" (dict
"project" .
"heading" $heading
) }}
{{ end }}
{{ end }}
</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