Using if cond to Related Post Script

as posted before for creating related post and how to lil customize it, some blogger says that how to not in home page or in front blog :

you can follow this step :

if you have use this step before --> http://blog-unity.blogspot.com/2013/09/simple-way-to-make-related-post.html 

copy the script

remove your widget that contained the script 

go to EDIT HTML :

than

place before tag </body> :

<b:if cond='data:blog.pageType == &quot;item&quot;'>
paste the copied script here
</b:if>

than related post will be only show in detail post.
Related Posts Plugin for WordPress, Blogger...