<header class="content-title">
  <h1>{{ .Title | markdownify }}</h1>
  {{ with .Description -}}
    <p class="subtitle">{{ . }}</p>
  {{- end }}

  {{ with .Date -}} 
    <time>{{ . | time.Format "January 2, 2006" }}</time>
  {{- end }}

  {{- if .Params.series -}}
    {{- $series := .GetTerms "series" -}}

    {{- if gt (len $series) 1 -}}
      {{- errorf "More than one series for %s" .Permalink -}}
    {{- end -}}

    {{- with index $series 0 -}}
      <span class="series">
        <a href="{{ .Permalink }}">{{ .Title }}</a>
      </span>
    {{- end -}}
  {{- end -}}

  {{ partial "development/draft_tag.html" . }}
</header>
