mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-10 00:12:09 +00:00
Move microformat markup from picture to img
This commit is contained in:
parent
90344bc451
commit
d0fdf26227
2 changed files with 3 additions and 3 deletions
|
@ -106,7 +106,7 @@ pre,
|
||||||
}
|
}
|
||||||
|
|
||||||
/* center images that aren't my indieweb icon */
|
/* center images that aren't my indieweb icon */
|
||||||
picture:not(.u-photo) img {
|
img:not(.u-photo) {
|
||||||
display: block;
|
display: block;
|
||||||
height: auto;
|
height: auto;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
|
|
|
@ -3,10 +3,10 @@
|
||||||
{{- $favicon_svg := resources.Get "/favicon.svg" | resources.Fingerprint "md5" -}}
|
{{- $favicon_svg := resources.Get "/favicon.svg" | resources.Fingerprint "md5" -}}
|
||||||
{{- $favicon_bigpng := resources.Get "/apple-touch-icon.png" | resources.Fingerprint "md5" -}}
|
{{- $favicon_bigpng := resources.Get "/apple-touch-icon.png" | resources.Fingerprint "md5" -}}
|
||||||
{{- if (ne .Site.BaseURL "http://wgq3bd2kqoybhstp77i3wrzbfnsyd27wt34psaja4grqiezqircorkyd.onion/") -}}
|
{{- if (ne .Site.BaseURL "http://wgq3bd2kqoybhstp77i3wrzbfnsyd27wt34psaja4grqiezqircorkyd.onion/") -}}
|
||||||
<picture itemprop="image" class="u-photo photo">
|
<picture itemprop="image">
|
||||||
<source srcset="{{ $favicon_svg.RelPermalink }}" type="image/svg+xml">
|
<source srcset="{{ $favicon_svg.RelPermalink }}" type="image/svg+xml">
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
<img src="data:image/png;base64,{{ $favicon_base64 }}" width="16" height="16" alt=""
|
<img class="u-photo photo" src="data:image/png;base64,{{ $favicon_base64 }}" width="16" height="16" alt=""
|
||||||
srcset="{{ $favicon_bigpng.RelPermalink }} 2x">
|
srcset="{{ $favicon_bigpng.RelPermalink }} 2x">
|
||||||
{{- if (ne .Site.BaseURL "http://wgq3bd2kqoybhstp77i3wrzbfnsyd27wt34psaja4grqiezqircorkyd.onion/") -}}
|
{{- if (ne .Site.BaseURL "http://wgq3bd2kqoybhstp77i3wrzbfnsyd27wt34psaja4grqiezqircorkyd.onion/") -}}
|
||||||
</picture>
|
</picture>
|
||||||
|
|
Loading…
Reference in a new issue