layout | permalink | title | nav | nav_order | pagination | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
default |
/blog/ |
blog |
true |
1 |
|
{% assign blog_name_size = site.blog_name | size %} {% assign blog_description_size = site.blog_description | size %}
{% if blog_name_size > 0 or blog_description_size > 0 %}
{% endif %}{% if site.display_tags or site.display_categories %}
-
{% for tag in site.display_tags %}
- {{ tag }} {% unless forloop.last %}
- {{ category }} {% unless forloop.last %}
•
{% endunless %} {% endfor %} {% if site.display_categories.size > 0 and site.display_tags.size > 0 %}•
{% endif %} {% for category in site.display_categories %}•
{% endunless %} {% endfor %}{% assign featured_posts = site.posts | where: "featured", "true" %}
{% if featured_posts.size > 0 %}
{% assign is_even = featured_posts.size | modulo: 2 %}
{% for post in featured_posts %}
{{ post.description }}
{% if post.external_source == blank %}
{% assign read_time = post.content | number_of_words | divided_by: 180 | plus: 1 %}
{% else %}
{% assign read_time = post.feed_content | strip_html | number_of_words | divided_by: 180 | plus: 1 %}
{% endif %}
{% assign year = post.date | date: "%Y" %}
<p class="post-meta">
{{ read_time }} min read ·
<a href="{{ year | prepend: '/blog/' | prepend: site.baseurl}}">
<i class="fa-solid fa-calendar fa-sm"></i> {{ year }} </a>
</p>
</div>
</div>
</div>
</div>
</a>
</div>
{% endfor %}
</div>
</div>
<hr>
{% endif %}
{% if page.pagination.enabled %}
{% assign postlist = paginator.posts %}
{% else %}
{% assign postlist = site.posts %}
{% endif %}
{% for post in postlist %}
{% if post.external_source == blank %}
{% assign read_time = post.content | number_of_words | divided_by: 180 | plus: 1 %}
{% else %}
{% assign read_time = post.feed_content | strip_html | number_of_words | divided_by: 180 | plus: 1 %}
{% endif %}
{% assign year = post.date | date: "%Y" %}
{% assign tags = post.tags | join: "" %}
{% assign categories = post.categories | join: "" %}
<li>
{% if post.thumbnail %}
{% endif %}
{% if post.redirect == blank %} {{ post.title }} {% elsif post.redirect contains '://' %} {{ post.title }} {% else %} {{ post.title }} {% endif %}
{{ post.description }}
{{ read_time }} min read · {{ post.date | date: '%B %d, %Y' }} {% if post.external_source %} · {{ post.external_source }} {% endif %}
{{ year }}
{% if tags != "" %}
·
{% for tag in post.tags %}
<a href="{{ tag | slugify | prepend: '/blog/tag/' | prepend: site.baseurl}}">
<i class="fa-solid fa-hashtag fa-sm"></i> {{ tag }}</a>
{% unless forloop.last %}
{% endunless %}
{% endfor %}
{% endif %}
{% if categories != "" %}
·
{% for category in post.categories %}
<a href="{{ category | slugify | prepend: '/blog/category/' | prepend: site.baseurl}}">
<i class="fa-solid fa-tag fa-sm"></i> {{ category }}</a>
{% unless forloop.last %}
{% endunless %}
{% endfor %}
{% endif %}
</p>
{% if post.thumbnail %}
{% endfor %}
{% if page.pagination.enabled %} {% include pagination.liquid %} {% endif %}