diff options
| author | Francesco <tomaselli.fr@gmail.com> | 2025-05-16 19:39:17 +0200 | 
|---|---|---|
| committer | Francesco <tomaselli.fr@gmail.com> | 2025-05-16 19:39:17 +0200 | 
| commit | 340b14942771e00318433355c489be5dcdc685db (patch) | |
| tree | b68d5ff494646dd15d646dc1819b10867be98e64 /layouts/_default | |
| parent | ab3d2d785758aebf0da5a59c3aed6a172a71f59d (diff) | |
Skip subsummary rendering if not needed
Diffstat (limited to 'layouts/_default')
| -rw-r--r-- | layouts/_default/single.html | 2 | 
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> | 
