diff options
author | uPagge <git@upagge.ru> | 2021-03-14 01:59:40 +0300 |
---|---|---|
committer | uPagge <git@upagge.ru> | 2021-03-14 01:59:40 +0300 |
commit | a53473d27e38ae20d0b14108a32aa306d13c9d8c (patch) | |
tree | 2511a4df6f9ad855117e85714eda8563e0af5ea1 /layouts/partials | |
parent | b8f47b394e0bce5d0499b5169b3c601ce7a44342 (diff) |
new html css
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> |