1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-12-03 16:42:10 +00:00

Fix some markup

- Put headings outside of links in SERP
- fix a <div> wrapping issue in the about page
- Mark up the result excerpts with a <q> element.
This commit is contained in:
Rohan Kumar 2022-06-08 17:14:39 -07:00
parent 6042b0bdaf
commit acfffd3754
No known key found for this signature in database
GPG key ID: 1E892DB2A5F84479
3 changed files with 11 additions and 11 deletions

View file

@ -7,6 +7,7 @@ outputs:
- gemtext - gemtext
description: "Get to know Rohan Kumar, also known as Seirdy. Contact info, my projects, interests, online accounts, etc." description: "Get to know Rohan Kumar, also known as Seirdy. Contact info, my projects, interests, online accounts, etc."
--- ---
<div itemscope="" itemprop="about" itemtype="https://schema.org/Person" itemid="https://seirdy.one/#seirdy" class="h-card vcard">
I'm known as Rohan and as Seirdy. There are some differences between these personas, but the line between the two is blurry. It's fine to mix them up. I'm known as Rohan and as Seirdy. There are some differences between these personas, but the line between the two is blurry. It's fine to mix them up.
@ -75,8 +76,7 @@ Chat
: IRC: "Seirdy" on many networks (Liberachat, Snoonet, OFTC, Tilde.Chat, apionet, some others) : IRC: "Seirdy" on many networks (Liberachat, Snoonet, OFTC, Tilde.Chat, apionet, some others)
: Matrix: [@seirdy<wbr />:seirdy.one](matrix:u/seirdy:seirdy.one "class='u-impp u-url' rel='me'") : Matrix: [@seirdy<wbr />:seirdy.one](matrix:u/seirdy:seirdy.one "class='u-impp u-url' rel='me'")
At least two platforms listed in the "Social (centralized)" category are not endorsed, and I'm trying to wind down my use of them. At least two platforms listed in the "Social (centralized)" category are not endorsed, and I'm trying to wind down my use of them. If you find a "Seirdy" somewhere else and don't know whether or not it's me, please contact me and ask instead of assuming that it must be me.
If you find a "Seirdy" somewhere else and don't know whether or not it's me, please contact me and ask instead of assuming that it must be me.
I used to have the Matrix ID `@seirdy:envs.net`. I sometimes use `@seirdy:fairydust.space` for technical reasons (seirdy.one runs a Conduit server but certain features only work in Synapse rooms). I used to have the Matrix ID `@seirdy:envs.net`. I sometimes use `@seirdy:fairydust.space` for technical reasons (seirdy.one runs a Conduit server but certain features only work in Synapse rooms).
@ -155,5 +155,3 @@ Content on this site also appears on <a rel="alternate" href="gemini://seirdy.on
I have a [Tor hidden Web service](http://wgq3bd2kqoybhstp77i3wrzbfnsyd27wt34psaja4grqiezqircorkyd.onion/ "{rel='alternate' class='u-syndication'}") which mirrors this site's contents, except for the fact that it replaces some SVGs with PNGs. I have a [Tor hidden Web service](http://wgq3bd2kqoybhstp77i3wrzbfnsyd27wt34psaja4grqiezqircorkyd.onion/ "{rel='alternate' class='u-syndication'}") which mirrors this site's contents, except for the fact that it replaces some SVGs with PNGs.
<div itemscope="" itemtype="https://schema.org/Person" itemid="https://seirdy.one/#seirdy" class="h-card vcard">

View file

@ -4,17 +4,17 @@
<ol> <ol>
{{- range .Results }} {{- range .Results }}
<li> <li>
<a href="{{ .URL }}">
<h2> <h2>
<a href="{{ .URL }}">
{{ if .Title -}} {{ if .Title -}}
{{- .Title }} {{- .Title }}
{{ else -}} {{ else -}}
{{- .URL }} {{- .URL }}
{{- end }} {{- end }}
</h2>
</a> </a>
</h2>
<p>{{ printf "%.200s" .Desc }}</p> <p>{{ printf "%.200s" .Desc }}</p>
<p> <p><q cite="{{ .URL }}">
{{ $isMatch := false }} {{ $isMatch := false }}
{{ range .Frag }} {{ range .Frag }}
{{ if $isMatch }}<strong>{{ end -}} {{ if $isMatch }}<strong>{{ end -}}
@ -22,7 +22,7 @@
{{- if $isMatch }}</strong>{{ end }} {{- if $isMatch }}</strong>{{ end }}
{{ $isMatch = (not $isMatch) }} {{ $isMatch = (not $isMatch) }}
{{ end }} {{ end }}
</p> </q></p>
</li> </li>
{{- end }} {{- end }}
</ol> </ol>

View file

@ -20,6 +20,8 @@
(.message == "Text not allowed in element “ol” in this context.") (.message == "Text not allowed in element “ol” in this context.")
or or
(.message == "Bad value “{{ .URL }}” for attribute “href” on element “a”: Illegal character in path segment: “{” is not allowed.") (.message == "Bad value “{{ .URL }}” for attribute “href” on element “a”: Illegal character in path segment: “{” is not allowed.")
or
(.message == "Bad value “{{ .URL }}” for attribute “cite” on element “q”: Illegal character in path segment: “{” is not allowed.")
) )
and ( and (
(.extract | test("{{")) (.extract | test("{{"))