2020-04-22 12:14:28 +02:00
|
|
|
{{ define "main" }}
|
2020-04-08 20:44:29 +02:00
|
|
|
<main>
|
2020-04-22 12:14:28 +02:00
|
|
|
<article>
|
2020-04-08 20:44:29 +02:00
|
|
|
<div class="title">
|
|
|
|
<h1 class="title">{{ .Title }}</h1>
|
2024-08-05 20:10:42 +02:00
|
|
|
<div class="meta">Posted on {{ dateFormat ":date_medium" .Date }}{{ if .Draft }} <span class="draft-label">DRAFT</span> {{ end }}</div>
|
2020-04-08 20:44:29 +02:00
|
|
|
</div>
|
2020-04-22 12:14:28 +02:00
|
|
|
{{ if isset .Params "tldr" }}
|
|
|
|
<div class="tldr">
|
|
|
|
<strong>tl;dr:</strong>
|
|
|
|
{{ .Params.tldr }}
|
|
|
|
</div>{{ end }}
|
2020-04-08 20:44:29 +02:00
|
|
|
|
2024-08-05 20:09:55 +02:00
|
|
|
{{ if isset .Params "toc" }}
|
|
|
|
<div class="toc">
|
|
|
|
<strong>Table of contents:</strong>
|
|
|
|
{{ .TableOfContents }}
|
|
|
|
</div>{{ end }}
|
|
|
|
|
2020-04-08 20:44:29 +02:00
|
|
|
<section class="body">
|
|
|
|
{{ .Content }}
|
2024-08-25 11:30:44 +02:00
|
|
|
<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>
|
2020-04-08 20:44:29 +02:00
|
|
|
</section>
|
|
|
|
|
2024-08-25 11:30:44 +02:00
|
|
|
{{ partial "chat.html" }}
|
|
|
|
|
2020-04-08 20:44:29 +02:00
|
|
|
<div class="post-tags">
|
|
|
|
{{ if ne .Type "page" }}
|
2020-04-22 12:14:28 +02:00
|
|
|
{{ 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 }}
|
2020-04-08 20:44:29 +02:00
|
|
|
{{ end }}
|
|
|
|
</div>
|
2020-04-22 12:14:28 +02:00
|
|
|
</article>
|
|
|
|
</main>
|
|
|
|
{{ end }}
|