Skip to content

Instantly share code, notes, and snippets.

@verlane
Created August 17, 2013 03:20
Show Gist options
  • Save verlane/6255090 to your computer and use it in GitHub Desktop.
Save verlane/6255090 to your computer and use it in GitHub Desktop.
Octopress2 Slash-Theme
diff --git a/source/_includes/archive_post.html b/source/_includes/archive_post.html
index 79d740d..299aa56 100644
--- a/source/_includes/archive_post.html
+++ b/source/_includes/archive_post.html
@@ -3,12 +3,9 @@
{% unless year == this_year %}
{% assign year = this_year %}
{% unless forloop.first %}
- </section>
+ </section>
{% endunless %}
<section class="archives"><h1 class="year">{{ date | date: "%Y" }}</h1>
- {% if forloop.last %}
- </section>
- {% endif %}
{% endunless %}
<article>
<h2 class="title"><a href="{{ root_url }}{{ post.url }}">{{post.title}}</a></h2>
@@ -20,3 +17,6 @@
{% endif %}
</div>
</article>
+{% if forloop.last %}
+</section>
+{% endif %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment