@@ -13,7 +13,7 @@ import {
1313import GrainOverlay from '../components/GrainOverlay' ;
1414import CoffeeStain from '../components/CoffeeStain' ;
1515import CensoredPolaroid from '../components/CensoredPolaroid' ;
16- import useSeo from '../hooks/useSeo ' ;
16+ import Seo from '../components/Seo ' ;
1717import { calculateReadingTime } from '../utils/readingTime' ;
1818import { useAchievements } from '../context/AchievementContext' ;
1919import MarkdownLink from '../components/MarkdownLink' ;
@@ -103,27 +103,6 @@ const DossierBlogPostPage = () => {
103103 const [ modalLanguage , setModalLanguage ] = useState ( 'jsx' ) ;
104104 const [ modalImageSrc , setModalImageSrc ] = useState ( null ) ;
105105
106- useSeo ( {
107- title : post ? `${ post . attributes . title } | Fezcodex Archive` : 'Loading... | Fezcodex Archive' ,
108- description : post ? post . body . substring ( 0 , 150 ) : '' ,
109- keywords : post && post . attributes . tags ? post . attributes . tags . join ( ', ' ) : '' ,
110- ogTitle : post ? `${ post . attributes . title } | Fezcodex` : 'Fezcodex' ,
111- ogDescription : post ? post . body . substring ( 0 , 150 ) : '' ,
112- ogImage : post
113- ? post . attributes . ogImage ||
114- post . attributes . image ||
115- '/images/asset/ogtitle.png'
116- : '/images/asset/ogtitle.png' ,
117- twitterCard : 'summary_large_image' ,
118- twitterTitle : post ? `${ post . attributes . title } | Fezcodex` : 'Fezcodex' ,
119- twitterDescription : post ? post . body . substring ( 0 , 150 ) : '' ,
120- twitterImage : post
121- ? post . attributes . ogImage ||
122- post . attributes . image ||
123- '/images/asset/ogtitle.png'
124- : '/images/asset/ogtitle.png' ,
125- } ) ;
126-
127106 useEffect ( ( ) => {
128107 setHasTrackedRead ( false ) ;
129108 } , [ currentSlug ] ) ;
@@ -355,11 +334,51 @@ const DossierBlogPostPage = () => {
355334 const prevPost = post . seriesPosts ?. [ currentPostIndex + 1 ] ;
356335 const nextPost = post . seriesPosts ?. [ currentPostIndex - 1 ] ;
357336
358- return (
337+ return (
338+
339+ < div className = "min-h-screen bg-[#f3f3f3] text-[#111] overflow-y-auto selection:bg-black selection:text-white custom-scrollbar font-sans relative" >
340+
341+ < Seo
342+
343+ title = { `${ post . attributes . title } | Fezcodex Archive` }
344+
345+ description = { post . body . substring ( 0 , 150 ) }
346+
347+ keywords = { post . attributes . tags ? post . attributes . tags . join ( ', ' ) : '' }
348+
349+ ogTitle = { `${ post . attributes . title } | Fezcodex` }
350+
351+ ogDescription = { post . body . substring ( 0 , 150 ) }
352+
353+ ogImage = {
354+
355+ post . attributes . ogImage ||
356+
357+ post . attributes . image ||
358+
359+ '/images/asset/ogtitle.png'
360+
361+ }
362+
363+ twitterCard = "summary_large_image"
364+
365+ twitterTitle = { `${ post . attributes . title } | Fezcodex` }
366+
367+ twitterDescription = { post . body . substring ( 0 , 150 ) }
368+
369+ twitterImage = {
370+
371+ post . attributes . ogImage ||
372+
373+ post . attributes . image ||
374+
375+ '/images/asset/ogtitle.png'
376+
377+ }
359378
360- < div className = "min-h-screen bg-[#f3f3f3] text-[#111] overflow-y-auto selection:bg-black selection:text-white custom-scrollbar font-sans relative" >
379+ / >
361380
362- < GrainOverlay />
381+ < GrainOverlay />
363382 < CoffeeStain />
364383
365384 { /* Top Secret Stamp / Decor */ }
0 commit comments