congo/layouts/_default/single.html

29 lines
1001 B
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-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">
{{ 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 }}