2021-07-18 10:34:01 +02:00
|
|
|
{{ define "main" }}
|
2021-09-09 09:56:22 +02:00
|
|
|
{{ if .Params.toc }}
|
|
|
|
{{ partial "toc.html" . }}
|
|
|
|
{{ end }}
|
2021-12-02 06:52:55 +01:00
|
|
|
<h1 class="mt-6 mb-6">{{ .Title }}</h1>
|
2021-09-09 09:56:22 +02:00
|
|
|
<div class="mb-3 text-xs flex justify-between sm:flex-col">
|
|
|
|
<div>
|
2021-10-29 10:58:33 +02:00
|
|
|
{{ if .Site.Params.displayDate }}
|
2021-08-19 06:42:47 +02:00
|
|
|
Posted at — {{ dateFormat .Site.Params.timeformat .Date }}
|
2021-10-29 10:58:33 +02:00
|
|
|
{{ end }}
|
2021-07-18 10:34:01 +02:00
|
|
|
{{ if .Draft }}
|
2021-09-09 09:56:22 +02:00
|
|
|
<span class="ml-3 tag">
|
2021-07-18 10:34:01 +02:00
|
|
|
DRAFT
|
|
|
|
</span>
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
2021-09-09 09:56:22 +02:00
|
|
|
{{ if .Params.tags }}
|
|
|
|
<div class="sm:mt-4">
|
|
|
|
{{ range .Params.tags }}
|
|
|
|
<a class="not-first:ml-3" href="/tags/{{ . }}">#{{ . }}</a>
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
2021-08-29 17:55:45 +02:00
|
|
|
{{ end }}
|
2021-09-09 09:56:22 +02:00
|
|
|
</div>
|
|
|
|
<main>
|
|
|
|
<p>{{ .Description | markdownify | safeHTML }}</p>
|
2021-07-18 10:34:01 +02:00
|
|
|
<article class="md">
|
|
|
|
{{ .Content }}
|
|
|
|
</article>
|
|
|
|
</main>
|
2021-08-04 03:49:55 +02:00
|
|
|
{{ if or .Params.math .Site.Params.math }}
|
|
|
|
{{ partial "math.html" . }}
|
|
|
|
{{ end }}
|
2021-07-19 08:36:50 +02:00
|
|
|
|
2021-08-19 06:42:47 +02:00
|
|
|
{{ if or .Params.mermaid .Site.Params.mermaid }}
|
|
|
|
{{ partial "mermaid.html" . }}
|
|
|
|
{{ end }}
|
|
|
|
|
2021-11-28 18:19:59 +01:00
|
|
|
{{ if or .Params.comment (and .Site.Params.commentOnAllPosts (ne .Params.comment false)) }}
|
2021-11-28 18:04:53 +01:00
|
|
|
{{ if eq .Site.Params.comment "disqus"}}
|
|
|
|
{{ partial "disqus.html" . }}
|
|
|
|
{{ end }}
|
2021-07-19 08:36:50 +02:00
|
|
|
|
2021-11-28 18:04:53 +01:00
|
|
|
{{ if eq .Site.Params.comment "ovo"}}
|
|
|
|
{{ partial "ovo.html" . }}
|
|
|
|
{{ end }}
|
2021-07-18 10:34:01 +02:00
|
|
|
|
2021-11-28 18:04:53 +01:00
|
|
|
{{ if eq .Site.Params.comment "utterances"}}
|
|
|
|
{{ partial "utterances.html" . }}
|
|
|
|
{{ end }}
|
2021-11-12 08:47:28 +01:00
|
|
|
{{ end }}
|
2021-08-04 03:49:55 +02:00
|
|
|
{{ end }}
|