My MovableType Archive Template


The original archive template in MovableType 3.2 will list all the articles in block. Of course, I do not like showing my articles in such a chaos. Obviously, My Readers will suffer a lot as the total of my articles increase to a considerable number. So I search the Internet and try to find a way that displaying the articles more friendly. Well I find a yearly archives template is very similar to my demand, but what I prefer is list my articles all together separated by month not year.


So I decide to make a template by myself. The following template is very easy to understand. I use the tag
<MTArchiveList> to list all the archivelist monthly first, then in each month call the <MTCalendar> to display the entries in “this” month.

<div class="archive-date-based archive">
<div class="archive-content">
<MTArchiveList archive_type="Monthly">
<h3 class="archive-header"><$MTArchiveTitle$></h3>
<MTCalendar month="this">
<MTCalendarIfEntries>
<MTEntries>
<a href="<$MTEntryPermalink$>" title="<MTEntryTitle remove_html="1">" >
<MTEntryTitle></a> | <small><$MTArchiveDate$></small><br />
</MTEntries>
</MTCalendarIfEntries>
</MTCalendar>
</MTArchiveList>
</div>
</div>

You can check out my building result of my archive template and it looks more clear than before. Enjoying reading my site and thanks for yixuan’s valuable comment!

1 Comment on My MovableType Archive Template

Leave a Reply

Your email address will not be published. Required fields are marked *