diff options
Diffstat (limited to 'layouts/partials')
-rw-r--r-- | layouts/partials/plugin/image.html | 3 | ||||
-rw-r--r-- | layouts/partials/single/footer.html | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/layouts/partials/plugin/image.html b/layouts/partials/plugin/image.html index 3a98b21..1143b61 100644 --- a/layouts/partials/plugin/image.html +++ b/layouts/partials/plugin/image.html @@ -8,13 +8,14 @@ {{- if .Linked -}} <a target="_blank" href="{{ .Src | safeURL }}" title="{{ .Title | default $alt }}" {{ with .Rel }} rel="{{ . }}"{{ end }}> <img loading="lazy" decoding="async" - data-sizes="auto" + {{ with .Class }}class="{{ . }}"{{ end }} src="{{ .Src | safeURL }}" alt="{{ $alt }}"{{ with .Height }} height="{{ . }}"{{ end }}{{ with .Width }} width="{{ . }}"{{ end }} /> </a> {{- else -}} <img loading="lazy" decoding="async" + {{ with .Class }}class="{{ . }}"{{ end }} src="{{ .Src | safeURL }}" alt="{{ $alt }}" title="{{ .Title | default $alt }}"{{ with .Height }} height="{{ . }}"{{ end }}{{ with .Width }} width="{{ . }}"{{ end }} diff --git a/layouts/partials/single/footer.html b/layouts/partials/single/footer.html index 05625f1..e54f1aa 100644 --- a/layouts/partials/single/footer.html +++ b/layouts/partials/single/footer.html @@ -19,7 +19,7 @@ {{ $author = index .Site.Data.authors $authorName }} {{ end }} {{ if eq ($params.authorHidden | default false) false }} -{{- if and (not (eq $authorName " ")) (not (eq $pageTheme "hero")) -}} +{{- if ne $authorName " " -}} {{- with $author -}} <div class="footer-post-author"> <div class="author-avatar"><a href="{{ with .link }} {{- . | safeHTML -}}{{ end }}" target="_blank"><img alt="{{ .about }}" src="{{ with .avatar }} {{- . | safeHTML -}}{{ end }}"></a></div> |