Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: url-less authors should not have empty links #1410

Merged
merged 1 commit into from
Dec 6, 2023
Merged

fix: url-less authors should not have empty links #1410

merged 1 commit into from
Dec 6, 2023

Conversation

chuckhoupt
Copy link
Contributor

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Description

The url field from authors.yml is optional, so no link should be build when the url is empty or not defined. Previously, an empty HREF was generated, which is flagged as an error by html-proofer.

This change carefully controls white-space, so existing sites with defined author.url will be identical.

Additional context

Fixes #1403

The url field from authors.yml is optional, so no link should be
build when the url is empty or not defined.

Fix #1403
Copy link
Owner

@cotes2020 cotes2020 left a comment

Choose a reason for hiding this comment

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

Thanks for responding to the PR request.

@cotes2020 cotes2020 merged commit 2a4fbf6 into cotes2020:master Dec 6, 2023
2 checks passed
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.

Chirpy theme: ‘a’ tag is missing a reference when author url is missing
2 participants