You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 6358e76
Browse filesBrowse the repository at this point in the historyBrowse files
feat(authors): opt-in author profiles with avatars, taglines, bios, links
Authors can now describe themselves via an optional taxonomy term content
file at content/authors/<slug>/_index.md:
- Avatar resolution avatar -> gravatar_hash -> email -> identicon fallback
(author-avatar.html partial; email hashed at build so a raw email is never
required in the repo).
- Social links partial (website/github/twitter/mastodon/linkedin/bluesky).
- preferred_name overrides display only; the authors: byline stays the key,
so un-enriched authors render unchanged (no migration of 1,045 files).
- List page: enriched profiles sort first, then by count; cards show avatar +
tagline + links; search matches name and tagline.
- Profile page: avatar + preferred name + links header + Markdown bio.
- new-author.ps1 scaffolds a profile at the correct Hugo slug and supports
renames (rewrites the byline across content + adds an aliases redirect).
- Build-time warning when a profile's slug matches no author (orphan guard).
Updated archetypes/authors.md to the full commented schema.
See docs/adr/0002-author-profiles.md.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: themes/powershell-community/layouts/taxonomy/author.html
+24-9Lines changed: 24 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,27 @@
1
1
{{ define "main" }}
2
2
3
+
{{ $display := .Title }}
4
+
{{ with .Params.preferred_name }}{{ $display = . }}{{ end }}
5
+
6
+
{{/* An enriched profile with no tagged content almost always means the directory
7
+
slug does not match any author name in frontmatter — flag it at build time. */}}
8
+
{{ if and .File (eq (len .Pages) 0) }}
9
+
{{ warnf "author profile %q has no published content — its directory slug likely does not match any author name in `authors:` frontmatter" .RelPermalink }}
0 commit comments