let decide in frontmatter to show related posts

This commit is contained in:
Dominic Reich 2024-12-21 21:08:50 +01:00
parent 7e7bfcc33c
commit 0fb91eec97
Signed by: dominic
GPG key ID: BC9D6AE1A3BE169A

View file

@ -47,6 +47,7 @@
</section> </section>
<footer class="max-w-prose pt-8 print:hidden"> <footer class="max-w-prose pt-8 print:hidden">
{{ partial "author.html" . }} {{ partial "author.html" . }}
{{ if .Params.showRelated | default (.Site.Params.article.showRelated | default true) }}
<!-- Related --> <!-- Related -->
<section class="prose mt-0 flex max-w-full flex-col dark:prose-invert lg:flex-row"> <section class="prose mt-0 flex max-w-full flex-col dark:prose-invert lg:flex-row">
<div class="pt-3"> <div class="pt-3">
@ -54,6 +55,7 @@
</div> </div>
</section> </section>
<!-- /Related --> <!-- /Related -->
{{ end }}
{{ partial "sharing-links.html" . }} {{ partial "sharing-links.html" . }}
{{ partial "article-pagination.html" . }} {{ partial "article-pagination.html" . }}