2021-08-11 05:28:33 +00:00
|
|
|
{{ define "main" }}
|
|
|
|
<article class="max-w-prose">
|
|
|
|
<header>
|
2021-08-18 00:08:06 +00:00
|
|
|
{{ if .Site.Params.article.showBreadcrumbs | default false }}
|
|
|
|
{{ partial "breadcrumbs.html" . }}
|
|
|
|
{{ end }}
|
2021-08-15 08:41:40 +00:00
|
|
|
<h1 class="mt-0 text-4xl font-extrabold">{{ .Title | emojify }}</h1>
|
2021-08-11 05:28:33 +00:00
|
|
|
<div class="mt-8 mb-12 text-base text-gray-400 dark:text-gray-500">
|
2021-08-14 04:44:34 +00:00
|
|
|
{{ partial "article-meta.html" . }}
|
2021-08-16 00:14:51 +00:00
|
|
|
{{ if and .Draft .Site.Params.article.showDraftLabel }}
|
2021-08-18 02:54:18 +00:00
|
|
|
<span class="pl-2">{{ partial "badge.html" (i18n "article.draft" | emojify) }}</span>
|
2021-08-14 04:57:31 +00:00
|
|
|
{{ end }}
|
2021-08-11 05:28:33 +00:00
|
|
|
</div>
|
|
|
|
</header>
|
|
|
|
<section class="prose dark:prose-light">
|
2021-08-13 07:17:32 +00:00
|
|
|
{{ .Content | emojify }}
|
2021-08-11 05:28:33 +00:00
|
|
|
</section>
|
2021-08-16 07:06:35 +00:00
|
|
|
<footer class="pt-8">
|
2021-08-15 01:21:37 +00:00
|
|
|
{{ partial "author.html" . }}
|
2021-08-16 07:06:35 +00:00
|
|
|
{{ partial "sharing-links.html" . }}
|
2021-08-14 04:44:34 +00:00
|
|
|
{{ partial "article-pagination.html" . }}
|
2021-08-11 05:28:33 +00:00
|
|
|
</footer>
|
|
|
|
{{/* Comments */}}
|
|
|
|
{{ if templates.Exists "partials/comments.html" }}
|
|
|
|
{{ partial "comments.html" . }}
|
|
|
|
{{ end }}
|
|
|
|
</article>
|
|
|
|
{{ end }}
|