<div class="focus-content">
    <h3 class="post-block-title">
        <span>Focus News</span>
    </h3>

    {{ range first 3 (where .Site.Pages "Params.type" "focus") }}

    <a href="{{ .Permalink }}">
        <img class="img-fluid" src="{{ .Params.image | relURL }}" alt="" />
    </a>
    <section class="news-info">
        {{ range (.GetTerms "categories") }}
        <a href="{{ .Permalink }}">{{ .LinkTitle }}</a>
        {{ end }}
        <small>{{ .Date | time.Format ":date_long" }}</small>
    </section>
    <h2 class="post-title mb-3">
        <a href="{{ .Permalink }}">{{ .Params.title }}</a>
    </h2>

    {{ end }}

    <!-- {{ $t := $.Site.GetPage "/focus" }}
    {{ range $index, $element := first 3 ( where $t.Pages "Params.display" true) }}
    <a href="{{ .Permalink }}">
        <img class="img-fluid" src="{{ .Params.image | relURL }}" alt="" />
    </a>
    <section class="news-info">
        {{ range (.GetTerms "categories") }}
        <a href="{{ .Permalink }}">{{ .LinkTitle }}</a>
        {{ end }}
        <small>{{ .Date | time.Format ":date_long" }}</small>
    </section>
    <h2 class="post-title mb-3">
        <a href="{{ .Permalink }}">{{ .Params.title }}</a>
    </h2>
    {{ end }} -->
</div>