1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-12-27 18:52:10 +00:00
seirdy.one/layouts/shortcodes/indieweb-author.html
Rohan Kumar f2d41c1c32
Metadata: Improve microformats + microdata
- Wrap the <a> in a <span> to make the h-entry expose an author URL
  (link to homepage). Useful for sending Webmentions.
- Switch from schema.org/Article to schema.org/BlogPosting
2021-01-19 22:13:16 -08:00

3 lines
486 B
HTML

<!-- re-using the indefinetly-cached favicon to avoid bloating page size -->
{{ $favicon := resources.Get "/favicon.png" | resources.Fingerprint "md5" -}}
<span itemprop="author" class="h-card p-author"><a href="https://seirdy.one" rel="author home" class="u-url url"><img class="u-photo" src="{{ $favicon.RelPermalink }}" width="16" height="16" alt="Rohan Kumar" > <span class="p-name"><span class="p-given-name">Rohan</span> <span class="p-family-name">Kumar</span></span></a></span>