From c890ac388ed5f3d99f3827ca69944119165f5771 Mon Sep 17 00:00:00 2001 From: Matthieu Bessat Date: Tue, 20 Jun 2023 23:52:45 +0200 Subject: [PATCH] fix(carousel): with templating generation --- layouts/landing-matthieu/list.html | 82 +++++++++--------------------- layouts/partials/fullmod.html | 4 ++ 2 files changed, 28 insertions(+), 58 deletions(-) create mode 100644 layouts/partials/fullmod.html diff --git a/layouts/landing-matthieu/list.html b/layouts/landing-matthieu/list.html index 8c7365a..df325a1 100644 --- a/layouts/landing-matthieu/list.html +++ b/layouts/landing-matthieu/list.html @@ -227,67 +227,33 @@ + {{ $slides_count := 6 }} diff --git a/layouts/partials/fullmod.html b/layouts/partials/fullmod.html new file mode 100644 index 0000000..b37752b --- /dev/null +++ b/layouts/partials/fullmod.html @@ -0,0 +1,4 @@ +{{- $a := index . 0 -}} +{{- $b := index . 1 -}} +{{- $c := mod $a $b -}} +{{- if lt $c 0 -}}{{- add $c $b -}}{{- else -}}{{- $c -}}{{- end -}}