diff --git a/config.toml b/config.toml index 47f083a..4cdf2fb 100644 --- a/config.toml +++ b/config.toml @@ -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" diff --git a/content/_index.md b/content/_index.md index 8a781f1..3177ec3 100644 --- a/content/_index.md +++ b/content/_index.md @@ -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 diff --git a/layouts/_default/list.atom.xml b/layouts/_default/list.atom.xml index f3fb26a..59f0045 100644 --- a/layouts/_default/list.atom.xml +++ b/layouts/_default/list.atom.xml @@ -25,7 +25,13 @@ {{ $icon_png.Permalink }} {{ .Site.Params.icon | absURL }} - {{ .Params.Description }} + + {{- if .Params.Description -}} + {{- .Params.Description -}} + {{- else -}} + {{- .Site.Params.Description -}} + {{- end -}} + {{ $period }} 2 diff --git a/layouts/index.html b/layouts/index.html index 4c00380..8de6db5 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,7 +1,7 @@ {{ define "main" -}}

Seirdy’s Home

- +

{{ .Site.Params.Description }}


{{ partial "processed-content.html" . }} diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 0647d1c..9a135b9 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -36,9 +36,11 @@ {{- end }} {{ .Title }}{{ if and (lt (len .Title) 54) (ne $canonicalRelPermalink "/") }} - Seirdy{{ end }} - {{ $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 `\’` `’` | replaceRE `\ ` `\ ` | replaceRE `\“` `“` | replaceRE `\”` `”` | replaceRE `\…` `—` | replaceRE `\—` `—` | replaceRE `\­` `\­` | replaceRE `‘` `‘` | safeHTML -}} {{- end -}}