Skip to content

Instantly share code, notes, and snippets.

@timgit
Last active August 29, 2015 14:06
Show Gist options
  • Save timgit/0c754b56b24cd7bc1c65 to your computer and use it in GitHub Desktop.
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
<!--
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='&quot;post-body-&quot; + 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