🪟 Windows TippsBitLocker stuck on Decrypting or Encrypting in Windows 11(17.09.2026 um 00:29 Uhr)
🕵️ SicherheitslückenCVE-2026-69110 | Microck opencode-studio up to 2.4.3 missing authentication(17.09.2026 um 03:21 Uhr)
🪟 Windows TippsBitLocker stuck on Decrypting or Encrypting in Windows 11(17.09.2026 um 00:29 Uhr)
🕵️ SicherheitslückenCVE-2026-69110 | Microck opencode-studio up to 2.4.3 missing authentication(17.09.2026 um 03:21 Uhr)
🔧 Programmierung 🕛 vor 3 Jahren 8 Min Lesezeit
0

Rebuilding my Portfolio with Next, MDX, and Contentlayer

↗ Quelle (dev.to)
🗣️ Stimme:
📑 Inhaltsübersicht




Why I Stopped Using Ghost



I liked the idea of opening up my iPad, sipping on a caramel latte in an overly-hipster Brooklyn cafe, writing a new tech post. Ghost CMS was my way to do that ( -- my favorite full stack framework


  • -- to use React within my markdown (probably won't use much JSX, but hey why not at least have it)


  • -- deployment




  • Getting Started



    I've started using the T3 CLI to make my apps these days because the stack generally is one I enjoy and I love the cohesion together.




    CODE
    npm create t3-app@latest






    Only select Tailwind, we don't need the other packages



    After installation, we can clear up the homepage




    CODE
    import { type NextPage } from 'next';
    import Head from 'next/head';
    const Home: NextPage = () => {
    return (
    <>
    <Head>
    <title>Create T3 App</title>
    <meta name="description" content="Generated by create-t3-app" />
    <link rel="icon" href="/favicon.ico" />
    </Head>
    <main className="flex min-h-screen flex-col items-center bg-gradient-to-b from-[#2e026d] to-[#15162c] pt-20">
    <h1 className="text-7xl font-bold text-white">My Cool Blog</h1>
    </main>
    </>
    );
    };

    export default Home;









    Configuring MDX



    To be able to write .mdx files, we'll need a few plugins



    • @next/mdx -- to use with Next

    • @mdx-js/loader -- required package of @next/mdx

    • @mdx-js/react -- required package of @next/mdx

    • gray-matter -- to ignore frontmatter from rendering

    • rehype-autolink-headings -- allows to add links to headings with ids on there already

    • rehype-slug -- allows to add links to headings for documents that don't already have ids

    • rehype-pretty-code -- makes code pretty with syntax highlighting, line numbers, etc

    • remark-frontmatter -- plugin to support frontmatter

    • shiki -- coding themes we can use for rendering code snippets


    CODE
    yarn add @next/mdx @mdx-js/loader @mdx-js/react gray-matter rehype-autolink-headings rehype-slug rehype-pretty-code remark-frontmatter shiki









    Setting Up Contentlayer







    CODE
    yarn add -D @tailwindcss/typography






    Add that to your tailwind.config.cjs




    CODE
    module.exports = {
    theme: {
    // ...
    },
    plugins: [
    require('@tailwindcss/typography'),
    // ...
    ],
    };






    Now, how do we actually render the blog post? Contentlayer gives us a NextJS specific hook



    We can modify some of the styles in globals.css



    First lets fix the typography




    CODE
    .prose :is(h1, h2, h3, h4, h5, h6) > a {
    @apply no-underline text-white;
    }
    .prose {
    @apply text-white;
    }






    And lets style our code plugins




    CODE
    code[data-line-numbers] {
    padding-left: 0 !important;
    padding-right: 0 !important;
    }

    code[data-line-numbers] > .line::before {
    counter-increment: line;
    content: counter(line);
    display: inline-block;
    width: 1rem;
    margin-right: 1.25rem;
    margin-left: 0.75rem;
    text-align: right;
    color: #676e95;
    }

    div[data-rehype-pretty-code-title] + pre {
    @apply !mt-0 !rounded-tl-none;
    }

    div[data-rehype-pretty-code-title] {
    @apply !mt-6 !max-w-max !rounded-t !border-b !border-b-slate-400 !bg-[#2b303b] !px-4 !py-0.5 !text-gray-300 dark:!bg-[#282c34];
    }






    Much better :)



    First Post image with styles

    Vollständiger Original-Artikel
    Den kompletten Beitrag mit allen Details direkt auf dev.to lesen.
    ↗ Original-Artikel auf dev.to lesen
    Wie bewertest du diesen Beitrag?
    1 Klick Feedback
    Teilen mit Netzwerk & Team:

    Community-Analysen & Experten-Meinungen 0

    Verfasse deine eigene Analyse, teile Workarounds oder diskutiere diesen Vorfall im Blog.
    Noch keine Community-Analyse verfasst. Markiere einen Textabschnitt oder klicke oben auf Eigene Analyse verfassen“!
    Community Pulse: Relevanz-Einschätzung
    1 Klick Experten-Votum
    🔴 Akute Relevanz 0%
    🟡 In Evaluierung 0%
    🟢 Keine Auswirkung 0%
    Spannende Innovation 0%
    Verwandte Story-Cluster & Quellen (Vektor-KI)
    Port 8095 Engine
    2 Quellen
    CVE-2026-92597 | Nodemailer up to 9.0.x Addressparser lib/addressparser input validation (EUVD-2026-81297)
    1 Quelle
    BitLocker stuck on Decrypting or Encrypting in Windows 11
    1 Quelle
    CVE-2026-92599 | hapijs joi up to 17.13.6/18.0.0-18.2.5 isoDate Joi.string.isoDate redos (EUVD-2026-81299)
    Ähnliche Beiträge
    🔍 Verwandte News

    Auch interessante Nachrichten Rebuilding my Portfolio with Next, MDX, and Contentlayer

    Thematisch verwandte Begriffe: Rebuilding, Portfolio, with, Next · 6 Treffer

    Laden...

    Beiträge werden geladen ...

    Laden...

    Videos werden geladen ...

    Laden...

    Beiträge werden geladen ...

    Laden...

    Videos werden geladen ...

    Laden...

    Beiträge werden geladen ...

    Laden...

    Videos werden geladen ...

    Laden...

    Beiträge werden geladen ...

    Laden...

    Videos werden geladen ...