Almost Recent Entries

There are some things about blogging that just doesn't make sense, take recent entries as an example. On the front page you have maybe your last 10 posts, next to that you have a recent entries widget showing your last 10 posts, what is the point? Shouldn't it be a teaser to additional content?

The code below is a replacement for the recent entries widget code, Included on the front page it will show the previous 10 entries following the last entry on your index page. While on your archive pages it functions as a 'normal' recent entry widget.

<mt:If name="main_index">
<mt:SetVarBlock name="entryOffset"><mt:EntriesCount></mt:SetVarBlock>
<mt:else>
<mt:SetVarBlock name="entryOffset">auto</mt:SetVarBlock>
</mt:If>
<mt:If tag="BlogEntryCount">
    <mt:Entries lastn="10" offset="$entryOffset">
        <mt:EntriesHeader>
<div class="widget-recent-entries widget-archives widget">
    <h3 class="widget-header">Recent Entries</h3>
    <div class="widget-content">
        <ul class="widget-list">
        </mt:EntriesHeader>
            <li class="widget-list-item">
                <h4><a href="<$mt:EntryPermalink$>"><$mt:EntryTitle$></a></h4>
                <p><mt:EntryBody words="25" convert_breaks="0" />...</p>
            </li>
        <mt:EntriesFooter>
        </ul>
    </div>
</div>
        </mt:EntriesFooter>
    </mt:Entries>
</mt:If>

Leave a comment

Gallery

Recent Entries

Close