Skip to content

Commit

Permalink
🐛 new window to open RSS to avoid CSR issue
Browse files Browse the repository at this point in the history
  • Loading branch information
SilentDepth committed Apr 14, 2023
1 parent 23485af commit deef0da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/Header.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const NavBar = () => {
const links = [
{ id: 0, name: locale.NAV.INDEX, to: BLOG.path || '/', show: true },
{ id: 1, name: locale.NAV.ABOUT, to: '/about', show: BLOG.showAbout },
{ id: 2, name: locale.NAV.RSS, to: '/feed', show: true },
{ id: 2, name: locale.NAV.RSS, to: '/feed', show: true, external: true },
{ id: 3, name: locale.NAV.SEARCH, to: '/search', show: true }
]
return (
Expand All @@ -24,7 +24,7 @@ const NavBar = () => {
key={link.id}
className="block ml-4 text-black dark:text-gray-50 nav"
>
<Link href={link.to}>{link.name}</Link>
<Link href={link.to} target={link.external ? '_blank' : null}>{link.name}</Link>
</li>
)
)}
Expand Down

0 comments on commit deef0da

Please sign in to comment.