Need help with a Twig template error I am getting the following Twig error and I cannot figure out what is wrong. I'm new to Twig.

Twig Syntax Error – Twig\Error\SyntaxError

Unexpected "minify" tag (expecting closing tag for the "cache" tag defined near line 5).

in /var/www/craft/templates/index.twig at line 5

{% extends "_layouts/_layout.twig" %}

{% import "_partials/_macros.twig" as macros %}

{% block content %}

{% cache using key "home-page" %}{%- minify -%}

{% set banner = entry.homeBanner.one() %}

&lt;div class="home-banner"&gt;

  &lt;img class="home-banner__image js-object-fit"

 src="{{banner.image[0].getUrl('homePageBanner')}}"/&gt;

  &lt;div class="home-banner__container container"&gt;

    &lt;div class="row justify-content-center"&gt;

      &lt;div class="col-10 col-md-8"&gt;

        &lt;h1 class="h1 home-banner__heading"&gt;{{banner.heading}}&lt;/h1&gt;

      &lt;/div&gt;

      {% set bannerBtn = banner.button.one() %}
``
It looks like you're missing a closing {% endcache %} tag towards the end of your template.

(See https://docs.craftcms.com/v3/dev/tags/cache.html)

You might also be missing a closing {% endminify %} tag too, but I'm not sure if you've posted the whole of your template or not.