Customed view using academic theme

{{ $item := .item }}
{{ $widget := .page }}
{{ $index := .index }}

{{ $do_link := true }}
{{ if $item.Params.external_link | or $item.Content }}
{{ $do_link = true }}
{{ else }}
{{ $do_link = false }}
{{ end }}

{{ $link := $item.Params.external_link | default $item.RelPermalink }}
{{ $target := .target }}

{{/* Get summary. */}}
{{ $summary := “” }}
{{ if $item.Params.summary }}
{{ $summary = $item.Params.summary | markdownify | emojify }}
{{ else if $item.Params.abstract }}
{{ $summary = $item.Params.abstract | markdownify | emojify }}
{{ else if $item.Summary }}
{{ $summary = $item.Summary }}
{{ end }}

{{ $resource := partial "blox-core/functions/get_featured_image.html" $item }} {{ with $resource }} {{ $image := . }} {{ if ne $image.MediaType.SubType "gif" }}{{ $image = $image.Process "resize 540x webp" }}{{ end }} {{ if $do_link }}{{ end }} {{ $item.Title }} {{ if $do_link }}{{ end }} {{ end }}
  <div class="mt-auto"> <!-- Pushes content to bottom if there's extra space -->
    <div class="section-subheading article-title mb-0 mt-3">
      {{ if $do_link }}<a href="{{ $link }}" {{ $target | safeHTMLAttr }}>{{ end }}
      {{ $item.Title | markdownify | emojify }}
      {{ if $do_link }}</a>{{ end }}
    </div>

    {{ with $summary }}
    <div class="article-style mt-2">
      {{ . }}
    </div>
    {{ end }}
    <div class="btn-links mt-2">
      {{ partial "page_links" (dict "page" $item "is_list" 0) }}
    </div>
  </div>
</div>

\I write a customed view using academic theme. the view let each
post occupy half of the page. I put the file in layouts/partial/views. However, when the single row is not full, it starts a new row. Your help would be highly appreciated!

You are more likely to receive an accurate and timely response from the Academic/Wowchemy/Hugo Blox team:
https://github.com/HugoBlox/hugo-blox-builder/discussions

They also have an active Discord channel:
https://discord.com/invite/z8wNYzb

cc: @alcarazr

thank you, Sir.