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

Compare commits

...

2 commits

Author SHA1 Message Date
Rohan Kumar
5b4832df15
Disable text inflation
I respect whatever you're into, but that doesn't mean it belongs on my
site. Disable the text inflation algorithm. Don't make landscape fonts
comically large.
2022-07-12 23:24:38 -07:00
Rohan Kumar
1a7cc7156c
Replace homepage <aside> with page description
IBM Equal Access A11y Checker caught an <aside> without a label. Figured
this was a good opportunity to instead use the site description.

While I was at it, I expanded said site description and used it
properly.
2022-07-12 23:05:37 -07:00
6 changed files with 17 additions and 5 deletions

View file

@ -33,6 +33,11 @@ html {
/* Nearly every page on my site is taller than the viewport.
* Paint the scrollbar ASAP to prevent layout shifts. */
overflow-y: scroll;
/* Site is already mobile optimized.
* Don't screw up landscape mode. */
-webkit-text-size-adjust: none;
text-size-adjust: none;
}
/* This should not take effect on printouts, to save paper. */

View file

@ -13,7 +13,7 @@ pygmentsUseClasses = false
disableKinds = ["taxonomy", "term"]
[params]
description = "Seirdy's Home: personal website and blog for Rohan Kumar, A.K.A. Seirdy"
description = "My personal IndieWeb site. I write about and develop software to promote user autonomy. Topics include accessibility, security, privacy, and software freedom."
src = "https://sr.ht/~seirdy/seirdy.one/"
canonicalBaseURL = "https://seirdy.one" # I have mirrors with different baseURLs
webmentionEndpoint = "https://seirdy.one/webmentions/receive"

View file

@ -5,7 +5,6 @@ outputs:
- atom
- RSS
title: Seirdy's Home
description: "Seirdy's Home: personal website and blog for Rohan Kumar, A.K.A. Seirdy. I write about and develop software to promote user autonomy."
sitemap:
- ChangeFreq: weekly
- Priority: 0.9

View file

@ -25,7 +25,13 @@
<link rel="self" type="application/atom+xml" href="{{ .Permalink }}atom.xml" />
<logo>{{ $icon_png.Permalink }}</logo>
<icon>{{ .Site.Params.icon | absURL }}</icon>
<subtitle>{{ .Params.Description }}</subtitle>
<subtitle>
{{- if .Params.Description -}}
{{- .Params.Description -}}
{{- else -}}
{{- .Site.Params.Description -}}
{{- end -}}
</subtitle>
<sy:updatePeriod>{{ $period }}</sy:updatePeriod>
<sy:updateFrequency>2</sy:updateFrequency>
<author>

View file

@ -1,7 +1,7 @@
{{ define "main" -}}
<main id="main" tabindex="-1">
<h1 id="seirdys-home">Seirdys Home</h1>
<aside><p>It me.</p></aside>
<p itemprop="description">{{ .Site.Params.Description }}</p>
<hr />
<div class="narrow">
{{ partial "processed-content.html" . }}

View file

@ -36,9 +36,11 @@
{{- end }}
<link rel="authorization_endpoint" href="{{ site.Params.IndieAuth }}" />
<title>{{ .Title }}{{ if and (lt (len .Title) 54) (ne $canonicalRelPermalink "/") }} - Seirdy{{ end }}</title>
{{ $description := .Site.Params.Description -}}
{{ $description := "" -}}
{{- if .Params.description -}}
{{- $description = .Params.Description -}}
{{- else if .IsHome -}}
{{- $description = .Site.Params.Description -}}
{{- else if .Summary -}}
{{- $description = .Summary | replaceRE `\n` ` ` | replaceRE `\&rsquo;` `` | replaceRE `\&nbsp;` `\&#160;` | replaceRE `\&ldquo;` `“` | replaceRE `\&rdquo;` `”` | replaceRE `\&hellip;` `—` | replaceRE `\&mdash;` `—` | replaceRE `\&shy;` `\&#173;` | replaceRE `&lsquo;` `` | safeHTML -}}
{{- end -}}