<!-- Featured Post -->
{{ $data := .siteData }}
{{ range .firstpost }}
{{ if .Params.pinned }}
<section class="posts">
    <article>
        <header>
            <h2><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
        </header>
        {{ if .Params.image }}
        <a href="{{ .Permalink }}" class="image main"><img src="{{ .Params.image | relURL }}" alt="" /></a>
        {{ end }}
    </article>
</section>
{{ else if not .Params.pinned }}
<article class="post featured">
    <header class="major">
        <h2><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
        {{ if .Description }}
        <p class="featured-description">{{ .Description }}</p>
        {{ else }}
        <p class="featured-description">{{ .Summary }}</p>
        {{ end }}
    </header>
    {{ if .Params.image }}
    <a href="{{ .Permalink }}" class="image main featured-image"><img src="{{ .Params.image | relURL }}" alt="" /></a>
    {{ end }}
</article>
{{ end }}
{{ end }}
