From c85049501bfac4a11fe3794aa17726371ab83a75 Mon Sep 17 00:00:00 2001 From: alexisben <alex@noesya.coop> Date: Sun, 13 Nov 2022 18:07:03 +0100 Subject: [PATCH] fix block timeline --- assets/sass/_theme/blocks/timeline.sass | 1 - layouts/partials/blocks/templates/timeline.html | 3 ++- layouts/partials/blocks/templates/timeline/horizontal.html | 2 +- layouts/partials/blocks/templates/timeline/vertical.html | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/assets/sass/_theme/blocks/timeline.sass b/assets/sass/_theme/blocks/timeline.sass index 4fd9a5d4..5d93e944 100644 --- a/assets/sass/_theme/blocks/timeline.sass +++ b/assets/sass/_theme/blocks/timeline.sass @@ -34,7 +34,6 @@ overflow: hidden padding-bottom: $grid-gutter padding-top: $grid-gutter - // @include media-breakpoint-down(md) // margin-bottom: 3rem // &:first-of-type diff --git a/layouts/partials/blocks/templates/timeline.html b/layouts/partials/blocks/templates/timeline.html index aadcf57f..61109571 100644 --- a/layouts/partials/blocks/templates/timeline.html +++ b/layouts/partials/blocks/templates/timeline.html @@ -6,7 +6,8 @@ <div class="container"> {{ $template := printf "blocks/templates/timeline/%s.html" $layout }} {{ partial $template (dict - "block" . + "title" $title + "block" .block "context" $context ) }} </div> diff --git a/layouts/partials/blocks/templates/timeline/horizontal.html b/layouts/partials/blocks/templates/timeline/horizontal.html index 9b10d866..71944e1e 100644 --- a/layouts/partials/blocks/templates/timeline/horizontal.html +++ b/layouts/partials/blocks/templates/timeline/horizontal.html @@ -6,7 +6,7 @@ ) }} {{ end }} - {{ with .data }} + {{ with .block.data }} <div class="events"> <ol> {{ range .events }} diff --git a/layouts/partials/blocks/templates/timeline/vertical.html b/layouts/partials/blocks/templates/timeline/vertical.html index d3ec9fe5..f6959f6b 100644 --- a/layouts/partials/blocks/templates/timeline/vertical.html +++ b/layouts/partials/blocks/templates/timeline/vertical.html @@ -8,7 +8,7 @@ </div> {{- end }} - {{ with .data -}} + {{ with .block.data -}} <div class="events"> {{ range .events -}} <div class="event"> -- GitLab