mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-23 21:02:09 +00:00
Valid HTML: fix img tags
Images should be specified acc. to pixelsize, according to the HTML spec. "em" is out. Specifying the mimetype in those contexts isn't allowed.
This commit is contained in:
parent
f2d4fe84ca
commit
831443c52c
2 changed files with 2 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
<!-- re-using the indefinetly-cached favicon to avoid bloating page size -->
|
<!-- re-using the indefinetly-cached favicon to avoid bloating page size -->
|
||||||
{{ $favicon := resources.Get "/favicon.png" | resources.Fingerprint "md5" -}}
|
{{ $favicon := resources.Get "/favicon.png" | resources.Fingerprint "md5" -}}
|
||||||
<a itemprop="author" class="p-author h-card" href="https://seirdy.one" rel="author"><img class="u-photo" src="{{ $favicon.RelPermalink }}" width="1em" height="1em" type="image/png" alt="Rohan Kumar" > <span class="p-given-name">Rohan</span>
|
<a itemprop="author" class="p-author h-card" href="https://seirdy.one" rel="author"><img class="u-photo" src="{{ $favicon.RelPermalink }}" width="16" height="16" alt="Rohan Kumar" > <span class="p-given-name">Rohan</span>
|
||||||
<span class="p-family-name">Kumar</span></a>
|
<span class="p-family-name">Kumar</span></a>
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
<!-- re-using the indefinetly-cached favicon to avoid bloating page size -->
|
<!-- re-using the indefinetly-cached favicon to avoid bloating page size -->
|
||||||
{{ $favicon := resources.Get "/favicon.png" | resources.Fingerprint "md5" -}}
|
{{ $favicon := resources.Get "/favicon.png" | resources.Fingerprint "md5" -}}
|
||||||
<img class="u-photo" src="{{ $favicon.RelPermalink }}" width="1em" height="1em" type="image/png" alt="Rohan Kumar">
|
<img class="u-photo" src="{{ $favicon.RelPermalink }}" width="16" height="16" alt="Rohan Kumar">
|
||||||
|
|
Loading…
Reference in a new issue