Chapter 3: Templates and Layout
Creating a Main Index
Problem
You want to create an index of your weblog's latest entries.
Solution
Create an index template using MTEntries and other tags.
Discussion
Weblogs are generally organized so that their entries are in reverse chronological order with the latest post on top. Movable Type ships with a template called Main Index with just such a listing. The Main Index is essentially the homepage for the weblog.
As an index template it has an implied context of the weblog. Entries
(represented by the MTEntries tag) are selected based on
Default Weblog Display Settings unless modified with attributes.
Here is a simplified example of a main index template.
<MTEntries>
<h3><$MTEntryTitle$></h3>
<p><$MTEntryExcerpt$></p>
<p>
<a href="<$MTEntryPermalink$>">Continue reading
"<$MTEntryTitle$>"</a>
</p>
<p>Posted by <$MTEntryAuthor$> at <$MTEntryDate format="%X"$></p>
</MTEntries>
For more on what these tags do see Appendix A.



