From 68d795ed4d8dcbe160409a48f80382fbcbbaa613 Mon Sep 17 00:00:00 2001 From: Hanzei Date: Sat, 21 Jul 2018 10:32:38 +0200 Subject: Fix width of images on homepage --- layouts/partials/home/projects.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'layouts') diff --git a/layouts/partials/home/projects.html b/layouts/partials/home/projects.html index 783e6f8..a6e82d7 100644 --- a/layouts/partials/home/projects.html +++ b/layouts/partials/home/projects.html @@ -11,17 +11,20 @@ {{ $numberOfProjectsToShow := .Site.Params.home.numberOfProjectsToShow | default $totalProjects }} {{ range $index, $element := .Pages.ByWeight | first $numberOfProjectsToShow }} {{ if eq (mod $numberOfProjectsToShow 2) 0 }} + {{ .Scratch.Set "width" "490x" }}
{{ else }} + {{ .Scratch.Set "width" "302x" }}