--- layout: default --- <div class="post"> <h1 class="post-title">{{ page.title }}</h1> <span class="post-date">Posted on: {{ page.date | date_to_string }} · Tagged: {{ page.tags }}</span> {{ content }} </div> {% capture tag %}{{ page.tags | first }}{% endcapture %} <div class="related"> <h2>Other Posts Tagged: {{ tag }}</h2> <ul class="related-posts"> {% for post in site.tags[tag] limit: 5 %} {% unless post.title == page.title %} <li> <p> <a href="{{ post.url | relative_url }}"> {{ post.title | escape }} </a> </p> </li> {% endunless %} {% endfor %}