summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrancesco <tomaselli.fr@gmail.com>2025-05-16 19:39:17 +0200
committerFrancesco <tomaselli.fr@gmail.com>2025-05-16 19:39:17 +0200
commit340b14942771e00318433355c489be5dcdc685db (patch)
treeb68d5ff494646dd15d646dc1819b10867be98e64
parentab3d2d785758aebf0da5a59c3aed6a172a71f59d (diff)
Skip subsummary rendering if not needed
-rw-r--r--layouts/_default/single.html2
1 files changed, 2 insertions, 0 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 01c35c2..4398ce5 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -17,6 +17,7 @@
{{- end }}
{{- /* Date, Reading Time and Author */}}
+ {{ if or (or (.Param "author") (.Param "authorAvatarPath")) (or .Date (.Param "readTime")) }}
<div class="single-subsummary">
{{ with $.Param "authorAvatarPath" }}
<img src="{{ . }}" alt="Author Avatar" />
@@ -39,6 +40,7 @@
</p>
</div>
</div>
+ {{- end}}
</header>