September 24, 2004
How do I show a default number of posts on my blog home page?
Movable Type is automatically set up to display 7 days of posts. Many times, however, seven days isn't enough, especially if you don't post everyday or if you only post once a week. Within the WebLog Config section of the administration interface there is a way to increase the number of days you want to show on your blog's home page, among other options. There is also another option. There is a way you can set up your blog home page to always show a default number of posts rather than a set number of days. Using this method, you could set your blog to always show your last 10 posts, or 20 posts, or however many you want.
To make this work you must alter the Main Index Template in the Templates section of the MT administrative interface. Once you are in the Main Index Template find this line:
alter it to look like this:
Of course, you can enter any number into the "lastn" variable that you desire. After you have altered the line click "Save" and then "Rebuild." Your blog home page should now always show your last 10 (or whatever) entries.