如何增加博客程序片段中的字符长度,而不是使用有限的长度,'data:post.snippet'? [英] How to increase character lengh in blogger snippet instead of using limited length, 'data:post.snippet'?
问题描述
我目前正在为blogger手机程式码片段使用「data:post.snippet」。
I'm currently using 'data:post.snippet' for blogger mobile snippet.
<div class='post-body' style='color:black;'>
<b:if cond='data:post.snippet'><data:post.snippet/></b:if>
</div>
但是其字符长度(140)太低,标题和段落。当有一个标题在开始线断裂是必要的。
But its character length(140) is too low, and it doesn't give a line break between the headings and paragraphs. When there's a heading at the very start line break is necessary. Can someone please suggest me a javascript code to replace above code to overcome those two issues.
推荐答案
更改
<div class='post-body' style='color:black;'>
<b:if cond='data:post.snippet'><data:post.snippet/></b:if>
</div>
至
<div class='post-body' style='color:black;'>
<data:post.body/>
</div>
它会使你的文章正文带有正确的HTML标记,直到任何跳跃(如果存在)或其他完整的帖子正文。
It will render your post body with proper HTML markup till any jump break (if exists) or otherwise the full post body.
考虑为所有帖子包括跳跃休息,您可以通过丰富的帖子编辑器或直接在帖子HTML中使用代码<! - more - > $
Consider including jump breaks for all your posts, you can do it through the rich post editor or directly in the post HTML using the code <!--more-->
in the exact place where you want the break.
Javascript方法不是强制要求检索帖子内容,Blogger本身就是这样做的。
Javascript approaches are not mandatory to retreive post contents, Blogger natively do it.
这篇关于如何增加博客程序片段中的字符长度,而不是使用有限的长度,'data:post.snippet'?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!