quinta-feira, 23 de agosto de 2012

Leaving the homepage of your blog posts with summary


The procedure for you to put thumbnails on the homepage of your blog with a summary of each post is pretty simple, you enter the edit html page, select the option to expand Widget Templates and search for post.body (use ctrl F to search ), must be this way in his blog: <data:post.body />

So delete that line and put it in place:

    <b:if cond='data:blog.pageType == &quot;item&quot;'>
    <data:post.body/>
    <b:else/>
    <b:if cond='data:blog.pageType == &quot;static_page&quot;'>
    <data:post.body/>
    <b:else/>
    <b:if cond='data:post.hasJumpLink'>
    <data:post.body/>
    <b:else/>
    <b:if cond='data:post.snippet'>
    <b:if cond='data:post.thumbnailUrl'>
    <div class='Image thumb'>
    <img expr:src='data:post.thumbnailUrl'/>
    </div>
    </b:if>
    <data:post.snippet/>
    <div class='jump-link'>
    <a expr:href='data:post.url + &quot;#more&quot;' expr:title='data:post.title'><data:post.jumpText/></a>
    </div>
    <b:else/>
    <data:post.body/>
    </b:if>
    </b:if>
    </b:if>
    </b:if>


Be careful not to show the same thing twice in your blog! See if after this stretch has the code:

    <b:if cond='data:post.hasJumpLink'>
    <div class='jump-link'>
    <a expr:href='data:post.url + &quot;#more&quot;' expr:title='data:post.title'><data:post.jumpText/></a>
    </div>
    </b:if>



If you find clear, as this will cause the link to read the full post appear twice as the image below, but if you remove that code will not have problems.

And is ready, now just view your blog and see that the home page or pages of bookmarks appear blog an excerpt from his text and a thumbnail of the images.

Nenhum comentário:

Postar um comentário