{{ define "main" }}
<h2>{{ .Title }}</h2>
<div class="post-subscript">
    <p>
        {{ range .Params.tags }}
        <a class="button" href="{{ $.Site.BaseURL }}/tags/{{ . | urlize }}">{{ . }}</a>
        {{ end }}
    </p>
    <p>Posted on {{ .Date.Format "January 2, 2006" }}.</p>
</div>

<div class="post-content">
    {{ if not (eq .TableOfContents "<nav id=\"TableOfContents\"></nav>") }}
    <div class="table-of-contents">
        <div class="wrapper">
            <em>Table of Contents</em>
            {{ .TableOfContents }}
        </div>
    </div>
    {{ end }}
    {{ .Content }}
</div>
{{ end }}
