Hide an HTML tag in Jekyll layout
If I want to hide something in the Jekyll then I can use custom CSS to do that.
If you just want to hide some elements, consider using custom classes on that page, and hide those elements with custom CSS. E.g.
layout: home
classes:
- hide-recent-posts
.hide-recent-posts .archive__subtitle {
display: none;
}
Reference : https://github.com/mmistakes/minimal-mistakes/discussions/4835