How to add Blog Excerpt but this part is not seen on the Main Post


#1

How do you add a blog excerpt or summary (words only no picture) but it only appears on the homepage, when you actually click Read More or the link, the excerpt should not appear anymore. How do you do this? Please help me. It kinda resembles the Wordpress feature where you have a blog description but that doesn’t appear on the actual post


#2

My friend @shivansh was working on this feature. Wait I will inform him.


#3

Here is the script

Replace <data:post.body/> with these below code(It did not require javascript)

<data:post.body/> may appear in your template 2 to three time(replace second and third)

Before doing anything backup your template

<b:if cond='data:blog.pageType != "item"'>
<b:if cond='data:blog.pageType != "static_page"'>
<div>
<data:post.snippet/>
</div>
<div class='jump-link'>
<a expr:href='data:post.url' expr:title='data:post.title'><data:post.jumpText/></a>
</div>
<b:else/>
<data:post.body/>
</b:if>
<b:else/>
<data:post.body/>
</b:if>

Happy Coding


#4

it doesnt work :frowning: i somehow have a customized template


#5

try it in blogger default template first.
If you have customise template just edit your JavaScript by that you can get what you want


#6

can you help me edit it my friend?? i tried editing it but it only ruins the blog’s summary


#7

Would you still need help for this problem? I can help :slight_smile: