congo/layouts/_default/single.html

36 lines
1.4 KiB
HTML
Raw Normal View History

2021-08-11 05:28:33 +00:00
{{ define "main" }}
2022-01-18 05:24:33 +00:00
<article>
<header class="max-w-prose">
2021-08-18 00:08:06 +00:00
{{ if .Site.Params.article.showBreadcrumbs | default false }}
{{ partial "breadcrumbs.html" . }}
{{ end }}
<h1 class="mt-0 text-4xl font-extrabold text-neutral-900 dark:text-neutral">
2021-08-20 07:02:08 +00:00
{{ .Title | emojify }}
</h1>
<div class="mt-8 mb-12 text-base text-neutral-500 dark:text-neutral-400">
2021-08-21 01:42:40 +00:00
{{ partial "article-meta.html" (dict "context" . "scope" "single") }}
2021-08-11 05:28:33 +00:00
</div>
</header>
2022-01-18 05:24:33 +00:00
<section class="flex flex-col max-w-full mt-0 lg:flex-row markdown dark:markdown-invert">
{{ if and (.Params.showTableOfContents | default (.Site.Params.article.showTableOfContents | default false)) (in .TableOfContents "<ul") }}
<div class="order-first px-0 lg:max-w-xs ltr:lg:pl-8 rtl:lg:pr-8 lg:order-last">
<div class="ltr:pl-5 rtl:pr-5 toc lg:sticky lg:top-10">
{{ partial "toc.html" . }}
</div>
</div>
{{ end }}
<div class="max-w-prose">
{{ .Content | emojify }}
</div>
2021-08-11 05:28:33 +00:00
</section>
2022-01-18 05:24:33 +00:00
<footer class="pt-8 max-w-prose">
{{ 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>
{{ if templates.Exists "partials/comments.html" }}
{{ partial "comments.html" . }}
{{ end }}
</article>
{{ end }}