<commit_before>{% if square is empty %}
  {% set square = false %}
{% endif %}

{% if wide is empty %}
  {% set wide = false %}
{% endif %}

{% if hover is empty %}
  {% set hover = false %}
  {% set hoverable = '' %}
{% else %}
  {% set hoverable = 'hoverable' %}
{% endif %}

{% if gif is empty %}
  {% set gif = '' %}
{% else %}
  {% set gif = 'gif-hover' %}
{% endif %}

{% if thumb is empty %}
  {% set thumb = post.thumbnail.src %}
{% endif %}

{% if blazy == false %}
  {% set blazy = '' %}
  {% set lazySrc = 'src' %}
  {% set squarePH = '' %}
  {% set thumbPH = '' %}
{% else %}
  {% set blazy = 'b-lazy' %}
  {% set lazySrc = '{{ lazySrc }}' %}
  {% set squarePH = 'src=data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==' %}
  {% set thumbPH = 'src=data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAJCAQAAACRI2S5AAAAEElEQVR42mNkIAAYRxWAAQAG9gAKqv6+AwAAAABJRU5ErkJggg==' %}
{% endif %}
<article class="grid-y article-item post-type-{{post.type}} post-category-{{post.category}} {{ hoverable }} {{ gif }}" id="post-{{post.ID}}" data-equalizer-watch>
  <div class="cell grow">
    <a href="{{post.link}}">
      <div class="thumbnail-container">
        {% if square == true %}
          <img class="{{ blazy }} square" {{ squarePH }} {{ lazySrc }}="{{ thumb | resize(500, 500) }}" alt="{{ post.title }}">
        {% elseif wide == true %}
          <img class="{{ blazy }}" {{ thumbPH }} {{ lazySrc }}="{{ thumb | resize(640, 360) }}" alt="{{ post.title }}">
        {% else %}
          <img class="{{ blazy }}" {{ thumbPH }} {{ lazySrc }}="{{ thumb | resize(400, 300) }}" alt="{{ post.title }}">
        {% endif %}

        {% if hover %}
          {% if post.type == 'tv' %}
            <video class="hover" loop muted preload="none" src="{{ post.get_field('hover_preview').url }}"></video>
          {% else %}
            <img class="{{ blazy }} hover" {{ lazySrc }}="{{ TimberImage(post.get_field('artist_logo')).src }}" alt="">
          {% endif %}
        {% endif %}
      </div>
      <header>
<commit_msg>Adding support for custom blog thumbnail<commit_after>{% if square is empty %}
  {% set square = false %}
{% endif %}

{% if wide is empty %}
  {% set wide = false %}
{% endif %}

{% if hover is empty %}
  {% set hover = false %}
  {% set hoverable = '' %}
{% else %}
  {% set hoverable = 'hoverable' %}
{% endif %}

{% if gif is empty %}
  {% set gif = '' %}
{% else %}
  {% set gif = 'gif-hover' %}
{% endif %}

{% if thumb is empty %}
  {% set thumb = post.thumbnail.src %}
{% endif %}

{% if blazy == false %}
  {% set blazy = '' %}
  {% set lazySrc = 'src' %}
  {% set squarePH = '' %}
  {% set thumbPH = '' %}
{% else %}
  {% set blazy = 'b-lazy' %}
  {% set lazySrc = '{{ lazySrc }}' %}
  {% set squarePH = 'src=data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==' %}
  {% set thumbPH = 'src=data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAJCAQAAACRI2S5AAAAEElEQVR42mNkIAAYRxWAAQAG9gAKqv6+AwAAAABJRU5ErkJggg==' %}
{% endif %}
<article class="grid-y article-item post-type-{{post.type}} post-category-{{post.category}} {{ hoverable }} {{ gif }}" id="post-{{post.ID}}" data-equalizer-watch>
  <div class="cell grow">
    <a href="{{post.link}}">
      <div class="thumbnail-container">

        {% if post.get_field('blog_post_thumbnail') %}
        <img {{ lazySrc }}="{{ TimberImage(post.get_field('blog_post_thumbnail')).src }}" alt="">
        {% else %}

        {% if square == true %}
          <img class="{{ blazy }} square" {{ squarePH }} {{ lazySrc }}="{{ thumb | resize(500, 500) }}" alt="{{ post.title }}">
        {% elseif wide == true %}
          <img class="{{ blazy }}" {{ thumbPH }} {{ lazySrc }}="{{ thumb | resize(640, 360) }}" alt="{{ post.title }}">
        {% else %}
          <img class="{{ blazy }}" {{ thumbPH }} {{ lazySrc }}="{{ thumb | resize(400, 300) }}" alt="{{ post.title }}">
        {% endif %}
        
        {% endif %}

        {% if hover %}
          {% if post.type == 'tv' %}
            <video class="hover" loop muted preload="none" src="{{ post.get_field('hover_preview').url }}"></video>
          {% else %}
            <img class="{{ blazy }} hover" {{ lazySrc }}="{{ TimberImage(post.get_field('artist_logo')).src }}" alt="">
          {% endif %}
        {% endif %}
      </div>
      <header>

{'fraction_non_alphanumeric': 0.22440036900369004, 'fraction_numerical': 0.014760147601476014, 'mean_word_length': 2.924886877828054, 'pattern_counts': {'":': 0, '<': 28, '<?xml version=': 0, '>': 28, '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': '3188625', 'n_tokens_mistral': 1729, 'n_tokens_neox': 1478, 'n_words': 325}