Category Archives: MovableType
给mt增加了随机文章MTRandomEntries插件
<a href="<$MTEntryLink$>"><$MTEntryTitle$></a>:<br />
<$MTEntryExcerpt$><br />
</MTRandomEntries>
Googlify your Movable Type Blog
So how do you do it? Easy. You can just make use of the template that Niall Kennedy created, which uses the power of Movable Type’s publishing engine to automatically generate the code for the button.
<custombuttons xmlns="http://toolbar.google.com/custombuttons/">
<button>
<title><$MTBlogName remove_html="1" encode_xml="1"$></title>
<description><$MTBlogDescription remove_html="1" encode_xml="1"$></description>
<site><$MTBlogURL$></site>
<search><$MTCGIPath$><$MTSearchScript$>?search={query}&IncludeBlogs=<$MTBlogID$></search>
<send><$MTCGIPath$><$MTSearchScript$>?search={selection}&IncludeBlogs=<$MTBlogID$></send>
<feed refresh-interval="3600"><$MTBlogURL$>atom.xml</feed>
<icon mode="base64" type="image/x-icon">AAABAAEAEBAAAAAAAABoBQAAFgAAACgAAAAQAAAAIAAAAAEACAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAD///8A//f3APf39wD39+8A9+/vAO/v5wDv5+cA5+feAN7e1gDe3s4A3tbOAN7WxgDW1sYA
1s7GAM7GvQDOxrUAxr2tAMa9pQDGtaUAvbWlAL21nAC1rZQAtaWMAK2ljACllHsApZRzAJyMawCU
hGMAlHtaAIx7WgCMe1IAjHNSAIRzUgCEc0oAhGtKAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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AAFCRAcHR0dHR0UDQQAAAAQGiIiHR0dHRoIDQ4IAAAQIh0dIR0dHR0JDSIiGgUE
HR0dHR0dHR0dBBoiHSIQDSIdHR0dHR0dHQUXIh0dDRAhHR0dHR0dHR0VABodFQAaIh0dHR0dHR0d
HRUHAAkaHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=</icon>
</button>
</custombuttons>
Save the template, rebuild it (if necessary), and your new button code should be all set. By default, your output should look something like this. Then, your last step is to make a simple link to your new file. That should look like:
The results will give you a link that says Add to Google Toolbar. So what are you waiting for? Click the button! Then you’ll have a new toolbar button updating you on the latest Movable Type news, along with a new search function that lets you have direct access to the Movable Type knowledge base and help documentation. Then be sure to post your own button link on your blog.
Still not appeased the Googlebot enough? Be sure to check out Niall’s Sitemap instructions, which let you simply and easily make a Google Sitemap XML file, which lets you instruct Google’s spiders on how to crawl your site, while letting you as the site owner have access to more statistics and information about your site.
If you want to make your site as reader-friendly (and Google-friendly) as possible, it’s easy to start with Movable Type today and you’ll be button-making, sitemapping and blogging in no time.
关于在mt中显示最新评论的完整代码
<h2>最近收到的评注</h2><ul>
<MTComments lastn="12" sort_order="descend">
<MTCommentEntry>
<li><a href="<$MTEntryPermalink$>#comment-<$MTCommentID$>">
Re:
<$MTEntryTitle$>
</a>
</MTCommentEntry>
, by
<$MTCommentAuthor$>
(
<$MTCommentDate format="%b %d"$>
)
</li>
</MTComments>
</ul>
<p class="entry-footer">
</p>
<div>
<h2 class="module-header">Recent Comments</h2>
<ul class="module-list">
<MTComments lastn="24" sort_order="descend">
<MTCommentEntry>
<li class="module-list-item">
<a href="<$MTEntryPermalink$>#more">
<$MTCommentBody$></a></li>
</MTCommentEntry>
</MTComments>
</ul>
</div>
关于在mt中显示最新评论的
<p><$MTCommentAuthor$> said:<br />
<$MTCommentBody$></p>
</MTComments>
<h2 class="module-header">Recent Comments</h2>
<MTEntries lastn="***">
<MTComments lastn="10" sort_order="descend">
<div id="c<$MTCommentID$>">
<ul class="module-list">
<li class="module-list-item">
<a href="<$MTEntryPermalink$>#more">
<$MTCommentBody$></a>
</div>
</MTComments></MTEntries>
</MTEntryIfCommentsActive>
</li>
</ul>
</div>
Who is Melody Nelson?
Who is Melody Nelson, and why is her name used as Movable Type’s default author?
The name comes from Serge Gainsbourg, a French singer-songwriter whose most influential work was a concept album titled Histoire de Melody Nelson (and based on the infamous novel Lolita).