| Name | Description |
|---|---|
| {PageTitle} | Page title to be used in your <title> tag on your page. e.g. joe's posterous - Article name here' |
| {Title} | Name for your site e.g. joe's site |
| {Description} | Subheading / description for the site e.g. 'A place for my thoughts and ideas', if set |
| {Favicon} | URL to default Posterous 16x16px favicon: |
| {RSS} | URL to the RSS feed for posts, e.g. http://yoursite.posterous.com/rss |
| {PosterousBar} | Deprecated. |
| {PosterousURL} | URL to Posterous homepage (http://posterous.com) |
| {SiteURL} | URL to your Posterous homepage, e.g http://yoursite.posterous.com |
| {BlogURL} | URL to your Posterous blog, e.g http://yoursite.posterous.com/blog |
| {CurrentURL} | URL for the current page a reader would be on, no matter what page they might be looking at, e.g. post list page, post page, tag page or search page -- e.g. http://yoursite.posterous.com/tag/my-tag |
| {PortraitURL} | URL for profile image of the site owner. Can also specify PortraitURL-35 or PortraitURL-75 to get those respective sizes. |
| {Profile} | Text of site owner's user profile |
| {ProfileLink} | URL to site owner's user profile |
| {ProfileExternalLinks} | Returns HTML of linked images of each autopost service the site owner has set up, linked to their respective autopost sites |
| {OwnerName} | The name of the site owner, e.g. 'Garry Tan' |
| {Tag} | Current tag that the site viewer is seeing, e.g. 'My Tag' |
| {GlobalTagURL} | URL to link to the Posterous Global Tag search for the current tag |
| {SiteViews} | Number of times a site has been viewed |
| {CurrentPage} | Current page number, e.g. 1 |
| {TotalPages} | Total number of pages, e.g. 10 |
| {SearchQuery} | Text of a user's search query, e.g. 'hammocks' |
| {SearchSort} | Type of search sort, e.g. 'bestmatch' |
| {PageType} | Returns 'list', 'show', 'tag', 'search', or 'page', depending on which type of page you are currently viewing. This is best used for styling particular HTML elements depending on what type of page is being viewed. |
| {PageTitleCssEscaped} | Identical to PageTitle, except the string is represented as an escaped UTF-8 hex string |
| {TitleCssEscaped} | Identical to Title, except the string is represented as an escaped UTF-8 hex string |
This allows for customization of the posterous bar. You can use this to cause the bar to fly out left or right, and/or make the default state clear vs. opaque.
If omitted, we just put a default clear, left-flyout posterous bar in the top right corner of the page.
{block:PosterousBar direction="right" translucent="false"}{/block:PosterousBar}
| Name | Description |
|---|---|
| direction | (optional) May be 'left' or 'right' -- defaults to right. |
| translucent | (optional) May be 'true' or 'false', defaults to 'true' |
Elements that you can reference in this block also include Global Elements
A Posts block wraps the entire area for a post. On a Post Listing page (e.g. http://yourblog.posterous.com/), this will loop over every post on a given page.
For examples and more information, please take a look at our Intro by Example to see how a {block:Posts}{/block:Posts} works.
{block:Posts}...{/block:Posts}
These are all elements that you can use in any {block:Posts/}. They can also be used in any {block:ShowSidebar/} or {block:Show/} blocks as well.
Note that that these elements apply to everything inside the block and all child blocks that are contained within it as well.
| Name | Description |
|---|---|
| {Title} | Title of the post |
| {Body} | Body of the post (full text / HTML) |
| {PostID} | Unique identifier for the post (e.g. 719390) |
| {PostViews} | Number of views the post has received thus far, not including the user's own views. |
| {FavoriteCount} | Number of times the post has been favorited |
| {TagsAsClasses} | If the post has tags, then it will return all of the tags of that post as items you can use in classes. This is useful if you want to theme a post based on the type of tag it has. We will replace all spaces in tags with underscore (_) characters. e.g. Tag 1, Tag 2, Tag 3 translate to the text: 'Tag_1 Tag_2 Tag_3' |
| {Permalink} | This is the URL link to your post. e.g. http://yourblog.posterous.com/article-name |
| {ShortPermalink} | This is the post.ly URL short link to your post. e.g. http://post.ly/... |
| {ResponseCount} | Shows number of responses for this post. |
| {ResponseCountPluralized} | Returns an s if there is more than one response on the post. Useful for pluralization, e.g. 0 responses, 1 response, 2 responses |
| {PostAuthorPortraitURL} | This is the URL to a portrait for the author of this post. You can also specify PostAuthorPortraitURL-35 or PostAuthorPortraitURL-75 to get the two sizes of portraits we support. You can use PostAuthorPortraitURL-XX where XX is any number, but we'll just choose the most appropriate size available. |
| {DayOfMonth} | Based on the display date of the post. e.g. '1' to '31' |
| {DayOfMonthWithZero} | Based on the display date of the post. e.g. '01' to '31' |
| {DayOfMonthSuffix} | Based on the display date of the post. Ordinalized suffix for DayOfMonth, e.g. 'st', 'nd', 'th', 'rd' |
| {DayOfWeek} | Based on the display date of the post. e.g. 'Monday' to 'Sunday' |
| {ShortDayOfWeek} | Based on the display date of the post. e.g. 'Mon' to 'Sun' |
| {DayOfWeekNumber} | Based on the display date of the post. e.g. '0' to '6' |
| {DayOfYear} | Based on the display date of the post. e.g. '1' to '366' |
| {WeekOfYear} | Based on the display date of the post. e.g. '1' to '53' |
| {Month} | Based on the display date of the post. e.g. 'January' to 'December' |
| {ShortMonth} | Based on the display date of the post. e.g. 'Jan' to 'Dec' |
| {MonthNumber} | Based on the display date of the post. e.g. '1' to '12' |
| {MonthNumberWithZero} | Based on the display date of the post. e.g. '01' to '12' |
| {Year} | Based on the display date of the post. e.g. '2009' |
| {ShortYear} | Based on the display date of the post. e.g. '09' |
| {AmPm} | Based on the display date of the post. e.g. 'am', 'pm' |
| {CapitalAmPm} | Based on the display date of the post. e.g. 'AM', 'PM' |
| {12Hour} | Based on the display date of the post. e.g. '1' to '12' |
| {24Hour} | Based on the display date of the post. e.g. '0' to '23' |
| {12HourWithZero} | Based on the display date of the post. e.g. '01' to '12' |
| {24HourWithZero} | Based on the display date of the post. e.g. '00' to '23' |
| {Minutes} | Based on the display date of the post. e.g. '00' to '59' |
| {Seconds} | Based on the display date of the post. e.g. '00' to '59' |
| {Timestamp} | Based on the display date of the post. Shown in Unix Epoch time (number of seconds since 1970) e.g. '1244609779' |
| {TimeAgo} | Based on the display date of the post. e.g. '10 minutes ago' or '3 hours ago' or '2 months ago' |
| {NoteCount} | Shows number of comments for this post. (tumblr compatibility only -- posterous themes should use block:Comments instead) |
| {NoteCountWithLabel} | Number of comments with a label, e.g. "24 comments" (tumblr compatibility only -- posterous themes should use block:Comments instead) |
| {EventMap} | A Google Map for Events About page. There must a location associated with the site and there must be a page with the title "About" in order to display the map. |
Elements that you can reference in this block also include Global Elements
This block is no longer supported and will be ignored.
{block:Flash}...{/block:Flash}
| Name | Description |
|---|---|
| {Flash} | Deprecated |
Elements that you can reference in this block also include Global Elements
This block will show one set of code if a site has a header image set, and will show a different block of code (after the {Else}) if a header image is not set.
If this block is omitted, users of the theme will not be shown options to set a header image when that theme is selected.
{block:HeaderImage}
<a href="{SiteURL}" style="border: none;">
<img src="{HeaderImageURL}" alt="{Title} - {Description}"/>
</a>
{Else}
<div class="header">
<h1><a href="{SiteURL}">{Title}</a></h1>
</div>
<div class="subhead">
{Description}
</div>
{/block:HeaderImage}
| Name | Description |
|---|---|
| {HeaderImageURL} | URL for the image to show. If you'd like a scaled version of this image, you can also ask for HeaderImageURL-500, or HeaderImageURL-1000 to get images scaled to those maximum dimensions (500x500 and 1000x1000). You can use {HeaderImageURL} on its own if you want to be able to use images of any size, based on whatever the user has given. |
| {Else} | Else clause. All things after this will be shown only if there is no header image for this site. |
Elements that you can reference in this block also include Global Elements
A list page is the post index page. Contents of this block are only shown on a listing page, e.g. the url http://yoursite.posterous.com/
Note that {block:ListSidebar} is the same as {block:List}.
{block:ListSidebar}...{/block:ListSidebar}
Elements that you can reference in this block also include Global Elements
See {block:ListSidebar}.
{block:List}...{/block:List}
Elements that you can reference in this block also include Global Elements
A Show page is the post page. Contents of this block are only shown on a post page, e.g. the url http://yoursite.posterous.com/your-article
Also see: see {block:Show}.
{block:ShowSidebar}...{/block:ShowSidebar}
Elements that you can reference in this block also include Global Elements
Anything within {block:Show} will be shown on post pages as well as static pages.
If you want something to be shown only on post pages, see {block:ShowSidebar}.
{block:Show}...{/block:Show}
Elements that you can reference in this block also include Global Elements
Included for compatibility with Tumblr themes. Not recommended for Posterous theme use.
{block:Description}{Description}{/block:Description}
Elements that you can reference in this block also include Global Elements
This is an example of the default pagination block:

To theme this default pagination block, customize this CSS:
.pagination {
padding: 3px;
margin: 3px;
}
.pagination a {
padding: 2px 5px 2px 5px;
margin: 2px;
border: 1px solid #ccc;
text-decoration: none;
color: #ccc;
}
.pagination a:hover, .pagination a:active {
border: 1px solid #ca9d00;
color: #ca9d00;
}
.pagination span.current {
padding: 2px 5px 2px 5px;
margin: 2px;
font-weight: bold;
border: 1px solid #ca9d00;
background-color: #ca9d00;
color: #FFF;
}
.pagination span.disabled {
padding: 2px 5px 2px 5px;
margin: 2px;
border: 1px solid #eee;
color: #ddd;
}
{block:Pagination/}
{block:Pagination}
{block:PreviousPage}
<a href="{PreviousPage}">Previous</a>
{/block:PreviousPage}
{CurrentPage} of {TotalPages}
{block:NextPage}
<a href="{NextPage}">Next</a>
{/block:NextPage}
{/block:Pagination}
Elements that you can reference in this block also include Global Elements
This block allows you to refer to to a URL with the next page. It will not appear if there is no previous page, e.g. you are on page 1. It will also only appear on post listing pages.
{block:PreviousPage}
<a href="{PreviousPage}">Previous</a>
{/block:PreviousPage}
| Name | Description |
|---|---|
| {PreviousPage} | URL for the previous page in this series. |
Elements that you can reference in this block also include Global Elements
This block allows you to refer to to a URL with the previous page. It will not appear if there is no next page, e.g. you are on the last page of the post list. It will also only appear on post listing pages.
{block:NextPage}
<a href="{NextPage}">Next</a>
{/block:NextPage}
| Name | Description |
|---|---|
| {NextPage} | URL for the next page in this series. |
Elements that you can reference in this block also include Global Elements
This is an example of a tag block that might appear in a site theme:

This content would be shown only if the user had selected a tag to be viewed. An example URL for this would be http://garry.posterous.com/tag/productdesign.
{block:Tag}
Filed under
<h2 style="margin-top: 0px; color: #111">{Tag}</h2>
<a href="{GlobalTagURL}" style="display: none;" id="see_all_tags">
See all posts on posterous with this tag »
</a>
{/block:Tag}
Elements that you can reference in this block also include Global Elements
This is a wrapper block to be used with {block:TagListing} (see below)
It can be used both at the top-level (shows contents only if the site has at least one tag defined) and in the context of a post (shows contents only if the post has at least one tag).
{block:TagList}...{/block:TagList}
| Name | Description |
|---|---|
| {NumTags} | The total number of tags on a site. Appears only when {block:TagList/} is not a child of {block:Posts} |
Elements that you can reference in this block also include Global Elements
Want to list the tags for a given post or site? This is the block to use!
TagListings are actually quite versatile -- they can be used in two different contexts. One is at the top level, often as a navigational element in {block:ListSidebar}:

They can also be used to display tags for a given post, as a child of {block:Posts} when viewing a post:

The enclosed content in this block is only shown if tags exist for the site or for the post. This block will loop over each tag for a given site or post.
Also, this is a block that actually takes parameters -- you can control how many tags are shown. If the number of items is exceeded, you can also specify interactivity that can allow the site visitor to expand the list to see all of them.
{block:TagList}
<div class="list-tags" style="margin-top: 30px;">
<h5>Tags</h5>
<ul style="margin-top: 0px;">
{block:TagListing collapsible='true' count='10' action_id='seemore_link'}
{block:TagListingMore}
<li><a href="#" id='seemore_link'>View all {NumTags} tags »</a></li>
{/block:TagListingMore}
{block:TagItem}
<li><a href="{TagLink}">{TagName}</a> <span class="instances">({TagCount})</span></li>
{/block:TagItem}
{block:TagItemSelected}
<li><b style="color: #444;">{TagName}</b> <span class="instances">({TagCount})</span></li>
{/block:TagItemSelected}
{/block:TagListing}
</ul>
</div>
{/block:TagList}
This is the markup needed to produce the screenshot above for viewing tags for a whole site.
Note how we pass parameters to the TagListing block -- the action_id references the seemore_link, which is a link inside the TagListingMore block. The theme engine will now register that anchor link as the activator to expand the list of tags, should the number of tags exceed 10.
Also, notice that there is a difference between TagItem and TagItemSelected -- this is how we cause a bold state to occur when the item is selected.
{block:TagList}
<div style="font-size: 11px; line-height: 14px; color: #aaa; margin-top: 20px;">
<b>Filed under</b> //
{block:TagListing}
<a href="{TagLink}" style="color: #666">{TagName}</a>
{/block:TagListing}
</div>
{/block:TagList}
| Name | Description |
|---|---|
| collapsible | Pass true/false. This will determine if the block will add javascript interactivity to enable an expandable view of all tags. Default is true. |
| count | For listing tags for a site, the default is 10. For listing tags for a post, the default is null, denoting no limit. |
| action_id | When collapsible is set to true, you should pass the id of the anchor link that will cause the tag area to expand. |
| Name | Description |
|---|---|
| {TagName} | Text of the tag, e.g. 'Product Design' |
| {TagLink} | URL to this tag, e.g. http://garry.posterous.com/tag/startups |
| {TagCount} | The number of times this tag appears for this post or site, e.g. 4. Only appears when listing tags for the site, and not for viewing tags in a {block:Posts/} |
Elements that you can reference in this block also include Global Elements and {block:TagList/}
Shows contents only if there are additional tags that are collapsed and need to be expanded. Typically this contains a link that says "more" or "view all".

{block:TagListing collapsible='true' count='10' action_id='seemore_link'}
{block:TagListingMore}
<li><a href="#" id='seemore_link'>View all {NumTags} tags »</a></li>
{/block:TagListingMore}
...
{/block:TagListing}
This is shown only if there are more tags to be listed that are currently collapsed, e.g. if 'collapsible' is set to true and 'count' is set to some number that is less than the number of tags that exist for this post or site.
Notice how action_id is set to the anchor link inside this block. This is how you tell the theme engine what to make clickable for an expansion of the collapsed tags.
Elements that you can reference in this block also include Global Elements, {block:TagListing/}, and {block:TagList/}
This block is used to denote a tag item that is not selected. It's an optional block, so if you just want to show a tag item even if it's not selected, just omit this block entirely.

Note also that this only applies to top level blocks when viewing tags for the whole site. It won't work when inside a Posts block.
{block:TagListing}
{block:TagItem}
<li><a href="{TagLink}">{TagName}</a> <span class="instances">({TagCount})</span></li>
{/block:TagItem}
{/block:TagListing}
Shows only if this tag item is NOT currently being viewed by the user.
{block:TagListing}
<li><a href="{TagLink}">{TagName}</a> <span class="instances">({TagCount})</span></li>
{/block:TagListing}
This shows how you can omit the TagItem. This would cause the tag to show up even if the site viewer was viewing that tag.
Elements that you can reference in this block also include Global Elements, {block:TagListing/}, and {block:TagList/}
This is the exact opposite of TagItem -- it shows its contents only when the site viewer is viewing a tag page.

Same rules apply -- it's optional and you can also just omit using TagItem and TagItemSelected inside a TagListing block if you just want the tag to show up all the time.
Note also that this only applies to top level blocks when viewing tags for the whole site. It won't work when inside a Posts block.
{block:TagListing}
{block:TagItemSelected}
<li><b style="color: #444;">{TagName}</b>
<span class="instances">({TagCount})</span></li>
{/block:TagItemSelected}
{/block:TagListing}
Shows only if this tag item is currently being viewed by the user.
Elements that you can reference in this block also include Global Elements, {block:TagListing/}, and {block:TagList/}
If there are contributors other the owner of the site, this block will be shown.
Here's what this block would look like:
{block:Contributors}
<h5>Contributors</h5>
<ul class="contributors">
{block:Contributor collapsible='true' count='5' action_id='seemore_contribs_link'}
{block:ContributorMore}
<li><a href="#" id="seemore_contribs_link">View all {NumContributors} contributors »</a></li>
{/block:ContributorMore}
<li>
<a href="{ContributorProfileLink}">
<img src="{ContributorPortraitURL-20}" />
</a>
<a href="{ContributorProfileLink}">
{ContributorName}
</a>
</li>
{/block:Contributor}
</ul>
{/block:Contributors}
Elements that you can reference in this block also include Global Elements
This will actually loop over each contributor for a site, if it exists.
See {block:Contributors} for a detailed example.
{block:Contributor}...{/block:Contributor}
| Name | Description |
|---|---|
| {ContributorPortraitURL} | URL for the portrait image for this user. Choose between ContributorPortraitURL-35 and ContributorPortraitURL-75 for the two sizes of user profile images. |
| {ContributorName} | Display name of contributor, e.g. Garry Tan |
| {ContributorProfile} | Text of user profile of contributor |
| {ContributorProfileLink} | URL link to profile page of the contributor |
| {NumContributors} | The total number of contributors on a site. |
Elements that you can reference in this block also include Global Elements
Shows contents only if there are additional contributors that are collapsed and need to be expanded. Typically this contains a link that says "more" or "view all contributors".

{block:Contributor collapsible='true' count='5' action_id='seemore_contribs_link'}
{block:ContributorMore}
<li><a href="#" id="seemore_contribs_link">View all {NumContributors} contributors »</a></li>
{/block:ContributorMore}
...
{/block:Contributor}
This is shown only if there are more contributors to be listed that are currently collapsed, e.g. if 'collapsible' is set to true and 'count' is set to some number that is less than the number of contributors that exist for this site.
See {block:Contributors} for a detailed example.
Notice how action_id is set to the anchor link inside this block. This is how you tell the theme engine what to make clickable for an expansion of the collapsed contributors.
Elements that you can reference in this block also include Global Elements and {block:Contributor/}
The contents of this block are only shown
{block:AutopostSites}
<h5>My Other Sites</h5>
{ProfileExternalLinks}
{/block:AutopostSites}
Elements that you can reference in this block also include Global Elements
This will be shown only if the user has entered a search.

SearchPage and Search are synonyms for the same block.
{block:SearchPage}
<h3>
{block:SearchResultOne}
One result found searching for
{/block:SearchResultOne}
{block:SearchResultMany}
{SearchResultCount} results found searching for
{/block:SearchResultMany}
{block:SearchResultNone}
No results found searching for
{/block:SearchResultNone}
</h3>
<form method='get'>
<input type='hidden' name='sort' value="{SearchSort}"/>
<input type='text' name='search' value='{SearchQuery}' id="searchbox"/>
<input type='submit' value='Search' class="searchbox_button" id="searchbox_button"/>
<a href="{CurrentURL}">clear</a>
</form>
<ul>
<li style="margin-left: 0px;">Sort by</li>
<li>
{block:SearchSortBestmatch}
<b>Best match</b>
{Else}
<a href="{CurrentURL}?search={SearchQuery}&sort=bestmatch">Best match</a>
{/block:SearchSortBestmatch}
</li>
<li>
{block:SearchSortRecent}
<b>Most recent</b>
{Else}
<a href="{CurrentURL}?search={SearchQuery}&sort=recent">Most recent</a>
{/block:SearchSortRecent}
</li>
<li>
{block:SearchSortInteresting}
<b>Most interesting</b>
{Else}
<a href="{CurrentURL}?search={SearchQuery}&sort=interesting">
Most interesting
</a>
{/block:SearchSortInteresting}
</li>
</ul>
<br/>
<a href="{PosterousURL}/explore/?search={SearchQuery}">
Search all of posterous for <b>{SearchQuery}</b> »
</a>
{/block:SearchPage}
Shows only if this tag item is currently being viewed by the user.
| Name | Description |
|---|---|
| {SearchQuery} | Text of the user's search query. e.g. 'red herrings' |
| {SearchResultCount} | The number of posts that are returned by the search |
| {SearchSort} | The type of search that was performed, e.g. bestmatch, interesting, recent |
| {Else} | Everything after this tag will show if it is NOT a search page. |
Elements that you can reference in this block also include Global Elements
This is a synonym for the SearchPage block.
Elements that you can reference in this block also include Global Elements
{block:SearchResultMany}...{/block:SearchResultMany}
Elements that you can reference in this block also include Global Elements and {block:SearchPage/}
{block:SearchResultNone}...{/block:SearchResultNone}
Elements that you can reference in this block also include Global Elements and {block:SearchPage/}
{block:SearchResultOne}...{/block:SearchResultOne}
Elements that you can reference in this block also include Global Elements and {block:SearchPage/}
This is shown only if the search sort is set to Best Match
{block:SearchSortBestmatch}...{/block:SearchSortBestmatch}
| Name | Description |
|---|---|
| {Else} | Else can be used in this block to theme the opposite, e.g. when the search sort is not set to best match. |
Elements that you can reference in this block also include Global Elements and {block:SearchPage/}
This is shown only if the search sort is set to Most Interesting
{block:SearchSortInteresting}...{/block:SearchSortInteresting}
| Name | Description |
|---|---|
| {Else} | Else can be used in this block to theme the opposite, e.g. when the search sort is not set to most interesting. |
Elements that you can reference in this block also include Global Elements and {block:SearchPage/}
This is shown only if the search sort is set to Most Recent
{block:SearchSortRecent}...{/block:SearchSortRecent}
| Name | Description |
|---|---|
| {Else} | Else can be used in this block to theme the opposite, e.g. when the search sort is not set to most recent. |
Elements that you can reference in this block also include Global Elements and {block:SearchPage/}
The contents of this block are only shown on a normal list or show page -- and not shown when a site viewer is visiting a search or tag page.
This is useful if there is a feature, like the RSS button or search bar, that might not make sense when on a search or tag page. Posterous doesn't support searching a particular tag, for instance, so that's why we hide that functionality in our default themes.
{block:NotSearchOrTag}...{/block:NotSearchOrTag}
Elements that you can reference in this block also include Global Elements
This block lets you place an area on your Space where the user can click to subscribe or unsubscribe.
The red arrows denote the state changes that would occur after the user clicks on Subscribe or Unsubscribe.

{block:Subscription}{/block:Subscription}
{block:Subscription}
{block:SubscriptionUnsubscribed}
<a href="{SubscribeLink}">Follow this Space »</a>
{/block:SubscriptionUnsubscribed}
{block:SubscriptionSubscribed}
<strong>You're following this Space</strong> (<a href="{UnsubscribeLink}">Edit</a>)
{/block:SubscriptionSubscribed}
{block:SubscriptionContributor}
<strong>You're a contributor here</strong> (<a href="{UnsubscribeLink}">Edit</a>)
{/block:SubscriptionContributor}
{block:SubscriptionAdmin action_id='psubs4_action' content_div='psubs4_content'}
<strong>You own this Space</strong> (<a href="{UnsubscribeLink}" id="psubs4_action">Edit</a>)
{/block:SubscriptionAdmin}
{block:SubscriptionNonUser}
<a href="{SubscribeLink}">Follow by email »</a><br/>
Get the latest updates in your email box automatically.
{/block:SubscriptionNonUser}
{block:SubscriptionLoading}
<img src="/images/loading.gif" alt="Loading...">
{/block:SubscriptionLoading}
{/block:Subscription}
{block:Subscription}
{block:SubscriptionUnsubscribed action_id='psubs1_action' content_div='psubs1_content'}
<div id="psubs1_content">
<a href="{SubscribeLink}" id="psubs1_action">Follow this Space »</a>
</div>
{/block:SubscriptionUnsubscribed}
{block:SubscriptionSubscribed action_id='psubs2_action' content_div='psubs2_content'}
<div id="psubs2_content">
<b>You're following this Space</b> (<a href="{UnsubscribeLink}" id="psubs2_action">Edit</a>)
</div>
{/block:SubscriptionSubscribed}
{block:SubscriptionContributor action_id='psubs3_action' content_div='psubs3_content'}
<div id="psubs3_content">
<b>You're a contributor to this Space</b> (<a href="{UnsubscribeLink}" id="psubs3_action">Edit</a>)
</div>
{/block:SubscriptionContributor}
{block:SubscriptionAdmin action_id='psubs4_action' content_div='psubs4_content'}
<div id="psubs4_content">
<b>You own this Space</b> (<a href="{UnsubscribeLink}" id="psubs4_action">Edit</a>)
</div>
{/block:SubscriptionAdmin}
{block:SubscriptionNonUser action_id='psubs5_action' content_div='psubs5_content'}
<div id="psubs5_content">
<b>Get updates</b> (<a href="{UnsubscribeLink}" id="psubs5_action">Edit</a>)
</div>
{/block:SubscriptionNonUser}
{block:SubscriptionLoading}
<img src="/images/loading.gif" alt="Loading...">
{/block:SubscriptionLoading}
{/block:Subscription}
| Name | Description |
|---|---|
| {SubscribeLink} | URL that you can link to if you want the user to subscribe, best used in {block:SubscriptionUnsubscribed/} and {block:SubscriptionNonUser/} |
| {UnsubscribeLink} | URL that you can link to if you want the user to unsubscribe, best used in {block:SubscriptionSubscribed/}, {block:SubscriptionContributor/} and {block:SubscriptionAdmin/} |
Elements that you can reference in this block also include Global Elements
{block:SubscriptionLoading}...{/block:SubscriptionLoading}
Elements that you can reference in this block also include Global Elements and {block:Subscription/}
The contents of this block are shown only if the site viewer is following and not a contributor or admin.
See {block:Subscription/} for its use in context.
{block:SubscriptionSubscribed}...{/block:SubscriptionSubscribed}
| Name | Description |
|---|---|
| action_id | This indicates the id of an HTML element (preferably an anchor tag) that will be used for interactivity. When the user clicks this element, the user will be unsubscribed. These parameters are deprecated and are not recommended for use by theme designers moving forward. (deprecated) |
| content_div | This denotes the entire area to be hidden once the user clicks the action element. These parameters are deprecated and are not recommended for use by theme designers moving forward. (deprecated) |
Elements that you can reference in this block also include Global Elements and {block:Subscription/}
The contents of this block are shown only if the viewer is not following. The opposite of this block is SubscriptionSubscribed.
See {block:Subscription/} for its use in context.
{block:SubscriptionUnsubscribed}...{/block:SubscriptionUnsubscribed}
| Name | Description |
|---|---|
| action_id | This indicates the id of an HTML element (preferably an anchor tag) that will be used for interactivity. When the user clicks this element, the user will be unsubscribed. These parameters are deprecated and are not recommended for use by theme designers moving forward. (deprecated) |
| content_div | This denotes the entire area to be hidden once the user clicks the action element. These parameters are deprecated and are not recommended for use by theme designers moving forward. (deprecated) |
Elements that you can reference in this block also include Global Elements and {block:Subscription/}
The contents of this block are shown only if the viewer is an admin of this Space.
See {block:Subscription/} for its use in context.
{block:SubscriptionAdmin}...{/block:SubscriptionAdmin}
| Name | Description |
|---|---|
| action_id | This indicates the id of an HTML element (preferably an anchor tag) that will be used for interactivity. When the user clicks this element, the user will be unsubscribed. These parameters are deprecated and are not recommended for use by theme designers moving forward. (deprecated) |
| content_div | This denotes the entire area to be hidden once the user clicks the action element. These parameters are deprecated and are not recommended for use by theme designers moving forward. (deprecated) |
Elements that you can reference in this block also include Global Elements and {block:Subscription/}
The contents of this block are shown only if the viewer is a contributor to this Space./p>
See {block:Subscription/} for its use in context.
{block:SubscriptionContributor}...{/block:SubscriptionContributor}
| Name | Description |
|---|---|
| action_id | This indicates the id of an HTML element (preferably an anchor tag) that will be used for interactivity. When the user clicks this element, the user will be unsubscribed. These parameters are deprecated and are not recommended for use by theme designers moving forward. (deprecated) |
| content_div | This denotes the entire area to be hidden once the user clicks the action element. These parameters are deprecated and are not recommended for use by theme designers moving forward. (deprecated) |
Elements that you can reference in this block also include Global Elements and {block:Subscription/}
The contents of this block are shown only if the viewer is not logged into the Space.
See {block:Subscription/} for its use in context.
{block:SubscriptionNonUser}...{/block:SubscriptionNonUser}
| Name | Description |
|---|---|
| action_id | This indicates the id of an HTML element (preferably an anchor tag) that will be used for interactivity. When the user clicks this element, the user will be unsubscribed. These parameters are deprecated and are not recommended for use by theme designers moving forward. (deprecated) |
| content_div | This denotes the entire area to be hidden once the user clicks the action element. These parameters are deprecated and are not recommended for use by theme designers moving forward. (deprecated) |
Elements that you can reference in this block also include Global Elements and {block:Subscription/}
This is a block that enables interactivity using pre-written javascript that is supported by our theme engine.
When a search box has focus, we like to put a Search button underneath it just so that the user knows that they can click on something to activate a search, in addition to just pressing Enter.
By default, a search box has this state:
However, when this block is enabled, we will show a search box underneath:

{block:NotSearchOrTag}
<form method='get'>
<input type='hidden' name='sort' value="{SearchSort}"/>
<input type='text' name='search' value="{SearchQuery}" id="searchbox"/>
<input type='submit' value='Search' style="display:none;" id="searchbox_button"/>
</form>
{block:SearchBox searchbox_button='searchbox_button' searchbox='searchbox'/}
{/block:NotSearchOrTag}
| Name | Description |
|---|---|
| searchbox_button | The HTML element ID for the search button to be shown when searchbox gets focus. Note that you must also set style='display:none;' on the searchbox to hide it by default. |
| searchbox | The HTML element ID for the input textbox. |
Elements that you can reference in this block also include Global Elements
This is a block that enables interactivity using pre-written javascript that is supported by our theme engine.
This allows you to set a clickable element (action_id) such that when a user clicks on it, a hidden div (hidden_div) is shown.
<div id='my_hidden_div' style="display: none;">
Hello world!
</div>
<a href="#" id="show_hidden_div">Show it</a>
{block:ShowOnClick action_id='show_hidden_div' hidden_div='my_hidden_div'/}
| Name | Description |
|---|---|
| action_id | This specifies the id for an HTML element. When you click on this HTML element, usually an anchor tag (<a href>), the hidden div specified will be shown. |
| hidden_div | This specifies the id for an HTML element (usually a div) that is hidden. You should set style='display: none;' on this hidden div in your theme. Do not set display:none in the CSS definition for the theme because then the click action won't be able to set that div to visible. |
| to_hide_id | (optional) You can also set an id that will be hidden when the user clicks on something. |
Elements that you can reference in this block also include Global Elements
This is a block that enables interactivity using pre-written javascript that is supported by our theme engine.
This allows you to set an element (action_id) such that when a user moves their mouse over it, a hidden div (hidden_div) is shown.
<div id="hover_div">
This should show Hello world when I move my mouse over this div:
<span id='my_hidden_span' style="display: none;">
Hello world!
</span>
</div>
{block:ShowOnHover action_id='hover_div' hidden_div='my_hidden_span'/}
| Name | Description |
|---|---|
| action_id | This specifies the id for an HTML element. When you move your mouse over this HTML element, (often either a div or an anchor tag), the hidden div specified will be shown. |
| hidden_div | This specifies the id for an HTML element (usually a div or span) that is hidden. You should set style='display: none;' on this hidden div in your theme. Do not set display:none in the CSS definition for the theme because then the click action won't be able to set that div to visible. |
Elements that you can reference in this block also include Global Elements
This is used for theme compatibility with Tumblr. We recommend that you use {block:List} or {block:Sidebar} instead for Posterous native themes.
{block:IndexPage}
...
{block:NoteCount}<a href="{Permalink}">{NoteCountWithLabel}</a>{/block:NoteCount}
{/block:IndexPage}
Elements that you can reference in this block also include Global Elements
This block is generally used if you want to define a UI element for navigating through pages. You should typically include a {block:Pages} within {block:HasPages} for automated page navigation.
You can add pages to your site from your manage page.
{block:HasPages}
<h2>My list of pages</h2>
...
{/block:HasPages}
{block:HasPages}
<ul id="page_navigation">
{block:Pages}
<li><a href="{URL}">{Label}</a></li>
{/block:Pages}
</ul>
{/block:HasPages}
Elements that you can reference in this block also include Global Elements
Use this block to define navigation for your pages. Within this block, you can reference {URL}, {Label}, and {Current}. These tags will allow you to define rich page navigation for your users.
You can add pages to your Space from your manage page.
<ul id="page_navigation">
{block:Pages}
<li><a href="{URL}" class="{Current}">{Label}</a></li>
{/block:Pages}
</ul>
| Name | Description |
|---|---|
| {URL} | This is the URL link to your page. e.g. http://yourblog.posterous.com/pages/page-name |
| {Label} | This is the title of your page. e.g. "About Us" |
| {Current} | Outputs the word "current" if this page is also the current page being viewed. This is good for styling your page navigation. |
| {External} | Outputs the word "external" if this page is an external link. This is good for styling your page navigation. |
| {Home} | Outputs the word "home" if this page is also your site's homepage. |
Elements that you can reference in this block also include Global Elements
This block is generally used if you want to define a UI element for navigating through links. You should typically include a {block:LinkCategories} within {block:HasLinks} for automated link navigation.
You can add links to your site from your manage page.
{block:HasLinks}
<h2>My list of links</h2>
...
{/block:HasLinks}
{block:HasLinks}
{block:LinkCategories}
<h1>{Label}</h1>
<ul id="link_navigation">
{block:Links}
<li><a href="{URL}">{Label}</a></li>
{/block:Links}
</ul>
{/block:LinkCategories}
{/block:HasLinks}
Elements that you can reference in this block also include Global Elements
Use this block to define navigation for your links. Within this block, you can reference {URL}, and {Label}. These tags will allow you to define rich link navigation for your users.
You can add links to your Space from your manage page.
Note: {block:Links} must live within {block:LinkCategories} or else nothing will be rendered.
<ul id="link_navigation">
{block:Links}
<li><a href="{URL}">{Label}</a></li>
{/block:Links}
</ul>
| Name | Description |
|---|---|
| {URL} | This is the URL for your link. e.g. http://www.myfriendsblog.com |
| {Label} | This is the label of your link. e.g. "My friend's blog'" |
Elements that you can reference in this block also include Global Elements
Anything within {block:ShowOrList} will be shown on post pages as well as list pages, but not on static pages.
{block:ShowOrList}...{/block:ShowOrList}
| Name | Description |
|---|---|
| {Else} | Else clause. All things after this will be shown on static pages, but not post or list pages. |
Elements that you can reference in this block also include Global Elements
Anything within {block:Page} will be shown on static pages only.
{block:Page}...{/block:Page}
| Name | Description |
|---|---|
| {Else} | Else clause. All things after this will be shown on non-static pages (i.e. show or list pages) |
Elements that you can reference in this block also include Global Elements
Anything within {block:Homepage} will be shown on homepage of a site only. This is what appears at the top level of the URL, e.g. http://yoursite.posterous.com. This block will return on a post list page by default, but if you reset the homepage to a page it will return for that page instead.
{block:Homepage}...{/block:Homepage}
| Name | Description |
|---|---|
| {Else} | Else clause. All things after this will be shown on non-homepage pages. |
Elements that you can reference in this block also include Global Elements
Use this block to loop through all of the link categories you have defined. Within each link category, you can use {block:Links} to render the links in that category.
You can add links to your site from your manage page.
{block:LinkCategories}
<h1>{Label}</h1>
<ul class="links">
{block:Links}
<li><a href="{URL}">{Label}</a></li>
{/block:Links}
</ul>
{/block:LinkCategories}
| Name | Description |
|---|---|
| {Label} | This is the label of your link category. e.g. "Resources" |
| {ID} | This is the ID of your link category. e.g. "325" |
Elements that you can reference in this block also include Global Elements
Use this block to define navigation for your archive. Within this block, you can reference {ArchiveMonth}, {ArchiveLink}, and {ArchiveCount}. This block must live within {block:ArchiveYear}
{block:ArchiveYear}
<div class="year"><a href="#" id="{ArchiveYearId}">{ArchiveDateYear} </a><span class="instances">({ArchiveYearCount})</span></div>
<div id="{ArchiveMonthsId}" style="display:none;">
<div>
{block:Archive}
<div class="inner"><a href="{ArchiveLink}">{ArchiveMonth} </a> <span class="instances">({ArchiveCount})</span></div>
{/block:Archive}
</div>
</div>
{/block:ArchiveYear}
| Name | Description |
|---|---|
| {ArchiveMonth} | Archive month |
| {ArchiveCount} | Archive month public post counts |
| {ArchiveLink} | Undocumented. |
Elements that you can reference in this block also include Global Elements
This block is generally used if you want to define a UI element for navigating through archives. You should include a {block:ArchiveYear} or {block:ArchiveMonth} within {block:HasArchives} for automated archive navigation.
{block:HasArchives}
<section id="archives">
<h1>Archive</h1>
{block:ArchiveYear}
<div class="year"><a href="#" id="{ArchiveYearId}">{ArchiveDateYear}</a> <span class="instances">({ArchiveYearCount})</span></div>
<div id="{ArchiveMonthsId}" style="display:none;">
<div>
{block:Archive}
<div class="inner"><a href="{ArchiveLink}">{ArchiveMonth}</a> <span class="instances">({ArchiveCount})</span></div>
{/block:Archive}
</div>
</div>
{/block:ArchiveYear}
</section>
{/block:HasArchives}
Elements that you can reference in this block also include Global Elements
Use this block to define navigation for your archive. Within this block, you can reference {ArchiveDateYear} and {ArchiveYearCount}. {block:Archive} lives within this block.
{block:ArchiveYear}
<div class="year"><a href="#" id="{ArchiveYearId}">{ArchiveDateYear} </a><span class="instances">({ArchiveYearCount})</span></div>
<div id="{ArchiveMonthsId}" style="display:none;">
<div>
{block:Archive}
<div class="inner"><a href="{ArchiveLink}">{ArchiveMonth} </a> <span class="instances">({ArchiveCount})</span></div>
{/block:Archive}
</div>
</div>
{/block:ArchiveYear}
| Name | Description |
|---|---|
| {ArchiveDateYear} | Archive Year |
| {ArchiveYearCount} | Archive year post counts |
| {ArchiveYearId} | Element Id for Archive Year |
| {ArchiveMonthsId} | Element Id for Archive Months |
Elements that you can reference in this block also include Global Elements
Use this block to define navigation for your archive. Within this block, you can reference {ArchiveDate}, {ArchiveMonthCount}, and {ArchiveMonthLink}.
<ul>
{block:ArchiveMonth}
<li><a href="{ArchiveMonthLink}">{ArchiveDate} </a> <span class="instances">({ArchiveMonthCount})</span></li>
{/block:ArchiveMonth}
</ul>
| Name | Description |
|---|---|
| {ArchiveDate} | Archive Date |
| {ArchiveMonthCount} | Archive year public post counts |
| {ArchiveMonthLink} | Undocumented. |
Elements that you can reference in this block also include Global Elements
This content would be shown only if the user is viewing an archive.
{block:ArchiveList}
Archive for
<h2 style="margin-top: 0px; color: #111">{ArchiveDate}</h2>
{/block:ArchiveList}
| Name | Description |
|---|---|
| {ArchiveDate} | Archive Date |
Elements that you can reference in this block also include Global Elements
This block is used if you want Adsense on your site.
{block:HasAdsense}
{block:Widget adsense_size='vertical_banner'}{/block:Widget}
{/block:HasAdsense}
Elements that you can reference in this block also include Global Elements
This allows for positioning and customization of the Posterous Bar. You can use this to put the Posterous Bar wherever you like.
If omitted, the Posterous Bar will appear in the upper right hand corner of your screen.
{block:PosterousHeader /}
Elements that you can reference in this block also include Global Elements
This can be used to show additional info about the author of the post. It is shown only if the site has multiple contributors.
{block:Author}
<div class="posted_by">
{block:AuthorUser}
Posted by
<a href="{AuthorURL}">
{AuthorName}
<img src="{AuthorPortraitURL-35}" width='12' height='12'/>
</a>
{/block:AuthorUser}
{block:AuthorEmail}
Posted by email
{/block:AuthorEmail}
</div>
{/block:Author}
| Name | Description |
|---|---|
| {AuthorURL} | URL to the author of the post |
| {AuthorName} | The name of the author of the post |
| {AuthorPortraitURL} | URL to the image of the author of the post. Can specify {AuthorPortraitURL-35} or {Author-PortraitURL-75} to get the two sizes we support. |
| {Else} | Else clause. All things after this will be shown only if there is only one author. |
Elements that you can reference in this block also include Global Elements and {block:Posts/}
See {block:Author/} for more info and examples.
Elements that you can reference in this block also include Global Elements, {block:Author/}, and {block:Posts/}
See {block:Author/} for more info and examples.
Elements that you can reference in this block also include Global Elements, {block:Author/}, and {block:Posts/}
If the title is blank or set to Untitled, we won't show this block. It's recommended you wrap any title with this, and make sure your theme can handle posts with no title gracefully. Usually the fix would either be to create a permalink somewhere on the page to go to the post page, or link the date.
{block:Title}
<h2 class="posttitle" id="posttitle_{PostID}"><a href="{Permalink}">{Title}</a></h2>
{/block:Title}
Elements that you can reference in this block also include Global Elements and {block:Posts/}
Included for Tumblr theme compatibility. Equivalent to the post title. Not recommended for regular Posterous theme use.
{block:PostSummary}...{/block:PostSummary}
| Name | Description |
|---|---|
| {PostSummary} | Title of post, if viewing a post. Hidden for list pages. |
Elements that you can reference in this block also include Global Elements and {block:Posts/}
Included for Tumblr theme compatibility. Not recommended for regular Posterous theme use.
{block:Text}...{/block:Text}
Elements that you can reference in this block also include Global Elements and {block:Posts/}
Included for Tumblr theme compatibility. Not recommended for regular Posterous theme use.
{block:Regular}...{/block:Regular}
Elements that you can reference in this block also include Global Elements and {block:Posts/}
This response block enables the ability to show responses (comments and likes). If responses are disabled, all the contents of this block will not be shown.
You can further customize how responses look by using the ResponsesList and ResponsesShow blocks, but that's optional.
The class p_owner is included in comments made by the owner of the site, and can be used to style these comments differently than the rest.
{block:Posts}
...
{block:Responses/}
{/block:Posts}
{block:Posts}
...
{block:ResponsesList}
{ResponseWidget}
{/block:ResponsesList}
{block:ResponsesShow}
{ResponseWidget}
{Responses}
{ResponseForm}
{/block:ResponsesShow}
{/block:Posts}
| Name | Description |
|---|---|
| {ResponseCount} | Shows number of responses for this post. |
| {ResponseCountPluralized} | Returns an s if there is more than one response on the post. Useful for pluralization, e.g. 0 responses, 1 response, 2 responses |
| {Responses} | HTML for listing of responses. Used in {block:ResponsesShow} most often since it lists all of the responses inline. |
| {ResponseWidget} | HTML for the responses widget. |
| {ResponseForm} | HTML for the new comment form. |
Elements that you can reference in this block also include Global Elements and {block:Posts/}
Shown for responses on a list page.
See {block:Responses} for more information.
Elements that you can reference in this block also include Global Elements, {block:Responses/}, and {block:Posts/}
Shown for responses on a post page.
See {block:Responses} for more information.
Elements that you can reference in this block also include Global Elements, {block:Responses/}, and {block:Posts/}
This is used for theme compatibility with Tumblr. We recommend that you use {block:Comments} instead for Posterous native themes.
{block:Posts}
...
{block:NoteCount}<a href="{Permalink}">{NoteCountWithLabel}</a>{/block:NoteCount}
{/block:Posts}
| Name | Description |
|---|---|
| {NoteCount} | Shows number of comments for this post. (tumblr compatibility only -- posterous themes should use block:Comments instead) |
| {NoteCountWithLabel} | Number of comments with a label, e.g. "24 comments" (tumblr compatibility only -- posterous themes should use block:Comments instead) |
Elements that you can reference in this block also include Global Elements and {block:Posts/}
This is used for theme compatibility with Tumblr. We recommend that you use {block:Comments} and {block:CommentsShow} instead for Posterous native themes.
Shown only on post pages when comments are enabled by the user.
{block:Posts}
...
{block:PostNotes}{PostNotes}{/block:PostNotes}
{/block:Posts}
| Name | Description |
|---|---|
| {PostNotes} | Shows default HTML for comments and the UI for adding more comments. |
Elements that you can reference in this block also include Global Elements and {block:Posts/}
Included for Tumblr theme compatibility. Not recommended for regular Posterous theme use.
{block:NewDayDate}...{/block:NewDayDate}
Elements that you can reference in this block also include Global Elements and {block:Posts/}
Included for Tumblr theme compatibility. Not recommended for regular Posterous theme use.
{block:SameDayDate}...{/block:SameDayDate}
Elements that you can reference in this block also include Global Elements and {block:Posts/}
Private posts are shown to the owners of the site when logged in.
This allows a theme to show a notice to the user that a particular post is private.
The default behavior uses the special class 'tooltip_link' to control a hover tooltip, as shown below.
When collapsed, it will look like this:
When a mouse is on top of the lock icon, it will get replaced with an explanation, like so:
{block:Posts}
...
{block:Private/}
{/block:Posts}
{block:Posts}
...
{block:Private}
<a href="{Permalink}" class="tooltip_link">
<img src="/images/icons/lock12.png" width='12' height='12' alt='Private'/>
<span style="top: 0px; right: 0px; width: 100px; font-size: 11px;">
<b>Private Post</b><br/>
This post has a secret URL and not linked on your public site.
Send the secret URL to share it with anyone.
</span>
</a>
{/block:Private}
{/block:Posts}
| Name | Description |
|---|---|
| {Else} | Else clause. All things after this will be shown only if the post is public. |
Elements that you can reference in this block also include Global Elements and {block:Posts/}
Shows text only if post is sent via SMS.
{block:SMS}...{/block:SMS}
Elements that you can reference in this block also include Global Elements and {block:Posts/}
This is a block that outputs a list of links of administrative actions (edit, delete, tag and autopost) that may be performed on a particular post.
This block specifically enables the 'editbox' which is shown here:
This is only shown to owners of the site while they are logged in.
We recommend placing this admin box at the top of a post and showing it only on mouse hover over a particular post, as shown in the CSS in the first example.
<head>
<style type="text/css">
div.postunit { position: relative; }
div.post { padding-top: 24px; }
div.editbox { visibility: hidden; height: 16px; position: absolute; top: 0px; }
div.postunit:hover div.editbox { visibility: visible; }
...
</style>
</head>
...
{block:Posts}
<div class="postunit">
{block:EditBox/}
<div class="post">
...
</div>
</div>
{/block:Posts}
...
{block:EditBox}{EditBoxContents}{/block:EditBox}
...
| Name | Description |
|---|---|
| {EditBoxContents} | HTML for the contents of the edit box. |
Elements that you can reference in this block also include Global Elements and {block:Posts/}
When a post is very long, you can create a page break by adding "#more" to your emails, or by adding a page break character in the web editor. This will result in a "read more" link appearing on your post list page. {block:More} allows you to customize the contents of this "read more" link.
Typically, you should add {block:More} immediately following the {Body} tag.
{Body}{block:More /}
{Body}
{block:More}
<p><a href="{Permalink}">Here is a custom read more link</a></p>
{/block:More}
Elements that you can reference in this block also include Global Elements and {block:Posts/}
This is a block that enables interactivity using pre-written javascript that is supported by our theme engine.
This block specifically enables favoriting by users which is shown here:
This is only shown to logged in users of the site.
These buttons are shown to the upper right of the post (defined by position_id) when the user's mouse is moved over the post (hover_id).
{block:Posts}
<div id="postunit_{PostID}"
...
<div id="post_{PostID}">
...
</div>
</div>
{block:Favorite hover_id='postunit_{PostID}' position_id='post_{PostID}'/}
{/block:Posts}
| Name | Description |
|---|---|
| hover_id | The ID for the HTML element that will trigger the visibility of the editbox. |
| position_id | The ID of the HTML element that will be used for positioning. The favorite box will appear to the top right of the HTML element specified by position_id. |
Elements that you can reference in this block also include Global Elements and {block:Posts/}
If there are fans other the owner of the site, this block will be shown.
Here's what this block would look like:
{block:Fans}
<h5>Fans</h5>
<ul class="fans">
{block:Fan}
<li>
<a href="{FanProfileLink}" rel="nofollow">
<img src="{FanPortraitURL-20}" width="20" height="20"/>
</a>
<a href="{FanProfileLink}" rel="nofollow">
{FanName}
</a>
</li>
{/block:Fan}
</ul>
{/block:Fans}
| Name | Description |
|---|---|
| {Else} | Else clause -- so anything after this will show only for the case where there are no fans yet. |
Elements that you can reference in this block also include Global Elements and {block:Posts/}
This will actually loop over each fan, if it exists.
See {block:Fans} for a detailed example.
{block:Fan}...{/block:Fan}
| Name | Description |
|---|---|
| {FanPortraitURL} | URL for the portrait image for this fan. Choose between FanPortraitURL-35 and FanPortraitURL-75 for the two sizes of user profile images. |
| {FanName} | Display name of fan, e.g. Garry Tan |
| {FanProfile} | Text of user profile of fan |
| {FanProfileLink} | URL link to profile page of the fan |
Elements that you can reference in this block also include Global Elements and {block:Posts/}
If the post has geolocation data associated with it this block will be shown. These locations are extracted out of photos that are uploaded with geo info in the EXIF headers.
{block:PostLocations}
<div id="location_collapsed_{PostID}">
Posted from <a href="#" id="post_location_expander_{PostID}">{LocationsSummary}</a>
</div>
<div id="post_location_expanded_{PostID}" style="display:none">
<div class="map"
style="float: left; width: 300px; height: 150px; margin-right: 10px;">
{MapIframe}
</div>
<b>Posted from</b><br/>
{block:PostLocation uniq_by='summary'}
{LocationSummary}<br/>
{/block:PostLocation}
<br style="clear: both;" />
</div>
{block:ShowOnClick
action_id='post_location_expander_{PostID}'
hidden_div='post_location_expanded_{PostID}'
to_hide_id='location_collapsed_{PostID}'/}
{/block:PostLocations}
And this is what it would look like after the user clicks on the location name:

| Name | Description |
|---|---|
| {MapIframe} | An <iframe> containing a map with all the locations plotted. The height and width are set to 100% to fill the parent element. |
| {LocationsSummary} | City where the photo was taken, e.g. "San Francisco", or X locations, e.g. "3 locations" if there are X number of cities where the post may have been posted from. |
Elements that you can reference in this block also include Global Elements and {block:Posts/}
Contents get shown once for each geolocation associated with post.
{block:PostLocation uniq_by='city'}
{City}<br/>
{/block:PostLocation}
| Name | Description |
|---|---|
| uniq_by | Locations will be filtered for uniqueness on the given field. Allowed values are: lat, lng, lat_and_lng, street_address, city, state, country, full_address, summary. |
| Name | Description |
|---|---|
| {Latitude} | Latitude of location |
| {Longitude} | Longitude of location |
| {FullAddress} | Closest full address to the location |
| {StreetAddress} | Street address of the location, if available |
| {City} | City of the location, if available |
| {State} | State of the location, if available |
| {Country} | Country of the location, if available |
| {LocationSummary} | Summary of location - generally in the form City, State or City, Country |
Elements that you can reference in this block also include Global Elements, {block:Posts/}, {block:PostLocations/}, and {block:Posts/}
Use this instead of {Body} if you want to show excerpts of posts. On post pages (aka Show pages) -- it will always show the full text of the post.
This tag is experimental and will be changing.
{block:BodyExcerpt /}
{block:BodyExcerpt excerpt_size='200' strip_tags='true'/}
{block:List}
{block:PostImage size='100' dimension='width'}
<img src="{PostImageURL}" width='100' height='100'
style="border: 1px solid #eee; float: left; margin-right: 10px; ">
{Else}
<img src="/images/spacer.gif" width='100' height='100'
style="border: 1px solid #eee; float: left; margin-right: 10px;">
{/block:PostImage}
{block:BodyExcerpt strip_tags="true"}
{BodyExcerpt}
{block:BodyExcerptReadMore}
<p class="readmore">
<a href="{Permalink}#more">Read the rest of this post ยป</a>
</p>
{/block:BodyExcerptReadMore}
{/block:BodyExcerpt}
{/block:List}
{block:Show}
{Body}
{/block:Show}

| Name | Description |
|---|---|
| excerpt_size | Number of text characters to show in the excerpt if no <!--more--> tag is in the post. Setting a number here will override the user default. Default: 200, or whatever the user set on their site. |
| strip_tags | Should the excerpt strip all non-HTML tags? Default: false |
| Name | Description |
|---|---|
| {BodyExcerpt} | Excerpt |
Elements that you can reference in this block also include Global Elements and {block:Posts/}
Use this with {block:BodyExcerpt}
{block:BodyExcerptReadMore}...{/block:BodyExcerptReadMore}
Elements that you can reference in this block also include Global Elements and {block:Posts/}
This is useful in conjunction with BodyExcerpt block so that you can show a summary image next to a summary of the post.
{block:PostImage size='100' dimension='width'}
<img src="{PostImageURL}" width='100' height='100'>
{Else}
<img src="/images/spacer.gif" width='100' height='100'>
{/block:PostImage}
| Name | Description |
|---|---|
| size | Pass an integer representing the desired size over the dimension specified. Sizes that work well are 36, 100, 500, and 1000. Default is 100. |
| dimension | May be 'width' or 'height' -- defaults to width. |
| Name | Description |
|---|---|
| {PostImageURL} | Image URL to the post image size requested (if available) |
| {Else} | Anything after this inside the block will be shown if no post image is available |
Elements that you can reference in this block also include Global Elements and {block:Posts/}
Super easy way to create Twitter's official Tweet button for your posts. Learn more about the Tweet button here.
We support the following attributes on the Tweet button: count (can be "horizontal", "vertial", or "none"), via (can be any Twitter username), and lang (can be "es", "ja", and any other language Twitter supports).
{block:Tweet /}
{block:Tweet count="vertical" lang="es" /}
Elements that you can reference in this block also include Global Elements and {block:Posts/}
Use this tag to create an fb:like button. You can customize this button using the attribtues Facebook provides.
{block:FbLike /}
{block:FbLike layout="standard" showfaces="true" /}
Elements that you can reference in this block also include Global Elements and {block:Posts/}
If you need to add some markup that is only shown if the user has enabled sharing, use this tag.
{block:Sharing}
<div class="sharing">
{block:Tweet/}
</div>
{/block:Sharing}
| Name | Description |
|---|---|
| {Else} | Else clause. All things after this will be shown only if sharing is disabled. |
Elements that you can reference in this block also include Global Elements and {block:Posts/}
{block:ViaMobile}
<span>Posted from my iPhone</span>
{/block:ViaMobile}
Elements that you can reference in this block also include Global Elements and {block:Posts/}
Also, get help from both the creators of Posterous and the Posterous developer community by joining Posterous Developers.
Tumblr is a trademark of Tumblr Inc. Posterous is not affiliated with or endorsed by Tumblr, Inc.