樂多的 CSS 一般都沒有文章的頁首及頁尾

改成有頁首及頁尾的設計

必須同時修改 roodo.css 及 main.template
roodo.css 要加入或檢查有無如下程式碼 (有圖檔連結哦!)
.datetop,#articletop{
background:url(2column_top.gif) no-repeat 50% 0;
padding:28px 0;
position:relative;
z-index:1;
}.blogbodybottom{
background:url(2column_bottom.gif) repeat-y 50% 0;
padding:22px 0;
margin-bottom:10px;
}
main.template 要加入兩行程式碼
{else}
{foreach from=$posts item=post}
<!-- show the whole post, as we would normally do -->
{assign var="postDate" value=$post->getDateObject()}
{if $prevDay != $postDate->getDay()}
<div class="datetop"></div> <!-- 文章頁頭圖 --><H2 class=date>{$locale->formatDate($postDate,"%B %d, %Y")}</H2>
{/if}
{assign var="prevDay" value=$post->getDay()}
{include file="$blogtemplate/post.template"}
<div class="blogbodybottom"></div> <!-- 文章頁尾圖 -->{/foreach}
{/if}