CMS Post Content Variables

CMS Post Content variables are used in BlogAnnouncement, and content Page templates, and in their respective archive and RSS feed templates.

Variable Usage
title Displays the content title. Use unescape if you plan to use HTML in your post titles.
<h1>{{ post.title | unescape }}</h1>
author_name Displays the author's name.
{{ post.author_name }}
featured_image Display the post's featured image. Change the width to match your desired look.
<img src="{{ featured_image.thumbnail(1000, 'auto')|default('http://placehold.it/1000x365') }}" width="1000" alt="{{ featured_image.alt }}"/>
permalink Returns the post's permanent link as a URL. Useful for linking to post pages and setting the canonical URL for posts. Requires a page template to exist, see "Creating CMS Theme Templates​" for info on creating CMS pages.
<a href="{{ post.permalink }}">{{ post.title | unescape }}</a>
categories Returns all categories belonging to the current post.
{% for category in post.categories %} 
  {{ category.name }} 
  {{ category.slug }} 
  {{ category.description }} 
{% endfor %}
published_on Displays the post's published date. Use the date formatting helper to display the date in your preferred format.
{{ post.published_on | date("F j, Y") }}
type Display the post type, one of Blog, Announcement, or Page.
{{ post.type }
excerpt Display the post's excerpt. An excerpt (summary of the post) is often used in listings and as a lead paragraph on a post's page. You will need to use unescape to display HTML in your excerpts.
{{ post.excerpt | unescape }}
body Display the body of the post. You will need to use unescape to display HTML in your excerpts.
{{ post.body | unescape }}
expanded_body Display the body of the post with parsed shortcodes. You will need to use unescape to display HTML in your excerpts.
{{ post.expanded_body }}
getSocialLinks() Get all social links attached to the current author. Returns links with class="social-links"
{% for link in post.user.getSocialProfiles() %}
  {{ link.name }}
  {{ link.link }}
{% endfor %}
getSocialLink(<link>) Get a link to a user's social network. Reference the social network's "Name" that you've set in your user settings under /backend/system/user. Looks for the author of the current post.
<a href="{{ post.user.getSocialLink("Facebook") }}">My Facebook Link</a>
profile_image Display the profile image for the current post's author.
<img src="{{ profile_image.thumbnail(100, 'auto') | default('http://placehold.it/100x100') }}" />
cmsContent(<type>) Renders all CMS content objects of a specified type. See "Creating CMS Theme Templates" for more detail.
{% for content in cmsContent('blog')|extended_sort('published_on', false) %}
{{ content.title }}
{% endfor %}
seo_<type> Includes post SEO metadata, from the post/page sidebar.
{{ post.seo_title }}
{{ post.seo_description }}
{{ post.seo_keywords }}