<commit_before><% preview = local_assigns.has_key? :url %>

<% if preview %>
  <div class="flex flex-v-center flex-h-between">
    <h2><%= title %></h2>
    <%= link_to t('global.button.all'), url, title: t('global.button.all'), class: 'button--all' %>
  </div>
<% end %>

<div class="cards--search-results-areas <%= preview ? 'preview' : '' %>">
  <% cards.each do |card| %>
    <%= link_to protected_area_path(card.wdpa_id), title: "View more about the site: #{ card.name }", class: "card__link" do %>

      <div v-lazy-container="{ selector: 'img' }">
        <%= protected_area_cover(card) %>
      </div>

      <div class="card__content">
        <h3 class="card__title"><%= card.name %></h3>
      </div>
    <% end %>
  <% end %>
</div><commit_msg>Replace lazy loader for sites images in site page<commit_after><% preview = local_assigns.has_key? :url %>

<% if preview %>
  <div class="flex flex-v-center flex-h-between">
    <h2><%= title %></h2>
    <%= link_to t('global.button.all'), url, title: t('global.button.all'), class: 'button--all' %>
  </div>
<% end %>

<div class="cards--search-results-areas <%= preview ? 'preview' : '' %>">
  <% cards.each do |card| %>
    <%= link_to protected_area_path(card.wdpa_id), title: "View more about the site: #{ card.name }", class: "card__link" do %>

      <div class="card__image-placeholder">
        <div alt="title" class="card__image" style="background-image: url(<%= protected_area_cover(card, with_tag: false) %>)"></div>
      </div>

      <div class="card__content">
        <h3 class="card__title"><%= card.name %></h3>
      </div>
    <% end %>
  <% end %>
</div>
{'fraction_non_alphanumeric': 0.21651376146788992, 'fraction_numerical': 0.004892966360856269, 'mean_word_length': 3.457765667574932, 'pattern_counts': {'":': 0, '<': 53, '<?xml version=': 0, '>': 53, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5987955', 'n_tokens_mistral': 616, 'n_tokens_neox': 566, 'n_words': 127}