Chronoblog / gatsby-theme-chronoblog

⏳ Chronoblog is a Gatsbyjs theme specifically designed to create a personal website. The main idea of ​​Chronoblog is to allow you not only to write a personal blog but also to keep a record of everything important that you have done.
https://chronoblog.now.sh
MIT License
130 stars 26 forks source link

How can I disable/hide this footer section in a post? #39

Closed 17-09 closed 4 years ago

17-09 commented 4 years ago

image

17-09 commented 4 years ago

Create a flag that indicates hide/show ContentBottomMdx? image

ganevdev commented 4 years ago

Hi!

If I understand correctly what you want to do, do this:

In src/gatsby-theme-chronoblog/

Create a file called content-bottom.mdx

Inside, fill it like this (this is how this file looks by default):

<hr />
<FeedSearch />
<Tags />
<FeedItems />

And ... now you can add and remove anything from here. You can leave it empty and then there will be nothing, or add or remove something.

17-09 commented 4 years ago

Magic. The building process will take my custom content-bottom.mdx instead of gatsby-theme-chronoblog 's content-bottom.mdx, right?

ganevdev commented 4 years ago

Yes, this is called "Shadowing", you can read more about it here: https://www.gatsbyjs.org/docs/themes/shadowing

17-09 commented 4 years ago

Let me try. Thank you very much <3