Skip to content

Instantly share code, notes, and snippets.

@lg0
Created March 28, 2012 13:33
Show Gist options
  • Save lg0/2226212 to your computer and use it in GitHub Desktop.
Save lg0/2226212 to your computer and use it in GitHub Desktop.

Revisions

  1. 缥缈疯 created this gist Mar 28, 2012.
    10 changes: 10 additions & 0 deletions related.html
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    <section>
    <h1>Related Posts</h1>
    <ul class="posts">
    {% for post in site.related_posts limit:5 %}
    <li class="related">
    <a href="{{ root_url }}{{ post.url }}">{{ post.title }}</a>
    </li>
    {% endfor %}
    </ul>
    </section>