Skip to content

Link news authors to their profiles - #518

Open
jimmeak wants to merge 1 commit into
dracidoupe:masterfrom
jimmeak:fix/issue-117-link-news-authors
Open

Link news authors to their profiles#518
jimmeak wants to merge 1 commit into
dracidoupe:masterfrom
jimmeak:fix/issue-117-link-news-authors

Conversation

@jimmeak

@jimmeak jimmeak commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

News authors currently point to #, even when the author has a profile. This links known authors to their profile and leaves old or unmatched names as plain text instead of a broken link.

I added tests for both cases. The full test suite and Ruff pass locally.

Fixes #117

Known news authors now point to their user profile. Historical names without a matching profile stay as plain text instead of a broken link.\n\nFixes dracidoupe#117
@jimmeak
jimmeak marked this pull request as ready for review July 14, 2026 18:31
@jimmeak
jimmeak requested a review from Almad July 14, 2026 18:31
</div>
<footer>
<a href="#" class="author" rel="author">{{ n.author }}</a>
{% with author_url=n.author|nick_url %}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please add author_url as a method on News object instead? That will be quite a bit cleaner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Link news to admin's user profile

2 participants