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

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.
This commit is contained in:
Rohan Kumar 2022-07-12 22:55:45 -07:00
parent b491b69f96
commit 1a7cc7156c
No known key found for this signature in database
GPG key ID: 1E892DB2A5F84479
5 changed files with 12 additions and 5 deletions

View file

@ -13,7 +13,7 @@ pygmentsUseClasses = false
disableKinds = ["taxonomy", "term"] disableKinds = ["taxonomy", "term"]
[params] [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/" src = "https://sr.ht/~seirdy/seirdy.one/"
canonicalBaseURL = "https://seirdy.one" # I have mirrors with different baseURLs canonicalBaseURL = "https://seirdy.one" # I have mirrors with different baseURLs
webmentionEndpoint = "https://seirdy.one/webmentions/receive" webmentionEndpoint = "https://seirdy.one/webmentions/receive"

View file

@ -5,7 +5,6 @@ outputs:
- atom - atom
- RSS - RSS
title: Seirdy's Home 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: sitemap:
- ChangeFreq: weekly - ChangeFreq: weekly
- Priority: 0.9 - Priority: 0.9

View file

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

View file

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

View file

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