congo/layouts/_default/single.html

33 lines
1.2 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-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 }}
2021-08-14 04:57:31 +00:00
<span
class="ml-2 px-1 py-[2px] text-xs font-normal border rounded-md text-primary-700 dark:text-primary-400 border-primary-400 dark:border-primary-600 inline-block align-middle mb-1"
>
2021-08-17 06:48:08 +00:00
{{ i18n "article.draft" | emojify }}
2021-08-14 04:57:31 +00:00
</span>
{{ 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 }}