Skip to content

Latest commit

 

History

History
34 lines (29 loc) · 859 Bytes

blog.md

File metadata and controls

34 lines (29 loc) · 859 Bytes
layout title
default
Blog

{% assign sorted_cats = site.categories | sort %} {% for category in sorted_cats %} {% assign sorted_posts = category[1] | reversed %} {% assign category_title = category[0] | capitalize %}

{{ category[0] }}

<table>
  {% for post in sorted_posts %}
    {% assign words = post.content | number_of_words %}
    <tr>
      <th style="text-align:right;width:30%;">{{ post.date | date_to_string }}</th>
      <th>
        <a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a>
        - 
        {% if words < 180 %}
          1 min
        {% else %}
          {{ words | divided_by:110 }} mins
        {% endif %}
      </th>
    </tr>
  {% endfor %}
</table>

{% endfor %}