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

Only creating the div if showing recent posts #116

Merged
merged 1 commit into from
Aug 8, 2023

Conversation

mancku
Copy link
Contributor

@mancku mancku commented Mar 24, 2023

Hi,

I thought that it's better to avoid adding the recent-posts div to the DOM if that section is not enabled. Also, I've modified the logic so that if there are no posts, it will be considered disabled instead of showing the title with no further content.

Hope this is Ok.

Hi,

I thought that it's better to avoid adding the recent-posts div to the DOM if that section is not enabled.
Also, I've modified the logic so that if there are no posts, it will be considered disabled instead of showing the title with no further content.

Hope this is Ok.
@gurusabarish
Copy link
Owner

Thanks @mancku

@gurusabarish gurusabarish merged commit d415ceb into gurusabarish:master Aug 8, 2023
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.

None yet

2 participants