Change 'teks' route to 'paroles'

This commit is contained in:
Cédric FAMIBELLE-PRONZOLA
2022-03-13 01:38:45 +04:00
parent a7475c1163
commit 414db4d14d
12 changed files with 17 additions and 17 deletions
+1 -1
View File
@@ -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>
)
+3 -3
View File
@@ -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('')}