2021-07-18 10:34:01 +02:00
|
|
|
{{ define "main" }}
|
2022-11-08 11:07:48 +01:00
|
|
|
<div class="container mx-auto">
|
|
|
|
<h1 class="text-4xl font-extrabold mt-6 mb-6">{{ .Title }}</h1>
|
2022-11-08 16:10:57 +01:00
|
|
|
<div class="mb-3 text-sm flex justify-between ">
|
2022-11-07 09:57:21 +01:00
|
|
|
<div>
|
|
|
|
{{ if .Site.Params.displayDate }}
|
2022-11-08 16:10:57 +01:00
|
|
|
{{ T "post.at" }} — {{ .Date | time.Format (T "timeformat") }}
|
2022-11-07 09:57:21 +01:00
|
|
|
{{ end }}
|
|
|
|
{{ if .Draft }}
|
2022-11-08 11:07:48 +01:00
|
|
|
<span class="ml-3 tag">
|
2022-11-07 09:57:21 +01:00
|
|
|
DRAFT
|
|
|
|
</span>
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
{{ if .Params.tags }}
|
2022-11-08 11:07:48 +01:00
|
|
|
<div>
|
2022-11-07 09:57:21 +01:00
|
|
|
{{ range .Params.tags }}
|
2022-11-08 11:07:48 +01:00
|
|
|
<a class="ml-1" href="/tags/{{ . }}">#{{ . }}</a>
|
2022-11-07 09:57:21 +01:00
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
<main>
|
|
|
|
<p>{{ .Description | markdownify | safeHTML }}</p>
|
|
|
|
<article class="md">
|
|
|
|
{{ .Content }}
|
|
|
|
</article>
|
|
|
|
</main>
|
|
|
|
{{ if or .Params.math .Site.Params.math }}
|
|
|
|
{{ partial "math.html" . }}
|
|
|
|
{{ end }}
|
2021-07-19 08:36:50 +02:00
|
|
|
|
2022-11-07 09:57:21 +01:00
|
|
|
{{ if or .Params.mermaid .Site.Params.mermaid }}
|
|
|
|
{{ partial "mermaid.html" . }}
|
|
|
|
{{ end }}
|
2021-08-19 06:42:47 +02:00
|
|
|
|
2022-11-07 09:57:21 +01:00
|
|
|
{{ if or .Params.comment (and .Site.Params.commentOnAllPosts (ne .Params.comment false)) }}
|
2022-11-08 18:19:04 +01:00
|
|
|
|
2022-11-07 09:57:21 +01:00
|
|
|
{{ if eq .Site.Params.comment "disqus"}}
|
|
|
|
{{ partial "disqus.html" . }}
|
|
|
|
{{ end }}
|
2021-07-19 08:36:50 +02:00
|
|
|
|
2022-11-07 09:57:21 +01:00
|
|
|
{{ if eq .Site.Params.comment "utterances"}}
|
|
|
|
{{ partial "utterances.html" . }}
|
|
|
|
{{ end }}
|
2022-11-08 18:19:04 +01:00
|
|
|
|
|
|
|
{{ if eq .Site.Params.comment "giscus" }}
|
|
|
|
{{ partial "giscus.html" }}
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ if eq .Site.Params.comment "ovo"}}
|
|
|
|
{{ partial "ovo.html" . }}
|
|
|
|
{{ end }}
|
|
|
|
|
2022-11-07 09:57:21 +01:00
|
|
|
{{ end }}
|
|
|
|
</div>
|
2021-08-04 03:49:55 +02:00
|
|
|
{{ end }}
|