44 lines
1.1 KiB
HTML
44 lines
1.1 KiB
HTML
{{ define "main" }}
|
|
<main>
|
|
<article>
|
|
<div class="title">
|
|
<h1 class="title">{{ .Title }}</h1>
|
|
<div class="meta">Posted on {{ dateFormat ":date_medium" .Date }}{{ if .Draft }} <span class="draft-label">DRAFT</span> {{ end }}</div>
|
|
</div>
|
|
{{ if isset .Params "tldr" }}
|
|
<div class="tldr">
|
|
<strong>tl;dr:</strong>
|
|
{{ .Params.tldr }}
|
|
</div>{{ end }}
|
|
|
|
{{ if isset .Params "toc" }}
|
|
<div class="toc">
|
|
<strong>Table of contents:</strong>
|
|
{{ .TableOfContents }}
|
|
</div>{{ end }}
|
|
|
|
<section class="body">
|
|
{{ .Content }}
|
|
<a href="https://notbyai.fyi/#not-by-ai-mission" class="no-dec" target="_blank">
|
|
<img class="img-badge" src="/Written-By-Human-Not-By-AI-Badge-white.svg" alt="Written by human, not by Ai" aria-label="Written by human, not by Ai">
|
|
</a>
|
|
</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>
|
|
{{ end }}
|
|
</ul>
|
|
</nav>
|
|
{{ end }}
|
|
{{ end }}
|
|
</div>
|
|
</article>
|
|
</main>
|
|
{{ end }}
|