Re:SEO mistakes I've made and how I fixed them
by todotask on Tuesday October 13, 2020 @02:37PM
(#24768603)
From the WhatCMS, author uses Gatsby, assume no trace of Prismjs is used.
[ Parent
| on HN ]
Re:SEO mistakes I've made and how I fixed them
by Eyas on Tuesday October 13, 2020 @02:55PM
(#24768865)
Gatsby doesn't offer a syntax highlighter out of the box. It has markdown (and MDX) components that generate pages, and those in turn can have syntax highlighting plugins. AFAICT prismjs indeed is the predominant one used by Gatsby sites (at least, in mine). But thanks to SSR prismjs will typically run at compile time.
Re:SEO mistakes I've made and how I fixed them
by MaximeHeckel on Tuesday October 13, 2020 @06:43PM
(#24771156)
Hey, OP/author here, I do use prismJS under the hood, a flavor of it: prism-react-renderer, so it might indeed remove the traces of Prism.
Agree that it's a mess of div and spans, but it does the job.