I don't want the date to display under each blog post, because we are using the blog component differently, therefore it is not relevant to show the date.
If I leave the date field empty (date: ''), it doesn't work.
What should I do to remove it?
I don't want the date to display under each blog post, because we are using the blog component differently, therefore it is not relevant to show the date.
If I leave the date field empty (date: ''), it doesn't work.
What should I do to remove it?
Copyright © 2021 Jogjafile Inc.
In Docusaurus, the date in the blog section is usually controlled by the theme that you are using. This solution applies CSS that effectively hides the HTML tag for all blogs.
Therefore, inspect the HTML element and find its class name. In you
customCSS.cssfile add the following line:For me className was:
container_node_modules-\@docusaurus-theme-classic-lib-theme-BlogPostItem-Header-Info-styles-module