konstantinmuenster / gatsby-theme-portfolio-minimal

A Gatsby Theme to create modern one-page portfolios with a clean yet expressive design.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Open link in same tab

yathAg opened this issue · comments

Hi,

Firstly, thank you for this fantastic theme!

I apologize in advance if this is a really silly question. This is my first time using React or any SSG.

I'd like the button in the ProjectsSection to be redirected to a page in the same tab. Currently, it opens the correct page but is in a new tab.

The index.tsx for the ProjectsSection does have the variable externalLink={True}.
Setting this to false followed by gatsby clean and gatsby develop, does the trick, but to my understanding, changes in index.tsx will not show up when I host this on Netlify.

Screenshot from 2024-04-06 11-13-06

Button in question

What would be the solution to this?

Thanks for the help!!

hey @yathAg and sorry for the late reply!

What you are looking for is called "theme shadowing". You can find out more about it on the Gatsby docs: https://www.gatsbyjs.com/docs/how-to/plugins-and-themes/shadowing/

Hope that helps!