{{ define "main" }}
    <!-- Begin actual content -->
    <article>
      <div class="row justify-content-center">
        <div class="col-md-12">
          {{if .Title}}
            <h1>{{ .Title }}</h1>
          {{else}}
            {{ $title := path.Base .File.BaseFileName }}
            <h1>{{ $title }}</h1>
          {{end}}
          <p class="meta">
              {{ i18n "last_updated" }} {{ partial "date-fmt.html" .}}
              {{ partial "github.html" . }}
          </p>
          <ul class="tags">
              {{ range (.GetTerms "tags") }}
                <li><a href="{{ .Permalink }}">
                        {{if (eq $.Site.Language.Lang "en")}}
                            {{ .LinkTitle | humanize }}
                        {{else}}
                            {{ .LinkTitle }}
                        {{end}}
                  </a>
                </li>
              {{ end }}
          </ul>
            {{partial "toc.html" .}}
            {{partial "textprocessing.html" . }}
            {{partial "footer.html" .}}
        </div>
      </div>
    </article>
{{end}}
