Skip to content

Commit 96f0f17

Browse files
committed
fix banner
1 parent 1a9cdd9 commit 96f0f17

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/templates/single.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ export default function DocsSinglePage({ data, pageContext }) {
2222
//const pagePathNoSlash = pagePath.endsWith('/') ? pagePath.slice(0, -1) : pagePath;
2323
const relativeFilePath = data.markdownRemark.parent.relativePath;
2424
const location = useLocation(); // Get the current location
25+
console.log('location.pathname: ', location.pathname);
2526

2627
function titleize(slug) {
2728
let words = slug.toLowerCase().replace(/-/g, ' ');
@@ -105,7 +106,7 @@ export default function DocsSinglePage({ data, pageContext }) {
105106
<h1>{title}</h1>
106107
</header>
107108
<main className="markdown-body">
108-
{location.pathname !== '/polkadot-sdk' && (
109+
{!location.pathname.includes('polkadot-sdk') && (
109110
<div className="deprecation">
110111
<strong>⚠️ Update Notice:</strong>
111112
<p>

0 commit comments

Comments
 (0)