Blog Widget
Blogger (blogspot) Blog
widget template data collection. This post uses the Blogger 2nd generation template for a reference (Contempo, Soho, Emporio, Notable, Essential).
Introduction
Blog
widget is gadget that displays the blog posts or pages content, including inline post ads, and post comments. The posts data always in the the form of a list.
When viewed in a single item view (post, page), the list contains only a single post data. Whereas when viewed in a multiple items view (homepage, search, archive), the list may contain multiple items.
Markups
<b:widget id='Blog1' locked='false' title='Blog Posts' type='Blog' version='2' visible='true'>
<b:includable id='main' var='this'>
<b:loop values='data:posts' var='post'>
<data:post.title/>
<data:post.body/>
<!-- other post data -->
</b:loop>
</b:includable>
</b:widget>
Post Data
Here's a list of known post data in the widget:
data:posts[]
title
body
url
date
labels[]
url
name
Other Widget Data
It seems that the blog navigation data only available in the Blog
widget. I've used this for a long time but is yet to be confirmed.
data:newerPageUrl
data:olderPageUrl
Auto-Generated Includables
Here's a list of ID for the auto-generated includable elements in the widget:
commentPicker
postMetadataJSON
Open comments page