Change 'teks' route to 'paroles'
This commit is contained in:
+1
-1
@@ -78,7 +78,7 @@ export default function MyApp(props) {
|
||||
}, [router])
|
||||
|
||||
useEffect(() => {
|
||||
if (props.router.pathname.slice(0, 5) === '/teks') {
|
||||
if (props.router.pathname.slice(0, 8) === '/paroles') {
|
||||
setSwitchFixed(true)
|
||||
} else {
|
||||
setSwitchFixed(false)
|
||||
|
||||
@@ -39,7 +39,7 @@ export default function SlugTeks({teks, anTeks, slug, komante}) {
|
||||
imageWidth={formatKouveti() ? formatKouveti().width : null}
|
||||
imageHeight={formatKouveti() ? formatKouveti().height : null}
|
||||
imageMime={formatKouveti() ? formatKouveti().mime : null}
|
||||
title={`${awtis} - ${anTeks.tit} | Paroles et Traductions`} tab={1} slug={`teks/${slug}`}
|
||||
title={`${awtis} - ${anTeks.tit} | Paroles et Traductions`} tab={1} slug={`paroles/${slug}`}
|
||||
>
|
||||
<TeksDrawer teks={teks} anTeks={anTeks} komante={komante} />
|
||||
</HeadLayout>
|
||||
@@ -7,7 +7,7 @@ import HeadLayout from '../../components/head-layout'
|
||||
|
||||
export default function Teks({teks}) {
|
||||
return (
|
||||
<HeadLayout title='Tèks - Paroles et Traductions' tab={1} slug='teks'>
|
||||
<HeadLayout title='Paroles et Traductions' tab={1} slug='paroles'>
|
||||
<TeksDrawer teks={teks} />
|
||||
</HeadLayout>
|
||||
)
|
||||
@@ -10,11 +10,11 @@ const createSitemap = teks => (
|
||||
<priority>1</priority>
|
||||
</url>
|
||||
<url>
|
||||
<loc>${url}/soutyen</loc>
|
||||
<loc>${url}/paroles</loc>
|
||||
<priority>0.9</priority>
|
||||
</url>
|
||||
<url>
|
||||
<loc>${url}/teks</loc>
|
||||
<loc>${url}/soutyen</loc>
|
||||
<priority>0.8</priority>
|
||||
</url>
|
||||
<url>
|
||||
@@ -28,7 +28,7 @@ const createSitemap = teks => (
|
||||
${teks
|
||||
.map(m => `
|
||||
<url>
|
||||
<loc>${`${url}/teks/${m}`}</loc>
|
||||
<loc>${`${url}/paroles/${m}`}</loc>
|
||||
</url>
|
||||
`)
|
||||
.join('')}
|
||||
|
||||
Reference in New Issue
Block a user