虽然blogger升级到了draft,但文章的快速编辑链接 依然是指向旧版的地址.
要想修正此链接,只有在Layout > Edit HTML 中勾选Expand Widget Templates,再进行编辑.
在模板中找到以下片段:
<b:includable id='postQuickEdit' var='post'>
<b:if cond='data:post.editUrl'>
<a expr:href='data:post.editUrl' expr:title='data:top.editPostMsg'>
<img alt='' class='icon-action' height='18' src='http://www.blogger.com/img/icon18_edit_allbkg.gif' width='18'/>
</a>
</span>
</b:if>
</b:includable>
将其中的
<a expr:href='data:post.editUrl' expr:title='data:top.editPostMsg'>
替换为
<span expr:class='"item-control " + data:post.adminClass'>
<a expr:href='"http://draft.blogger.com/post-edit.g?blogID=你的BlogID&postID=" + data:post.id' expr:title='data:top.editPostMsg'>
enjoy it!
转载声明: 出自: Ghoul To World!作者: GreatGhoul