Skip to content

Latest commit

 

History

History
52 lines (49 loc) · 2.05 KB

File metadata and controls

52 lines (49 loc) · 2.05 KB
layout default
title Writing
permalink /writing/

Writing

Articles, blog posts, and thoughts on technology, blockchain, and digital marketing.

Categories

{% assign categories = site.categories | sort %} {% for category in categories %} {{ category[0] | capitalize }} ({{ category[1] | size }}) {% endfor %}
    <div class="posts-list">
        {% for post in site.posts %}
        <article class="post-item">
            <div class="post-content">
                <h2><a href="{{ post.url | relative_url }}">{{ post.title }}</a></h2>
                <div class="post-meta">
                    <time datetime="{{ post.date | date_to_xmlschema }}">{{ post.date | date: "%B %-d, %Y" }}</time>
                    {% if post.categories.size > 0 %}
                    <span class="post-categories">
                        {% for category in post.categories %}
                        <a href="{{ '/categories/' | relative_url }}{{ category | slugify }}">{{ category }}</a>
                        {% unless forloop.last %}, {% endunless %}
                        {% endfor %}
                    </span>
                    {% endif %}
                </div>
                <p class="post-excerpt">{{ post.excerpt | strip_html | truncatewords: 50 }}</p>
                <a href="{{ post.url | relative_url }}" class="read-more">Read more →</a>
            </div>
        </article>
        {% endfor %}
    </div>
</div>