给blog增加了个tag

首先下载:Tagwire
安装很简单,解压后上传tagwire.pl文件到你MT的plugin目录就行了。
现在登录到MT后台,在plugin中应该可以看到这个插件了,现在我们来修改单篇文章模板使用这个插件。
编辑Individual Entry Archive模板,找到
 

<div id="more" class="entry-more">
<$MTEntryMore$>

 
在下面加上以下代码
 

<p>Tags:  <MTEntryTags>
<a href="http://www.technorati.com/tag/<$MTTag glue="," case_sensitive="1" encode_urlplus="1" $>" rel="TAG" title="TAG:<$MTTag$>"><$MTTag$></a>
</MTEntryTags>
</p>

保存并重建,好了,我们现在可以使用这个插件了。
 
关于Tag的输入格式,多Tag推荐使用逗号隔开
 
ps: 顺便可以在页面上加上,当然是为了方便搜索引擎了:)

<meta name="keywords" content="<$MTEntryKeywords$>" />

Leave a Reply

Your email address will not be published. Required fields are marked *