You may have noticed that the previous post has some text
For the nitty-gritty details, do like it says and click to see the rest.
that appears on the front page but NOT on the post's "item" page (where it wouldn't make sense).
This is a simple little addition I made to the template modification for expandable posts.
--------------------------------------------
In the template, just before the </head>
tag, Vin's guide says to put the code<style>
<b:if cond='data:blog.pageType == "item"'>
span.fullpost {display:inline;}
<b:else/>
span.fullpost {display:none;}
</b:if>
</style>
I just added a couple lines:<style>
<b:if cond='data:blog.pageType == "item"'>
span.fullpost {display:inline;}
span.toppost {display:none;}
<b:else/>
span.fullpost {display:none;}
span.toppost {display:inline;}
</b:if>
</style>
Now, any part of a post that I put between <span class="toppost">
and </span>
will appear only on the front page, not on the post's "item" page, which is handy for little summaries that don't make sense when the full post is displayed.
Tuesday, June 3, 2008
Blogger trick #2
Labels:
blogger,
summarized
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment