{{ define "main" }}
<section class="single-page">
  <div class="article__content">
    <header class="article__header">
      <h1 class="article__heading">{{ .Title }}</h1>

      <div class="">
        <a href="">
          <h4 class="author__name">{{ .Params.author }}</h4>
        </a>

        <p class="publish__date">posted on {{ .PublishDate |time.Format ":date_medium" }}</p>
        <div class="article__tags_categories">
          <ul>
            {{ range .Params.categories }}

            <a href="{{site.BaseURL}}{{"categories/"| relLangURL}}{{ . | urlize }}/">
                <li class="article__category">{{.}}</li>
            </a>
            {{ end }}
        </ul>
        <ul>
            {{ range .Params.tags }}

            <a href="{{site.BaseURL}}{{"tags/"| relLangURL}}{{ . | urlize }}/">
            <li class="article__tag">{{.}}</li></a>
            {{ end }}
          </ul>
        </div>
      </div>

        <div class="article__toc mobile_toc">{{ .TableOfContents }}</div>
    </header>
    <article>{{.Content}}</article>
  </div>

  <div class="article__toc desktop_toc">{{ .TableOfContents }}</div>
</section>
{{ end }}
