这里,我们来演示如何将系统内置的第一个模板用高级标记编写出来。
这个模板样式如下,点这里浏览清晰图片
代码如下:
<BLOG:LOG PageSize="5">
<BLOG:TOP>
<a name=top></a>欢迎光临我的博客网站——<a href="{BlogUrl}">{BlogTitle}</a> ^_^
</BLOG:TOP>
<BLOG:LISTHEADER>
<table class="" cellspacing=0 cellpadding=0
width="100%" border=0>
<tbody>
<tr>
<td>全部分类中有 {Count} 篇日志 | 每页显示 {PageSize} 篇 |
这里显示
{ListCount} 篇<br>
{PageNav}</td>
</tr>
</tbody>
</table>
<table class="" cellspacing=0 cellpadding=0
width="100%" border=0>
</BLOG:LISTHEADER>
<BLOG:LISTENTRY>
<tbody>
<tr valign=top>
<td height=20><span class=loglistTitle><a
href="{LogUrl}">{LogTitle}</a></span> <span
class=digital>[{PublishTime
Format="yyyy-mm-dd"}]</span></td>
</tr>
<tr>
<td class=summary style="PADDING-RIGHT: 15px;
PADDING-LEFT: 15px; PADDING-BOTTOM: 2px; PADDING-TOP:
2px">{LogSummary}</td>
</tr>
<tr>
<td class=loglistInfo>作者:[<a href="{AuthorUrl}">{LogAuthor}</a>]
分类:[<a href="{ClassUrl}">{Class}</a>]
时间:<span class=digital>[{PublishTime
Format="hh:nn"}]</span> | <a
href="{CommentUrl}">评论</a>(<span
class=digital>{CommentCount}</span>)
| <a href="{LogUrl}">阅读</a>(<span
class=digital>{ViewCount}</A>)</span></td>
</tr>
</BLOG:LISTENTRY>
<BLOG:LISTSEPARATOR>
<tr valign=top>
<td class=splitRow height=30>--------------------</td>
</tr>
</BLOG:LISTSEPARATOR>
<BLOG:LISTFOOTER>
</TBODY>
</table>
<table class="" cellspacing=0 cellpadding=0
width="100%" border=0>
<tbody>
<tr>
<td>{PageNav}</td>
</tr>
</tbody>
</table>
</BLOG:LISTFOOTER>
<BLOG:DETAILHEADER>
查看日志内容。。。<a
href="{BlogUrl}">返回{BlogTitle}</a>, <a
href="{ClassUrl}">返回{Class}</a>
</BLOG:DETAILHEADER>
<BLOG:DETAILCONTENT>
<table class="" cellspacing=0 cellpadding=0
width="100%" border=0>
<tbody>
<tr valign=top>
<td class=info height=20><span class=infoTitle>{LogTitle}</span> <span
class=digital>[{PublishTime
Format="yyyy-mm-dd"}]</span>
<a
title=返回作者主页 href="{AuthorUrl}">{LogAuthor}</a> 发表在 <a
title=返回这个分类 href="{ClassUrl}">{Class}</a>
<hr align=left width="95%" noshade size=1>
</td>
</tr>
<tr>
<td class=content>{LogContent}</td>
</tr>
</tbody>
</table>
</BLOG:DETAILCONTENT>
<BLOG:DETAILFOOTER></BLOG:DETAILFOOTER>
<BLOG:COMMENTHEADER>
<table class="" cellspacing=0 cellpadding=0
width="100%" border=0>
<tbody>
<tr>
<td class=commentTitle>≡≡≡≡≡ 评论(共 <font
face=Georgia>{Count}</font> 条)
<a href="#comment">我要评论</a></td>
</tr>
</tbody>
</table>
</BLOG:COMMENTHEADER>
<BLOG:COMMENTENTRY>
<table class="" cellspacing=0 cellpadding=0
width="100%" border=0>
<tbody>
<tr valign=top height=30>
<td><span class=commentEntryUser>{CommentAuthor}</span> 在 <span
class=digital>{CommentTime}</span> 发表评论
| {CommentEmail} {CommentUrl} {CommentIp}</td>
</tr>
<tr>
<td class=commentEntryContent>{CommentContent}</td>
</tr>
</tbody>
</table>
</BLOG:COMMENTENTRY>
<BLOG:COMMENTSEPARATOR>
<table class="" cellspacing=0 cellpadding=0
width="100%" border=0>
<tbody>
<tr>
<td class=splitrow height=30></td>
</tr>
</tbody>
</table>
</BLOG:COMMENTSEPARATOR>
<BLOG:COMMENTFOOTER></BLOG:COMMENTFOOTER>
<BLOG:BOTTOM>
<p align=right><a href="#top">返回顶部</a>
</BLOG:BOTTOM>
</BLOG:LOG>
|
在模板编辑器中显示为这样的界面:
|