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

Bug: Category component should not be included if category is not set in front matter #230

Closed
caendesilva opened this issue May 2, 2022 · 1 comment · Fixed by #241
Closed

Comments

@caendesilva
Copy link
Member

caendesilva commented May 2, 2022

Screenshot from a post

image

Caused because the category property was not nullable, and instead fell back to an empty string in the MarkdownPost class.

$this->category = $this->matter['category'] ?? '';
@caendesilva
Copy link
Member Author

caendesilva commented May 2, 2022

Also, in excerpt
image
remove comma if author is not set

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 a pull request may close this issue.

1 participant