<commit_before><%#
  Work Gallery component
  - A content reference with headline, excerpt, action, and optional image

  Locals:
  - ARRAY prints: list of prints to display
  - BOOLEAN current (optional): show the current page in the list?
  - BOOLEAN tags (optional): add data tags to each item, for sorting?

  Styles:
  - components/gallery.scss
%>

<%
  current ||= false
  tags ||= true
%>

<ul data-ui-gallery>
  <% prints.each do |print| %>
    <% unless current == false && print.title == current_page.data.title %>
      <li data-ui-gallery-item>
          <% link_to print, class: "t-link-undecorated" do %>
            <% source = print.data.thumb.present? ? print.data.thumb : print.data.cover %>
            <%= image_tag (print.data.full_path ? source : "uploads/#{source}"), :alt => print.data.title, :class => "border" %>
          <% end %>
      </li>
    <% end %><commit_msg>clean up work gallery partial<commit_after><%
  # Work Gallery component
  # -> A content reference with headline, excerpt, action, and optional image

  # locals:
  # prints - ARRAY: list of prints to display
  current ||= false # BOOLEAN (optional): show the current page in the list?
  tags ||= true # BOOLEAN (optional): add data tags to each item, for sorting?
%>

<ul data-ui-gallery>
  <% prints.each do |print| %>
    <% unless current == false && print.title == current_page.data.title %>
      <li data-ui-gallery-item>
          <% link_to print, class: "t-link-undecorated" do %>
            <% source = print.data.thumb.present? ? print.data.thumb : print.data.cover %>
            <%= image_tag (print.data.full_path ? source : "uploads/#{source}"), :alt => print.data.title, :class => "border" %>
          <% end %>
      </li>
    <% end %>
{'fraction_non_alphanumeric': 0.15059897318881918, 'fraction_numerical': 0.0, 'mean_word_length': 2.8380743982494527, 'pattern_counts': {'":': 0, '<': 26, '<?xml version=': 0, '>': 31, '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': '6519549', 'n_tokens_mistral': 583, 'n_tokens_neox': 538, 'n_words': 162}