{{ define "main" }}
  {{ $currentPageUrl := .RelPermalink }}

  <article class="cf ph4 pv3 pv5-ns">
      <!-- header spans the full width -->
    <header class="flex-none w-100 pb3">
      {{ if .Params.categories }}
        {{ range .Params.categories }}
          <a href="{{ "/categories/" | relLangURL }}{{ . | urlize }}" class="f6 fw8 mb0 link mid-gray dim mr3">
            {{ humanize  . | upper }}
          </a>
        {{ end }}
      {{end}}

      <h1 class="lh-title fw9 mb7 mv0 pt3">
        <a hr