Last active
August 29, 2015 14:06
-
-
Save timgit/0c754b56b24cd7bc1c65 to your computer and use it in GitHub Desktop.
Because you really only need the body of your blog post on the post page itself
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
Yep, I use blogger for my blog :) | |
All the examples I found online used CSS, which still renders all the content and slows down the page loading | |
Making this change will allow you to increase the number of posts on the page without a huge page size | |
--> | |
<div class='post-body entry-content' expr:id='"post-body-" + data:post.id' itemprop='articleBody'> | |
<b:if cond='data:blog.url != data:post.url'> | |
<data:post.snippet /> <!-- only show snippets if not on the post page, or just delete this element to skip it entirely --> | |
<b:else/> | |
<data:post.body/> | |
<div style='clear: both;'/> <!-- clear for photos floats --> | |
</b:if> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment