2022-02-14 20:17:43 +00:00
|
|
|
<!-- re-using the favicon for the author photo -->
|
|
|
|
{{- $favicon := resources.Get "/favicon.png" -}}
|
2021-06-05 00:29:05 +00:00
|
|
|
{{- $favicon_base64 := $favicon.Content | base64Encode -}}
|
2022-02-14 20:17:43 +00:00
|
|
|
<!--
|
|
|
|
Reader mode implementations use .p-author, itemprop=author, and/or .author to add
|
|
|
|
a byline. Some also strip elements matching the "byline" class to avoid duplicating
|
|
|
|
the byline. Mozilla Readability uses both microformats1 and microformats2 while
|
|
|
|
Chromium Distiller uses microdata + schema.org. This site also needs to be Indieweb
|
|
|
|
compatible for webmentions and such. To support them all, I ended up with
|
|
|
|
microdata, microformats2, microformats1, and the "byline" class.
|
|
|
|
|
|
|
|
I put the byline class around the html that includes this partial so it can hide
|
|
|
|
the whole line.
|
|
|
|
|
|
|
|
Jesus christ.
|
|
|
|
|
|
|
|
Abominations like this also appear elsewhere in the blog btw. This is just the best
|
|
|
|
example. Oh, and then i need to support some parts of hNews as well as hentry *and*
|
|
|
|
h-entry.
|
|
|
|
|
|
|
|
This would be so much simpler if all the parsers just had a mode to detect
|
|
|
|
schema.org and a mode to detect microformats2, and then stuck to those standards.
|
|
|
|
|
|
|
|
(btw this is all made of <span> cuz it is supposed to be inline)
|
|
|
|
-->
|
2022-05-06 17:33:42 +00:00
|
|
|
<span itemprop="author" itemscope itemtype="https://schema.org/Person" itemid="https://seirdy.one/#seirdy" class="h-card p-author author vcard">
|
2022-02-16 05:42:01 +00:00
|
|
|
<a itemprop="url" href="https://seirdy.one" rel="author home cc:attributionURL" class="u-url url" property="cc:attributionName">
|
2022-03-11 05:27:40 +00:00
|
|
|
{{ partial "indieweb-icon.html" }}
|
2022-02-14 20:17:43 +00:00
|
|
|
<span itemprop="name" class="p-name fn n">
|
|
|
|
<span itemprop="givenName" class="p-given-name given-name">Rohan</span>
|
|
|
|
<span itemprop="familyName" class="p-family-name family-name">Kumar</span></span></a>
|
|
|
|
</span>
|