Tham khảo đoạn code HTML lấy thumb cho blogspot bên dưới, bao gồm cả thumb tự động của video youtube và không có hình ảnh
Đoạn code HTML như sau
<article class=’popular-post post’>
<b:class expr:name=’"item-"+data:i’ />
<b:if cond=’data:post.featuredImage’>
<b:if cond=’data:post.featuredImage.isYouTube’>
<a class=’entry-image-wrap is-video’ expr:href=’data:post.url.canonical’ expr:title=’data:post.title’>
<span class=’entry-thumb’ expr:data-image=’data:post.featuredImage.youtubeMaxResDefaultUrl’ />
</a>
<b:else />
<a class=’entry-image-wrap is-image’ expr:href=’data:post.url.canonical’ expr:title=’data:post.title’>
<span class=’entry-thumb’ expr:data-image=’resizeImage(data:post.featuredImage, 72, "1:1")’ />
</a>
</b:if>
<b:else />
<a class=’entry-image-wrap is-image’ expr:href=’data:post.url.canonical’ expr:title=’data:post.title’>
<span class=’entry-thumb’ data-image=’https://4.bp.blogspot.com/-eALXtf-Ljts/WrQYAbzcPUI/AAAAAAAABjY/vptx-N2H46oFbiCqbSe2JgVSlHhyl0MwQCK4BGAYYCw/s72-c/nth-ify.png’ />
</a>
</b:if>
<div class=’entry-header’>
<h2 class=’entry-title’><a expr:href=’data:post.url.canonical’>
<data:post.title />
</a></h2>
</div>
</article>