_layouts
and _includes
in Jekyll was a bit complicated. It appeared to not work if the modal HTML was added in the post itself, so I ended up creating a new _includes/carousels/
and then a YAML line in the post carousel: true
and then some liquid in the post.html
to match the post.id to a carousel HTML if page.carousel
was true
. In the end, the carousel and the images on the post were made from a template with input data processed by a new little Python script: screens_to_cards.py
. (I initially tried using Lightbox for Bootstrap 5 but couldn’t control the display and interactions adequately.) See finished carousel in: [I want to buy a new SUV which brand is best?].search-bar-links
always visiblejekyll-gzip