Page Layouts

Often we need seperate layouts for seperate pages. This can be accomplished using the $page variable along with an if statement.

PieCMS provides many variables for your use. To show a seperate layout for a specific page, wrap the markup in an if statement:

{if $page eq 'home'}
<section class="hero">
    <h1>Big Hero 6</h1>
</section>
{/if}