congo/layouts/_default/single.html

31 lines
1.0 KiB
HTML
Raw Normal View History

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-20 07:02:08 +00:00
<h1 class="mt-0 text-4xl font-extrabold text-neutral-800 dark:text-neutral">
{{ .Title | emojify }}
</h1>
<div class="mt-8 mb-12 text-base text-neutral-400 dark:text-neutral-500">
{{ partial "article-meta.html" . }}
{{ if and .Draft .Site.Params.article.showDraftLabel }}
<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">
{{ .Content | emojify }}
2021-08-11 05:28:33 +00:00
</section>
2021-08-16 07:06:35 +00:00
<footer class="pt-8">
{{ partial "author.html" . }}
2021-08-16 07:06:35 +00:00
{{ partial "sharing-links.html" . }}
{{ 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 }}