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

Hide comments #205

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Hide comments #205

wants to merge 2 commits into from

Conversation

italorgama
Copy link

@italorgama italorgama commented Dec 7, 2024

This pull request introduces changes to the Poison theme to enable the ability to hide the comments section on specific posts.

Motivation

The primary motivation for this change is to allow greater flexibility in content presentation, particularly for posts like a resume, where displaying a comments section may not be appropriate.

Key Changes

  1. Documentation Updates
  • Added instructions on how to disable the comments section for specific posts by using the hideComments: true parameter in the front matter.
  1. Template File Modification
  • Updated the template logic to check for the hideComments parameter and conditionally disable the comments section when it is set to true.

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.

1 participant