📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!
TypeScript chartsclickhousedockergdprgoogle-analyticsmetricsmonitoringmysqlnestjsprivacyredisself-hostedselfhostedstatisticstailwindcssweb-analyticswebanalyticswebsite
no alternate links for blog pages
Blue Mousebd4d3ae40ce6
diff --git a/app/components/LocaleLinks.tsx b/app/components/LocaleLinks.tsxindex f21d0cd8b..b81c2b9fa 100644--- a/app/components/LocaleLinks.tsx+++ b/app/components/LocaleLinks.tsx@@ -41,11 +41,22 @@ const getAlternateLinks = (location: Location) => {}}+const NO_ALTERNATE_LINKS = [/^\/blog/i]++const getShouldBeIgnored = (location: Location) => {+ return NO_ALTERNATE_LINKS.some((regex) => regex.test(location.pathname))+}+export const LocaleLinks = () => {const location = useLocation()+ const shouldBeIgnored = useMemo(() => getShouldBeIgnored(location), [location])const altLinks = useMemo(() => getAlternateLinks(location), [location])+ if (shouldBeIgnored) {+ return+ }+return (<>{_map(altLinks.altLinks, (link) => (