在\themes\landscape\layout_partial\article.ejs添加如下代码
<span class="vbscript"><% <span class="keyword">if</span> (!index && post.comments){ %></span>
<span class="tag"><<span class="title">section</span> <span class="attribute">id</span>=<span class="value">"comments"</span>></span>
<span class="comment"><!-- Duoshuo Comment BEGIN --></span>
<span class="tag"><<span class="title">div</span> <span class="attribute">class</span>=<span class="value">"ds-thread"</span>></span><span class="tag"></<span class="title">div</span>></span>
<span class="tag"><<span class="title">script</span> <span class="attribute">type</span>=<span class="value">"text/javascript"</span>></span><span class="javascript">
<span class="keyword">var</span> duoshuoQuery = {short_name:<span class="string">"your_shortname"</span>};
(<span class="function"><span class="keyword">function</span><span class="params">()</span> </span>{
<span class="keyword">var</span> ds = <span class="built_in">document</span>.createElement(<span class="string">'script'</span>);
ds.type = <span class="string">'text/javascript'</span>;ds.async = <span class="literal">true</span>;
ds.src = <span class="string">'http://static.duoshuo.com/embed.js'</span>;
ds.charset = <span class="string">'UTF-8'</span>;
(<span class="built_in">document</span>.getElementsByTagName(<span class="string">'head'</span>)[<span class="number">0</span>]
|| <span class="built_in">document</span>.getElementsByTagName(<span class="string">'body'</span>)[<span class="number">0</span>]).appendChild(ds);
})();
</span><span class="tag"></<span class="title">script</span>></span>
<span class="comment"><!-- Duoshuo Comment END --></span>
<span class="tag"></<span class="title">section</span>></span>
<span class="vbscript"><% } %></span>