Skip to content

Instantly share code, notes, and snippets.

@drewm
Created March 14, 2013 16:41
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save drewm/5162908 to your computer and use it in GitHub Desktop.
Save drewm/5162908 to your computer and use it in GitHub Desktop.
Simple Perch Blog archive list. Template files go in perch/templates/blog/
<?php
perch_blog_date_archive_months('years.html', 'months.html');
?>
<li>
<a href="archive.php?year=<perch:blog id="postDateTime" format="Y" />&amp;month=<perch:blog id="postDateTime" format="m" />">
<perch:blog id="postDateTime" format="%B %Y" />
</a>
</li>
<perch:before>
<ul>
</perch:before>
<perch:blog id="months" encode="false" />
<perch:after>
</ul>
</perch:after>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment