How to add the image for the taxonomy term?

Hi, I create the taxonomy drinkscategories, and add it in the config.toml.
Also i create the terms in content/drinkscategories/ and display the list of this terms on the home page.

<div class="categories-block">
    {{ range .Site.Taxonomies.drinkscategories }}
    <div class="categories-block__item" style="background-image: url('')">
        <div class="categories-block__footer">
            <h4 class="title">{{ .Page.Title }}</h4>
            <a class="link" href="#">
                <span> Vai al catalogo</span>
                <i class="fas fa-chevron-circle-right"></i>
            </a>
        </div>
    </div>
    {{ end }}
</div>

But, how can i add the image for the term to display it on the home page in cycle.
Thanks.

Please read the support guidelines and provide a sample repo with your project: Requesting Help

But i am resolve my problem, thanks.

    <div class="categories-block">
        {{ $drinkscategories := .Site.Taxonomies.drinkscategories }}
        {{ range $drinkscategories }}
            <div class="categories-block__item" style="background-image: url('{{ .Page.Params.imageForBlocks | absURL }}')">
                <div class="categories-block__footer">
                    <h4 class="title">{{ .Page.Title }}</h4>
                    <a class="link" href="#">
                        <span> Vai al catalogo</span>
                        <i class="fas fa-chevron-circle-right"></i>
                    </a>
                </div>
            </div>
        {{ end }}

    </div>

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.