sblog 0.4.0

A tiny static blog generator written in Rust. Write posts in Markdown with YAML frontmatter and render them into plain HTML and CSS.
{% extends "base.html" %}

{% block title %}Archive — {{ site.title }}{% endblock title %}
{% block description %}Every post on this site.{% endblock description %}
{% block social_meta %}{{ social_meta | safe }}{% endblock social_meta %}

{% block content %}
  <div class="tag-head">
    <h1>Archive</h1>
    <p class="tag-count">{{ posts | length }} post{{ 's' if posts | length != 1 else '' }}</p>
  </div>
  <div class="archive-layout">
    <div class="archive-col">
      <ul class="post-list">
        {% for post in posts %}
        <li>
          <p class="post-date">{{ post.date_long }}</p>
          <h2 class="post-title"><a href="{{ post.href }}">{{ post.title }}</a></h2>
          <p class="post-summary">{{ post.summary }}</p>
          {% if post.tags %}<div class="post-tags">
            {% for t in post.tags %}<a class="tag" href="{{ t.href }}">{{ t.name }}</a>{% endfor %}
          </div>{% endif %}
        </li>
        {% endfor %}
      </ul>
    </div>
    <aside class="archive-sidebar">
      <div class="sidebar-section">
        <div class="sidebar-head">
          <h3>Tags</h3>
        </div>
        <ul class="tag-list">
          {% for tag in tags %}
          <li>
            <a class="tag-link" href="{{ tag.href }}">#{{ tag.name }}</a>
            <span class="tag-count">{{ tag.count }}</span>
          </li>
          {% endfor %}
        </ul>
      </div>
    </aside>
  </div>
{% endblock content %}