{{ define "main" }}
<main>
<article>
<div class="title">
<h1 class="title">{{ .Title }}</h1>
{{ if eq .Params.hideDate nil}}
<div class="meta">Posted on {{ dateFormat "Jan 2, 2006" .Date }}{{ if .Draft }} <span class="draft-label">DRAFT</span> {{ end }}</div>
{{ end }}
</div>
{{ if isset .Params "tldr" }}
<div class="tldr">
<strong>tl;dr:</strong>
{{ .Params.tldr }}
</div>{{ end }}
<section class="body">
{{ .Content }}
</section>
<div class="post-tags">
{{ if ne .Type "page" }}
{{ if gt .Params.tags 0 }}
<nav class="nav tags">
<ul class="tags">
{{ range .Params.tags }}
<li><a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">{{ . }}</a></li>
</ul>
</nav>
</article>
<center style="margin-top: 20px;">
{{ if eq .Params.cc nil }}
<a rel="license" class="nolink" href="http://creativecommons.org/licenses/by-nc-sa/4.0/">
<img alt="Creative Commons Lizenzvertrag" style="border-width:0" src="https://i.creativecommons.org/l/by-nc-sa/4.0/88x31.png" />
</a>
{{ else }}
<a rel="license" class="nolink" href="http://creativecommons.org/licenses/{{ .Params.cc }}/4.0/">
<img alt="Creative Commons Lizenzvertrag" style="border-width:0" src="https://i.creativecommons.org/l/{{ .Params.cc }}/4.0/88x31.png" />
</center>
</main>