按照无觅官方movable Type安装说明, 在后台的Design->Templates,Archive Templates列表中点击名为Entry的模板文件, 在<$mt:EntryBody$>后面添加无觅的部分代码即可。但是这样会导致在显示含有Extended的文章(即包含EntryMore)的时候,无觅的插件会显示在BODY和EXTENDED中间,而不是全文的最后。
所以无觅的movable Type标准安装说明应该修改为:
4. 在编辑域中找到<$mt:EntryBody$>,并在其后添加如下代码:
<mt:If tag="EntryMore">
<mt:Else>
<div class="wumii-hook">
<input type="hidden" name="wurl" value="<$mt:EntryPermalink$>" />
<input type="hidden" name="wtitle" value="<$mt:EntryTitle encode_html="1"$>" />
</div>
<span style="display: none;">
<mt:EntryTags><a rel="tag"><$mt:TagName$></a></mt:EntryTags>
</span>
<script>
var wumiiSitePrefix = "<$mt:BlogURL$>";
</script>
</mt:If>
5.在编辑域中找到<$mt:EntryMore$>,并在其后添加如下代码:
<div class="wumii-hook">
<input type="hidden" name="wurl" value="<$mt:EntryPermalink$>" />
<input type="hidden" name="wtitle" value="<$mt:EntryTitle encode_html="1"$>" />
</div>
<span style="display: none;">
<mt:EntryTags><a rel="tag"><$mt:TagName$></a></mt:EntryTags>
</span>
<script>
var wumiiSitePrefix = "<$mt:BlogURL$>";
</script>
6.继续在此文件中找到</body> .. 下略


Leave a comment