<commit_before>---
layout: default
title: Blog
---
<div class="well">
  <div class="list-group">
    {% for post in paginator.posts %}
    <div class="list-group-item">
      <div class="row-content">
        <!-- vyom: 210623
        upwork job: https://www.upwork.com/jobs/Renovate-static-blog-HTML-and-CSS_%7E01065076083bfce051
        created grid for featured image -->
        <div class="row">
          <div class="col-xs-12 col-sm-4 col-md-2">
            <img alt="{{ post.title }} featured image" src="{% if post.feature_image %}{{ post.feature_image }}{% else %}{{ site.featured_image }}{% endif %}">
          </div>
          <div class="col-xs-12 col-sm-8 col-md-10">
            <div class="least-content">{{ post.date | date_to_string }}</div>
            <h4 class="list-group-item-heading"><a href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a>
            </h4>

            {% comment %}
            vyom: 210623
            upwork project: https://www.upwork.com/jobs/Renovate-static-blog-HTML-and-CSS_%7E01065076083bfce051
            Truncate preview text on will with `<!--more-->` tag else truncate to 1000 words
            Thanks to:
            - https://stackoverflow.com/a/46996146/1598006
            - https://jonnylangefeld.com/blog/how-to-add-a-read-more-button-that-doesnt-suck-to-your-jekyll-blog
            {% endcomment %}
           {% if post.content contains '<!--more-->' %}
            <p class="list-group-item-text">{{ post.content | split:'<!--more-->' | first }} ...<span class="vyom-read-more-button"><a href="{{ post.url | prepend: site.baseurl }}">Read More</a></span></p>
            <div>
            </div>
            {% else %}
            <p class="list-group-item-text">{{ post.content | strip_html | strip_newlines | truncate: 500 }}  <span class="vyom-read-more-button"><a href="{{ post.url | prepend: site.baseurl }}">Read More</a></span></p>
            {% endif %}
          </div>
        </div>
      </div>
    </div>
    <div class="list-group-separator"></div>
    {% endfor %}
  </div>


  <!-- Pagination links -->
  {% if paginator.total_pages > 1 %}
  <ul class="pager">
    {% if paginator.previous_page %}
    <li class="previous">
      <a href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}">&laquo;</a>
    </li>
    {% else %}
    <li class="previous disabled"><span aria-hidden="true">&laquo;</span></li>
    {% endif %}

    <li><a href="/">First</a></li>

    {% for page in (1..paginator.total_pages) %}
    {% if page == paginator.page %}
    <li class="active">
      <a>{{ page }}<span class="sr-only">(current)</span></a>
    </li>
    {% elsif page == 1 %}
    <li><a href="/">{{ page }}</a></li>
    {% else %}
    <li>
      <a href="{{ site.paginate_path | prepend: site.baseurl | replace: '//', '/' | replace: ':num', page }}">{{ page
        }}</a>
    </li>
    {% endif %}
    {% endfor %}

    <li><a href="/page{{ paginator.total_pages }}/">Last</a></li>

    {% if paginator.next_page %}
    <li class="next">
      <a href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}">&raquo;</a>
    </li>
    {% else %}
    <li class="next disabled"><span>&raquo;</span></li>
    {% endif %}
  </ul>
  {% endif %}
</div><!-- end #home --><commit_msg>featured photo works for mobile<commit_after>---
layout: default
title: Blog
---
<div class="well">
  <div class="list-group">
    {% for post in paginator.posts %}
    <div class="list-group-item">
      <div class="row-content">
        {% comment %}
        vyom: 210623
        upwork job: https://www.upwork.com/jobs/Renovate-static-blog-HTML-and-CSS_%7E01065076083bfce051
        created grid for featured image
        {% endcomment %}

        {% comment %}
        featured image container
        {% endcomment%}
        <div>
          <img alt="{{ post.title }} featured image"
            src="{% if post.feature_image %}{{ post.feature_image }}{% else %}{{ site.featured_image }}{% endif %}">
        </div>
        {% comment %}
        Post excerpt container
        {% endcomment%}
        <div>
          <div class="least-content">{{ post.date | date_to_string }}</div>
          <h4 class="list-group-item-heading"><a href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a></h4>

          <p class="list-group-item-text">{{ post.content | strip_html | truncatewords: 20 }}</p>
        </div>
      </div>
    </div>
    <div class="list-group-separator"></div>
    {% endfor %}
  </div>


  <!-- Pagination links -->
  {% if paginator.total_pages > 1 %}
  <ul class="pager">
    {% if paginator.previous_page %}
    <li class="previous">
      <a href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}">&laquo;</a>
    </li>
    {% else %}
    <li class="previous disabled"><span aria-hidden="true">&laquo;</span></li>
    {% endif %}

    <li><a href="/">First</a></li>

    {% for page in (1..paginator.total_pages) %}
    {% if page == paginator.page %}
    <li class="active">
      <a>{{ page }}<span class="sr-only">(current)</span></a>
    </li>
    {% elsif page == 1 %}
    <li><a href="/">{{ page }}</a></li>
    {% else %}
    <li>
      <a href="{{ site.paginate_path | prepend: site.baseurl | replace: '//', '/' | replace: ':num', page }}">{{ page
        }}</a>
    </li>
    {% endif %}
    {% endfor %}

    <li><a href="/page{{ paginator.total_pages }}/">Last</a></li>

    {% if paginator.next_page %}
    <li class="next">
      <a href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}">&raquo;</a>
    </li>
    {% else %}
    <li class="next disabled"><span>&raquo;</span></li>
    {% endif %}
  </ul>
  {% endif %}
</div><!-- end #home -->
{'fraction_non_alphanumeric': 0.2179264909847434, 'fraction_numerical': 0.018377253814147017, 'mean_word_length': 2.369742990654206, 'pattern_counts': {'":': 0, '<': 151, '<?xml version=': 0, '>': 153, 'https://': 5, 'lorem ipsum': 0, 'www.': 3, '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': '4644334', 'n_tokens_mistral': 2117, 'n_tokens_neox': 1914, 'n_words': 397}