Skip to content

Commit

Permalink
theme: Increase the width of the blog hero image
Browse files Browse the repository at this point in the history
Signed-off-by: Joaquim Rocha <joaquim.rocha@microsoft.com>
  • Loading branch information
joaquimrocha committed Oct 12, 2023
1 parent 2213713 commit 9329585
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion themes/kinvolk-generic/layouts/partials/article.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ <h2 id="blogtitle" class="section-title">{{ .Title }}</h2>
{{- $mediaType := (default $image.ResourceType $image.MediaType) -}}
{{- $imagePath = $image.RelPermalink -}}
{{- if in (slice "image/jpeg" "image/jpg" "image/png") (string $image.MediaType) -}}
{{- $imagePath = ($image.Resize "900x webp q100").RelPermalink -}}
{{- $imagePath = ($image.Resize "1024x webp").RelPermalink -}}
{{- end -}}
{{- end -}}

Expand Down
2 changes: 1 addition & 1 deletion themes/kinvolk-generic/layouts/section/blog.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ <h2 class="section-title">Blog</h2>
{{- $mediaType := (default $image.ResourceType $image.MediaType) -}}
{{- $imagePath = $image.RelPermalink -}}
{{- if in (slice "image/jpeg" "image/jpg" "image/png") (string $image.MediaType) -}}
{{- $imagePath = ($image.Resize "920x webp q100").RelPermalink -}}
{{- $imagePath = ($image.Resize "1024x webp q100").RelPermalink -}}
{{- end -}}
{{- end -}}
<div class="w-100 h-100 post-hero__image" style="background-image: url('{{ $imagePath }}');">
Expand Down

0 comments on commit 9329585

Please sign in to comment.