From 8e5766e51f0764fdcb381c25d7511801f53de9ac Mon Sep 17 00:00:00 2001 From: Hanzei Date: Thu, 30 Aug 2018 22:06:12 +0200 Subject: [PATCH] Replace .Scratch with = --- layouts/partials/home/projects.html | 13 ++++++------- layouts/projects/list.html | 13 ++++++------- theme.toml | 2 +- 3 files changed, 13 insertions(+), 15 deletions(-) diff --git a/layouts/partials/home/projects.html b/layouts/partials/home/projects.html index 62d0a83..e5a28a8 100644 --- a/layouts/partials/home/projects.html +++ b/layouts/partials/home/projects.html @@ -10,18 +10,17 @@ {{ $totalProjects := (len .Pages) }} {{ $numberOfProjectsToShow := .Site.Params.home.numberOfProjectsToShow | default $totalProjects }} {{ range $index, $element := .Pages.ByWeight | first $numberOfProjectsToShow }} + {{ $width := "302x" }} + {{ $columWidth := "is-one-third" }} {{ if .Site.Params.projects.useTwoColumns }} - {{ .Scratch.Set "width" "490x" }} -
- {{ else }} - {{ .Scratch.Set "width" "302x" }} -
- {{ end }} + {{ $columWidth = "is-half" }} + {{ $width = "490x" }} + {{ end}} +