1:"$Sreact.fragment" 2:I[1478,["545","static/chunks/c16f53c3-5b47b7f1ae12d8f6.js","874","static/chunks/874-efe6736574b279d5.js","768","static/chunks/768-c6008bfbf640a278.js","504","static/chunks/504-a0a4db25bcf4ca38.js","177","static/chunks/app/layout-d5498033162812f9.js"],"ThemeProviders"] 3:I[9243,["545","static/chunks/c16f53c3-5b47b7f1ae12d8f6.js","874","static/chunks/874-efe6736574b279d5.js","768","static/chunks/768-c6008bfbf640a278.js","504","static/chunks/504-a0a4db25bcf4ca38.js","177","static/chunks/app/layout-d5498033162812f9.js"],""] 4:I[7392,["545","static/chunks/c16f53c3-5b47b7f1ae12d8f6.js","874","static/chunks/874-efe6736574b279d5.js","768","static/chunks/768-c6008bfbf640a278.js","504","static/chunks/504-a0a4db25bcf4ca38.js","177","static/chunks/app/layout-d5498033162812f9.js"],"KBarSearchProvider"] 5:I[6874,["874","static/chunks/874-efe6736574b279d5.js","63","static/chunks/63-cc4af6db38b88fdc.js","909","static/chunks/app/blog/%5B...slug%5D/page-739363f7539431ce.js"],""] 6:I[6322,["545","static/chunks/c16f53c3-5b47b7f1ae12d8f6.js","874","static/chunks/874-efe6736574b279d5.js","768","static/chunks/768-c6008bfbf640a278.js","504","static/chunks/504-a0a4db25bcf4ca38.js","177","static/chunks/app/layout-d5498033162812f9.js"],"default"] 7:I[4159,["545","static/chunks/c16f53c3-5b47b7f1ae12d8f6.js","874","static/chunks/874-efe6736574b279d5.js","768","static/chunks/768-c6008bfbf640a278.js","504","static/chunks/504-a0a4db25bcf4ca38.js","177","static/chunks/app/layout-d5498033162812f9.js"],"KBarButton"] 8:I[1762,["545","static/chunks/c16f53c3-5b47b7f1ae12d8f6.js","874","static/chunks/874-efe6736574b279d5.js","768","static/chunks/768-c6008bfbf640a278.js","504","static/chunks/504-a0a4db25bcf4ca38.js","177","static/chunks/app/layout-d5498033162812f9.js"],"default"] 9:I[2692,["545","static/chunks/c16f53c3-5b47b7f1ae12d8f6.js","874","static/chunks/874-efe6736574b279d5.js","768","static/chunks/768-c6008bfbf640a278.js","504","static/chunks/504-a0a4db25bcf4ca38.js","177","static/chunks/app/layout-d5498033162812f9.js"],"default"] a:I[7555,[],""] b:I[1295,[],""] d:I[9665,[],"OutletBoundary"] 10:I[9665,[],"ViewportBoundary"] 12:I[9665,[],"MetadataBoundary"] 14:I[6614,[],""] :HL["/_next/static/media/7cba1811e3c25a15-s.p.woff2","font",{"crossOrigin":"","type":"font/woff2"}] :HL["/_next/static/css/9be69a079df6f545.css","style"] :HL["/_next/static/css/1fc26ab6e29d1d13.css","style"] :HL["/_next/static/css/7246298b30c42979.css","style"] 0:{"P":null,"b":"ZcYmhag92068i8wJuhHoR","p":"","c":["","blog","new-features-in-v1"],"i":false,"f":[[["",{"children":["blog",{"children":[["slug","new-features-in-v1","c"],{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/9be69a079df6f545.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/css/1fc26ab6e29d1d13.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en-us","className":"__variable_bc0dcf scroll-smooth","suppressHydrationWarning":true,"children":[["$","link",null,{"rel":"apple-touch-icon","sizes":"76x76","href":"/static/favicons/apple-touch-icon.png"}],["$","link",null,{"rel":"icon","type":"image/png","sizes":"32x32","href":"/static/favicons/favicon-32x32.png"}],["$","link",null,{"rel":"icon","type":"image/png","sizes":"16x16","href":"/static/favicons/favicon-16x16.png"}],["$","link",null,{"rel":"manifest","href":"/static/favicons/site.webmanifest"}],["$","link",null,{"rel":"mask-icon","href":"/static/favicons/safari-pinned-tab.svg","color":"#5bbad5"}],["$","meta",null,{"name":"msapplication-TileColor","content":"#000000"}],["$","meta",null,{"name":"theme-color","media":"(prefers-color-scheme: light)","content":"#fff"}],["$","meta",null,{"name":"theme-color","media":"(prefers-color-scheme: dark)","content":"#000"}],["$","link",null,{"rel":"alternate","type":"application/rss+xml","href":"/feed.xml"}],["$","body",null,{"className":"bg-white pl-[calc(100vw-100%)] text-black antialiased dark:bg-gray-950 dark:text-white","children":["$","$L2",null,{"children":[["$undefined","$undefined","$undefined",["$","$L3",null,{"async":true,"defer":true,"src":"https://analytics.umami.is/script.js"}],"$undefined","$undefined"],["$","section",null,{"className":"mx-auto max-w-3xl px-4 sm:px-6 xl:max-w-5xl xl:px-0","children":[["$","$L4",null,{"kbarConfig":{"searchDocumentsPath":"/search.json"},"children":[["$","header",null,{"className":"flex items-center w-full bg-white dark:bg-gray-950 justify-between py-10","children":[["$","$L5",null,{"className":"break-words","href":"/","aria-label":"PromptLab","children":["$","div",null,{"className":"flex items-center justify-between","children":[["$","div",null,{"className":"mr-3","children":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","xmlnsXlink":"http://www.w3.org/1999/xlink","width":53.87,"height":43.61,"viewBox":"344.564 330.278 111.737 91.218","children":[["$","defs",null,{"children":[["$","linearGradient",null,{"id":"logo_svg__b","x1":420.97,"x2":420.97,"y1":331.28,"y2":418.5,"gradientUnits":"userSpaceOnUse","children":[["$","stop",null,{"offset":"0%","style":{"stopColor":"#06b6d4","stopOpacity":1}}],["$","stop",null,{"offset":"100%","style":{"stopColor":"#67e8f9","stopOpacity":1}}]]}],["$","linearGradient",null,{"id":"logo_svg__d","x1":377.89,"x2":377.89,"y1":331.28,"y2":418.5,"gradientUnits":"userSpaceOnUse","children":[["$","stop",null,{"offset":"0%","style":{"stopColor":"#06b6d4","stopOpacity":1}}],["$","stop",null,{"offset":"100%","style":{"stopColor":"#67e8f9","stopOpacity":1}}]]}],["$","path",null,{"id":"logo_svg__a","d":"M453.3 331.28v28.57l-64.66 58.65v-30.08z"}],["$","path",null,{"id":"logo_svg__c","d":"M410.23 331.28v28.57l-64.67 58.65v-30.08z"}]]}],["$","use",null,{"xlinkHref":"#logo_svg__a","fill":"url(#logo_svg__b)"}],["$","use",null,{"xlinkHref":"#logo_svg__c","fill":"url(#logo_svg__d)"}]]}]}],["$","div",null,{"className":"hidden h-6 text-2xl font-semibold sm:block","children":"PromptLab"}]]}]}],["$","div",null,{"className":"flex items-center space-x-4 leading-5 sm:-mr-6 sm:space-x-6","children":[["$","div",null,{"className":"no-scrollbar hidden max-w-40 items-center gap-x-4 overflow-x-auto sm:flex md:max-w-72 lg:max-w-96","children":[["$","$L5","Blog",{"className":"hover:text-primary-500 dark:hover:text-primary-400 m-1 font-medium text-gray-900 dark:text-gray-100","href":"/blog","children":"Blog"}],["$","$L5","Tags",{"className":"hover:text-primary-500 dark:hover:text-primary-400 m-1 font-medium text-gray-900 dark:text-gray-100","href":"/tags","children":"Tags"}],["$","$L5","Projects",{"className":"hover:text-primary-500 dark:hover:text-primary-400 m-1 font-medium text-gray-900 dark:text-gray-100","href":"/projects","children":"Projects"}],["$","$L5","About",{"className":"hover:text-primary-500 dark:hover:text-primary-400 m-1 font-medium text-gray-900 dark:text-gray-100","href":"/about","children":"About"}]]}],["$","$L6",null,{"courses":[{"id":"js-101","title":"JavaScript Basics","modules":[{"id":"module-1","title":"JavaScript Fundamentals","topics":[{"id":"topic-1","title":"Introduction to JavaScript","slug":"javascript-basics/intro","order":1},{"id":"topic-2","title":"Variables and Data Types","slug":"javascript-basics/variables","order":2}]},{"id":"module-2","title":"DOM Manipulation","topics":[{"id":"topic-1","title":"Introduction to DOM","slug":"javascript-basics/dom/intro-to-dom","order":1},{"id":"topic-2","title":"DOM Events","slug":"javascript-basics/dom/events","order":2}]}]},{"id":"ai-agents-101","title":"Building AI Agents & Workflows","modules":[{"id":"module-1","title":"Introduction & Motivation","topics":[{"id":"topic-1","title":"What Are AI Agents?","slug":"ai-agents-workflows/intro","order":1},{"id":"topic-2","title":"Why Build on Existing LLMs?","slug":"ai-agents-workflows/why-build-on-llms","order":2}]},{"id":"module-2","title":"Core Concepts in Prompting","topics":[{"id":"topic-1","title":"Anatomy of a Prompt","slug":"ai-agents-workflows/prompting/anatomy-of-prompt","order":1},{"id":"topic-2","title":"Prompt Styles","slug":"ai-agents-workflows/prompting/prompt-styles","order":2},{"id":"topic-3","title":"Advanced Techniques","slug":"ai-agents-workflows/prompting/advanced-techniques","order":3}]},{"id":"module-3","title":"Retrieval & RAG Theory","topics":[{"id":"topic-1","title":"What Are Embeddings?","slug":"ai-agents-workflows/retrieval/what-are-embeddings","order":1},{"id":"topic-2","title":"Vector Stores and Indexing Strategies","slug":"ai-agents-workflows/retrieval/vector-stores","order":2},{"id":"topic-3","title":"RAG Pipeline","slug":"ai-agents-workflows/retrieval/rag-pipeline","order":3}]},{"id":"module-5","title":"AI Workflows & Orchestration","topics":[{"id":"topic-1","title":"Chaining vs. Orchestrating vs. Scheduling Tasks","slug":"ai-agents-workflows/workflows/chaining-orchestration","order":1},{"id":"topic-2","title":"MLOps for LLM-Based Pipelines","slug":"ai-agents-workflows/workflows/mlops-overview","order":2},{"id":"topic-3","title":"Monitoring & Evaluation Metrics","slug":"ai-agents-workflows/workflows/monitoring-evaluation","order":3}]},{"id":"module-4","title":"Agent Architectures","topics":[{"id":"topic-1","title":"Agent Loop","slug":"ai-agents-workflows/architectures/agent-loop","order":1},{"id":"topic-2","title":"Tools & Tool-Calling Concepts","slug":"ai-agents-workflows/architectures/tools-tool-calling","order":2},{"id":"topic-3","title":"Memory Models","slug":"ai-agents-workflows/architectures/memory-models","order":3}]}]},{"id":"react-101","title":"React Fundamentals","modules":[{"id":"module-2","title":"React Components","topics":[{"id":"topic-1","title":"Understanding React Components","slug":"react-fundamentals/components","order":2},{"id":"topic-2","title":"React Hooks","slug":"react-fundamentals/hooks","order":3}]},{"id":"module-1","title":"Getting Started with React","topics":[{"id":"topic-1","title":"Introduction to React","slug":"react-fundamentals/intro","order":1}]}]}],"firstTopicSlugs":{"js-101":"javascript-basics/intro","ai-agents-101":"ai-agents-workflows/intro","react-101":"react-fundamentals/components"}}],["$","$L7",null,{"aria-label":"Search","children":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","fill":"none","viewBox":"0 0 24 24","strokeWidth":1.5,"stroke":"currentColor","className":"hover:text-primary-500 dark:hover:text-primary-400 h-6 w-6 text-gray-900 dark:text-gray-100","children":["$","path",null,{"strokeLinecap":"round","strokeLinejoin":"round","d":"M21 21l-5.197-5.197m0 0A7.5 7.5 0 105.196 5.196a7.5 7.5 0 0010.607 10.607z"}]}]}],["$","$L8",null,{}],["$","$L9",null,{}]]}]]}],["$","main",null,{"className":"mb-auto","children":["$","$La",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$Lb",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","div",null,{"className":"flex flex-col items-start justify-start md:mt-24 md:flex-row md:items-center md:justify-center md:space-x-6","children":[["$","div",null,{"className":"space-x-2 pt-6 pb-8 md:space-y-5","children":["$","h1",null,{"className":"text-6xl leading-9 font-extrabold tracking-tight text-gray-900 md:border-r-2 md:px-6 md:text-8xl md:leading-14 dark:text-gray-100","children":"404"}]}],["$","div",null,{"className":"max-w-md","children":[["$","p",null,{"className":"mb-4 text-xl leading-normal font-bold md:text-2xl","children":"Sorry we couldn't find this page."}],["$","p",null,{"className":"mb-8","children":"But dont worry, you can find plenty of other things on our homepage."}],["$","$L5",null,{"className":"focus:shadow-outline-blue inline rounded-lg border border-transparent bg-blue-600 px-4 py-2 text-sm leading-5 font-medium text-white shadow-xs transition-colors duration-150 hover:bg-blue-700 focus:outline-hidden dark:hover:bg-blue-500","href":"/","children":"Back to homepage"}]]}]]}],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]]}],["$","footer",null,{"children":["$","div",null,{"className":"mt-16 flex flex-col items-center","children":[["$","div",null,{"className":"mb-3 flex space-x-4","children":[["$","a",null,{"className":"text-sm text-gray-500 transition hover:text-gray-600","target":"_blank","rel":"noopener noreferrer","href":"mailto:naumanajmal78@gmail.com","children":[["$","span",null,{"className":"sr-only","children":"mail"}],["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 20 20","className":"hover:text-primary-500 dark:hover:text-primary-400 fill-current text-gray-700 dark:text-gray-200 h-6 w-6","children":[["$","title",null,{"children":"Mail"}],["$","path",null,{"d":"M2.003 5.884L10 9.882l7.997-3.998A2 2 0 0016 4H4a2 2 0 00-1.997 1.884z"}],["$","path",null,{"d":"M18 8.118l-8 4-8-4V14a2 2 0 002 2h12a2 2 0 002-2V8.118z"}]]}]]}],null,null,null,["$","a",null,{"className":"text-sm text-gray-500 transition hover:text-gray-600","target":"_blank","rel":"noopener noreferrer","href":"https://www.linkedin.com/in/nauman-ajmal-2485451bb/","children":[["$","span",null,{"className":"sr-only","children":"linkedin"}],["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 24 24","className":"hover:text-primary-500 dark:hover:text-primary-400 fill-current text-gray-700 dark:text-gray-200 h-6 w-6","children":[["$","title",null,{"children":"Linkedin"}],["$","path",null,{"d":"M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433a2.062 2.062 0 01-2.063-2.065 2.064 2.064 0 112.063 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"}]]}]]}],null,null,null,null,null,null]}],["$","div",null,{"className":"mb-2 flex space-x-2 text-sm text-gray-500 dark:text-gray-400","children":[["$","div",null,{"children":"Nauman Ajmal"}],["$","div",null,{"children":" • "}],["$","div",null,{"children":"© 2025"}],["$","div",null,{"children":" • "}],["$","$L5",null,{"className":"break-words","href":"/","children":"PromptLab"}]]}]]}]}]]}]]}]}]]}]]}],{"children":["blog",["$","$1","c",{"children":[null,["$","$La",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$Lb",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":[["slug","new-features-in-v1","c"],["$","$1","c",{"children":[null,["$","$La",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$Lb",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":["$Lc","$undefined",[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/7246298b30c42979.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","$Ld",null,{"children":["$Le","$Lf",null]}]]}],{},null,false]},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,["$","$1","ribKPyDxNtRwMYRBn33jr",{"children":[["$","$L10",null,{"children":"$L11"}],["$","meta",null,{"name":"next-size-adjust","content":""}]]}],["$","$L12",null,{"children":"$L13"}]]}],false]],"m":"$undefined","G":["$14","$undefined"],"s":false,"S":true} 15:I[1839,["874","static/chunks/874-efe6736574b279d5.js","63","static/chunks/63-cc4af6db38b88fdc.js","909","static/chunks/app/blog/%5B...slug%5D/page-739363f7539431ce.js"],"default"] 16:I[2100,["874","static/chunks/874-efe6736574b279d5.js","63","static/chunks/63-cc4af6db38b88fdc.js","909","static/chunks/app/blog/%5B...slug%5D/page-739363f7539431ce.js"],"default"] 17:I[8194,["874","static/chunks/874-efe6736574b279d5.js","63","static/chunks/63-cc4af6db38b88fdc.js","909","static/chunks/app/blog/%5B...slug%5D/page-739363f7539431ce.js"],"default"] 18:I[1449,["874","static/chunks/874-efe6736574b279d5.js","63","static/chunks/63-cc4af6db38b88fdc.js","909","static/chunks/app/blog/%5B...slug%5D/page-739363f7539431ce.js"],"default"] c:[["$","script",null,{"type":"application/ld+json","dangerouslySetInnerHTML":{"__html":"{\"@context\":\"https://schema.org\",\"@type\":\"BlogPosting\",\"headline\":\"New features in v1\",\"datePublished\":\"2021-08-07T15:32:14.000Z\",\"dateModified\":\"2021-02-01T00:00:00.000Z\",\"description\":\"An overview of the new features released in v1 - code block copy, multiple authors, frontmatter layout and more\",\"image\":\"/static/images/twitter-card.png\",\"url\":\"https://tailwind-nextjs-starter-blog.vercel.app/blog/new-features-in-v1\",\"author\":[{\"@type\":\"Person\",\"name\":\"Nauman Ajmal\"}]}"}}],["$","section",null,{"className":"mx-auto max-w-3xl px-4 sm:px-6 xl:max-w-5xl xl:px-0","children":[["$","$L15",null,{}],["$","article",null,{"children":["$","div",null,{"children":[["$","header",null,{"children":["$","div",null,{"className":"space-y-1 border-b border-gray-200 pb-10 text-center dark:border-gray-700","children":[["$","dl",null,{"children":["$","div",null,{"children":[["$","dt",null,{"className":"sr-only","children":"Published on"}],["$","dd",null,{"className":"text-base leading-6 font-medium text-gray-500 dark:text-gray-400","children":["$","time",null,{"dateTime":"2021-08-07T15:32:14.000Z","children":"August 7, 2021"}]}]]}]}],["$","div",null,{"children":["$","h1",null,{"className":"text-3xl leading-9 font-extrabold tracking-tight text-gray-900 sm:text-4xl sm:leading-10 md:text-5xl md:leading-14 dark:text-gray-100","children":"New features in v1"}]}]]}]}],["$","div",null,{"className":"grid-rows-[auto_1fr] divide-y divide-gray-200 pb-8 xl:divide-y-0 dark:divide-gray-700","children":[["$","div",null,{"className":"divide-y divide-gray-200 xl:col-span-3 xl:row-span-2 xl:pb-0 dark:divide-gray-700","children":["$","div",null,{"className":"prose dark:prose-invert max-w-none pt-10 pb-8","children":[["$","h2",null,{"className":"content-header","id":"overview","children":[["$","a",null,{"className":"break-words","href":"#overview","aria-hidden":"true","tabIndex":"-1","children":["$","span",null,{"className":"content-header-link","children":["$","svg",null,{"className":"h-5 linkicon w-5","fill":"currentColor","viewBox":"0 0 20 20","xmlns":"http://www.w3.org/2000/svg","children":[["$","path",null,{"d":"M12.232 4.232a2.5 2.5 0 0 1 3.536 3.536l-1.225 1.224a.75.75 0 0 0 1.061 1.06l1.224-1.224a4 4 0 0 0-5.656-5.656l-3 3a4 4 0 0 0 .225 5.865.75.75 0 0 0 .977-1.138 2.5 2.5 0 0 1-.142-3.667l3-3Z"}],["$","path",null,{"d":"M11.603 7.963a.75.75 0 0 0-.977 1.138 2.5 2.5 0 0 1 .142 3.667l-3 3a2.5 2.5 0 0 1-3.536-3.536l1.225-1.224a.75.75 0 0 0-1.061-1.06l-1.224 1.224a4 4 0 1 0 5.656 5.656l3-3a4 4 0 0 0-.225-5.865Z"}]]}]}]}],"Overview"]}],["$","p",null,{"children":"A post on the new features introduced in v1.0. New features:"}],["$","ul",null,{"className":"","children":[["$","li","0",{"className":"","children":[["$","a",null,{"href":"#theme-colors","children":"Theme colors"}],null]}],["$","li","1",{"className":"","children":[["$","a",null,{"href":"#xdm-mdx-compiler","children":"Xdm MDX compiler"}],null]}],["$","li","2",{"className":"","children":[["$","a",null,{"href":"#table-of-contents-component","children":"Table of contents component"}],null]}],["$","li","3",{"className":"","children":[["$","a",null,{"href":"#layouts","children":"Layouts"}],null]}],["$","li","4",{"className":"","children":[["$","a",null,{"href":"#analytics","children":"Analytics"}],null]}],["$","li","5",{"className":"","children":[["$","a",null,{"href":"#blog-comments-system","children":"Blog comments system"}],null]}],["$","li","6",{"className":"","children":[["$","a",null,{"href":"#multiple-authors","children":"Multiple authors"}],null]}],["$","li","7",{"className":"","children":[["$","a",null,{"href":"#copy-button-for-code-blocks","children":"Copy button for code blocks"}],null]}],["$","li","8",{"className":"","children":[["$","a",null,{"href":"#line-highlighting-and-line-numbers","children":"Line highlighting and line numbers"}],null]}],["$","li","9",{"className":"","children":[["$","a",null,{"href":"#newletter-component-v113","children":"Newletter component (v1.1.3)"}],null]}],["$","li","10",{"className":"","children":[["$","a",null,{"href":"#bibliography-and-citations-v121","children":"Bibliography and Citations (v1.2.1)"}],null]}],["$","li","11",{"className":"","children":[["$","a",null,{"href":"#self-hosted-font-v150","children":"Self-hosted font (v1.5.0)"}],null]}],["$","li","12",{"className":"","children":[["$","a",null,{"href":"#upgrade-guide","children":"Upgrade guide"}],null]}]]}],["$","p",null,{"children":["First load JS decreased from 43kB to 39kB despite all the new features added! ",["$","sup",null,{"children":["$","a",null,{"className":"break-words","href":"#user-content-fn-1","aria-describedby":"footnote-label","data-footnote-ref":true,"id":"user-content-fnref-1","children":"1"}]}]]}],["$","p",null,{"children":["See ",["$","a",null,{"className":"break-words","href":"#upgrade-guide","children":"upgrade guide"}]," below if you are migrating from v0 version of the template."]}],["$","h2",null,{"className":"content-header","id":"theme-colors","children":[["$","a",null,{"className":"break-words","href":"#theme-colors","aria-hidden":"true","tabIndex":"-1","children":["$","span",null,{"className":"content-header-link","children":["$","svg",null,{"className":"h-5 linkicon w-5","fill":"currentColor","viewBox":"0 0 20 20","xmlns":"http://www.w3.org/2000/svg","children":[["$","path",null,{"d":"M12.232 4.232a2.5 2.5 0 0 1 3.536 3.536l-1.225 1.224a.75.75 0 0 0 1.061 1.06l1.224-1.224a4 4 0 0 0-5.656-5.656l-3 3a4 4 0 0 0 .225 5.865.75.75 0 0 0 .977-1.138 2.5 2.5 0 0 1-.142-3.667l3-3Z"}],["$","path",null,{"d":"M11.603 7.963a.75.75 0 0 0-.977 1.138 2.5 2.5 0 0 1 .142 3.667l-3 3a2.5 2.5 0 0 1-3.536-3.536l1.225-1.224a.75.75 0 0 0-1.061-1.06l-1.224 1.224a4 4 0 1 0 5.656 5.656l3-3a4 4 0 0 0-.225-5.865Z"}]]}]}]}],"Theme colors"]}],["$","p",null,{"children":"You can easily modify the theme color by changing the primary attribute in the tailwind config file:"}],["$","div",null,{"className":"remark-code-title","children":"tailwind.config.js"}],["$","$L16",null,{"className":"language-js","children":["$","code",null,{"className":"code-highlight language-js","children":[["$","span",null,{"className":"code-line","children":[["$","span",null,{"className":"token property literal-property","children":"theme"}],["$","span",null,{"className":"token operator","children":":"}]," ",["$","span",null,{"className":"token punctuation","children":"{"}],"\n"]}],["$","span",null,{"className":"code-line","children":[" ",["$","span",null,{"className":"token property literal-property","children":"colors"}],["$","span",null,{"className":"token operator","children":":"}]," ",["$","span",null,{"className":"token punctuation","children":"{"}],"\n"]}],["$","span",null,{"className":"code-line","children":[" ",["$","span",null,{"className":"token property literal-property","children":"primary"}],["$","span",null,{"className":"token operator","children":":"}]," colors",["$","span",null,{"className":"token punctuation","children":"."}],["$","span",null,{"className":"token property-access","children":"teal"}],["$","span",null,{"className":"token punctuation","children":","}],"\n"]}],["$","span",null,{"className":"code-line","children":[" ",["$","span",null,{"className":"token property literal-property","children":"gray"}],["$","span",null,{"className":"token operator","children":":"}]," colors",["$","span",null,{"className":"token punctuation","children":"."}],["$","span",null,{"className":"token property-access","children":"neutral"}],["$","span",null,{"className":"token punctuation","children":","}],"\n"]}],["$","span",null,{"className":"code-line","children":[" ",["$","span",null,{"className":"token operator spread","children":"..."}],"\n"]}],["$","span",null,{"className":"code-line","children":[" ",["$","span",null,{"className":"token punctuation","children":"}"}],"\n"]}],["$","span",null,{"className":"code-line","children":[" ",["$","span",null,{"className":"token operator spread","children":"..."}],"\n"]}],["$","span",null,{"className":"code-line","children":[["$","span",null,{"className":"token punctuation","children":"}"}],"\n"]}]]}]}],["$","p",null,{"children":"The primary color attribute should be assigned an object with keys from 50, 100, 200 ... 900 and the corresponding color code values."}],["$","p",null,{"children":["Tailwind includes great default color palettes that can be used for theming your own website. Check out ",["$","a",null,{"className":"break-words","target":"_blank","rel":"noopener noreferrer","href":"https://tailwindcss.com/docs/customizing-colors","children":"customizing colors documentation page"}]," for the full range of options."]}],["$","p",null,{"children":["Migrating from v1? You can revert to the previous theme by setting ",["$","code",null,{"children":"primary"}]," to ",["$","code",null,{"children":"colors.sky"}]," (Tailwind 2.2.2 and above, otherwise ",["$","code",null,{"children":"colors.lightBlue"}],") and changing gray to ",["$","code",null,{"children":"colors.gray"}],"."]}],["$","p",null,{"children":["From v1.1.2+, you can also customize the style of your code blocks easily by modifying the ",["$","code",null,{"children":"css/prism.css"}]," stylesheet. Token classnames are compatible with prismjs so you can copy and adapt token styles from a prismjs stylesheet e.g. ",["$","a",null,{"className":"break-words","target":"_blank","rel":"noopener noreferrer","href":"https://github.com/PrismJS/prism-themes","children":"prism themes"}],"."]}],["$","h2",null,{"className":"content-header","id":"xdm-mdx-compiler","children":[["$","a",null,{"className":"break-words","href":"#xdm-mdx-compiler","aria-hidden":"true","tabIndex":"-1","children":["$","span",null,{"className":"content-header-link","children":["$","svg",null,{"className":"h-5 linkicon w-5","fill":"currentColor","viewBox":"0 0 20 20","xmlns":"http://www.w3.org/2000/svg","children":[["$","path",null,{"d":"M12.232 4.232a2.5 2.5 0 0 1 3.536 3.536l-1.225 1.224a.75.75 0 0 0 1.061 1.06l1.224-1.224a4 4 0 0 0-5.656-5.656l-3 3a4 4 0 0 0 .225 5.865.75.75 0 0 0 .977-1.138 2.5 2.5 0 0 1-.142-3.667l3-3Z"}],["$","path",null,{"d":"M11.603 7.963a.75.75 0 0 0-.977 1.138 2.5 2.5 0 0 1 .142 3.667l-3 3a2.5 2.5 0 0 1-3.536-3.536l1.225-1.224a.75.75 0 0 0-1.061-1.06l-1.224 1.224a4 4 0 1 0 5.656 5.656l3-3a4 4 0 0 0-.225-5.865Z"}]]}]}]}],"Xdm MDX compiler"]}],["$","p",null,{"children":["We switched the MDX bundler from ",["$","a",null,{"className":"break-words","target":"_blank","rel":"noopener noreferrer","href":"https://github.com/hashicorp/next-mdx-remote","children":"next-mdx-remote"}]," to ",["$","a",null,{"className":"break-words","target":"_blank","rel":"noopener noreferrer","href":"https://github.com/kentcdodds/mdx-bundler","children":"mdx-bundler"}],". This uses ",["$","a",null,{"className":"break-words","target":"_blank","rel":"noopener noreferrer","href":"https://github.com/wooorm/xdm","children":"xdm"}]," under the hood, the latest micromark 3 and remark, rehype libraries."]}],["$","p",null,{"children":[["$","strong",null,{"children":"Warning:"}]," If you were using custom remark or rehype libraries, please upgrade to micromark 3 compatible ones. If you are upgrading, please delete ",["$","code",null,{"children":"node_modules"}]," and ",["$","code",null,{"children":"package-lock.json"}]," to avoid having past dependencies related issues."]}],["$","p",null,{"children":[["$","a",null,{"className":"break-words","target":"_blank","rel":"noopener noreferrer","href":"https://github.com/wooorm/xdm","children":"xdm"}]," contains multiple improvements over ",["$","a",null,{"className":"break-words","target":"_blank","rel":"noopener noreferrer","href":"https://github.com/mdx-js/mdx","children":"@mdx-js/mdx"}],", the compiler used internally by next-mdx-remote, but there might be some breaking behaviour changes. Please check your markdown output to verify."]}],["$","p",null,{"children":"Some new possibilities include loading components directly in the mdx file using the import syntax and including js code which could be compiled and bundled at the build step."}],["$","p",null,{"children":"For example, the following jsx snippet can be used directly in an MDX file to render the page title component:"}],["$","$L16",null,{"className":"language-jsx","children":["$","code",null,{"className":"code-highlight language-jsx","children":[["$","span",null,{"className":"code-line","children":[["$","span",null,{"className":"token comment","children":"// Or import PageTitle from './components/PageTitle.js' if you are using js"}],"\n"]}],["$","span",null,{"className":"code-line","children":[["$","span",null,{"className":"token keyword module","children":"import"}]," ",["$","span",null,{"className":"token imports","children":["$","span",null,{"className":"token maybe-class-name","children":"PageTitle"}]}]," ",["$","span",null,{"className":"token keyword module","children":"from"}]," ",["$","span",null,{"className":"token string","children":"'./components/PageTitle.tsx'"}],"\n"]}],["$","span",null,{"className":"code-line","children":[["$","span",null,{"className":"token punctuation","children":";"}],["$","span",null,{"className":"token tag","children":[["$","span",null,{"className":"token tag","children":[["$","span",null,{"className":"token punctuation","children":"<"}],["$","span",null,{"className":"token class-name","children":"PageTitle"}]]}],["$","span",null,{"className":"token punctuation","children":">"}]]}],["$","span",null,{"className":"token plain-text","children":" Using JSX components in MDX "}],["$","span",null,{"className":"token tag","children":[["$","span",null,{"className":"token tag","children":[["$","span",null,{"className":"token punctuation","children":""}]]}],"\n"]}]]}]}],["$","p",null,{"children":["The default configuration resolves all components relative to the ",["$","code",null,{"children":"components"}]," directory."]}],["$","p",null,{"children":[["$","strong",null,{"children":"Note"}],": Components which require external image loaders also require additional esbuild configuration. Components which are dependent on global application state on lifecycle like the Nextjs ",["$","code",null,{"children":"Link"}]," component would also not work with this setup as each mdx file is built independently. For such cases, it is better to use component substitution."]}],["$","h2",null,{"className":"content-header","id":"table-of-contents-component","children":[["$","a",null,{"className":"break-words","href":"#table-of-contents-component","aria-hidden":"true","tabIndex":"-1","children":["$","span",null,{"className":"content-header-link","children":["$","svg",null,{"className":"h-5 linkicon w-5","fill":"currentColor","viewBox":"0 0 20 20","xmlns":"http://www.w3.org/2000/svg","children":[["$","path",null,{"d":"M12.232 4.232a2.5 2.5 0 0 1 3.536 3.536l-1.225 1.224a.75.75 0 0 0 1.061 1.06l1.224-1.224a4 4 0 0 0-5.656-5.656l-3 3a4 4 0 0 0 .225 5.865.75.75 0 0 0 .977-1.138 2.5 2.5 0 0 1-.142-3.667l3-3Z"}],["$","path",null,{"d":"M11.603 7.963a.75.75 0 0 0-.977 1.138 2.5 2.5 0 0 1 .142 3.667l-3 3a2.5 2.5 0 0 1-3.536-3.536l1.225-1.224a.75.75 0 0 0-1.061-1.06l-1.224 1.224a4 4 0 1 0 5.656 5.656l3-3a4 4 0 0 0-.225-5.865Z"}]]}]}]}],"Table of contents component"]}],["$","p",null,{"children":["Inspired by ",["$","a",null,{"className":"break-words","target":"_blank","rel":"noopener noreferrer","href":"https://docusaurus.io/docs/next/markdown-features/inline-toc","children":"Docusaurus"}]," and Gatsby's ",["$","a",null,{"className":"break-words","target":"_blank","rel":"noopener noreferrer","href":"https://www.gatsbyjs.com/plugins/gatsby-remark-table-of-contents/","children":"gatsby-remark-table-of-contents"}],", the ",["$","code",null,{"children":"toc"}]," variable containing all the top level headings of the document is passed to the MDX file and can be styled accordingly. To make generating a table of contents (TOC) simple, you can use the existing ",["$","code",null,{"children":"TOCInline"}]," component."]}],["$","p",null,{"children":"For example, the TOC in this post was generated with the following code:"}],["$","$L16",null,{"className":"language-jsx","children":["$","code",null,{"className":"code-highlight language-jsx","children":["$","span",null,{"className":"code-line","children":[["$","span",null,{"className":"token tag","children":[["$","span",null,{"className":"token tag","children":[["$","span",null,{"className":"token punctuation","children":"<"}],["$","span",null,{"className":"token class-name","children":"TOCInline"}]]}]," ",["$","span",null,{"className":"token attr-name","children":"toc"}],["$","span",null,{"className":"token language-javascript script","children":[["$","span",null,{"className":"token punctuation script-punctuation","children":"="}],["$","span",null,{"className":"token punctuation","children":"{"}],"props",["$","span",null,{"className":"token punctuation","children":"."}],["$","span",null,{"className":"token property-access","children":"toc"}],["$","span",null,{"className":"token punctuation","children":"}"}]]}]," ",["$","span",null,{"className":"token attr-name","children":"exclude"}],["$","span",null,{"className":"token attr-value","children":[["$","span",null,{"className":"token punctuation attr-equals","children":"="}],["$","span",null,{"className":"token punctuation","children":"\""}],"Overview",["$","span",null,{"className":"token punctuation","children":"\""}]]}]," ",["$","span",null,{"className":"token attr-name","children":"toHeading"}],["$","span",null,{"className":"token language-javascript script","children":[["$","span",null,{"className":"token punctuation script-punctuation","children":"="}],["$","span",null,{"className":"token punctuation","children":"{"}],["$","span",null,{"className":"token number","children":"2"}],["$","span",null,{"className":"token punctuation","children":"}"}]]}]," ",["$","span",null,{"className":"token punctuation","children":"/>"}]]}],"\n"]}]}]}],["$","p",null,{"children":["You can customise the headings that are displayed by configuring the ",["$","code",null,{"children":"fromHeading"}]," and ",["$","code",null,{"children":"toHeading"}]," props, or exclude particular headings by passing a string or a string array to the ",["$","code",null,{"children":"exclude"}]," prop. By default, all headings that are of depth 3 or smaller are indented. This can be configured by changing the ",["$","code",null,{"children":"indentDepth"}]," property. A ",["$","code",null,{"children":"asDisclosure"}]," prop can be used to render the TOC within an expandable disclosure element."]}],["$","p",null,{"children":"Here's the full TOC rendered in a disclosure element."}],["$","$L16",null,{"className":"language-jsx","children":["$","code",null,{"className":"code-highlight language-jsx","children":["$","span",null,{"className":"code-line","children":[["$","span",null,{"className":"token tag","children":[["$","span",null,{"className":"token tag","children":[["$","span",null,{"className":"token punctuation","children":"<"}],["$","span",null,{"className":"token class-name","children":"TOCInline"}]]}]," ",["$","span",null,{"className":"token attr-name","children":"toc"}],["$","span",null,{"className":"token language-javascript script","children":[["$","span",null,{"className":"token punctuation script-punctuation","children":"="}],["$","span",null,{"className":"token punctuation","children":"{"}],"props",["$","span",null,{"className":"token punctuation","children":"."}],["$","span",null,{"className":"token property-access","children":"toc"}],["$","span",null,{"className":"token punctuation","children":"}"}]]}]," ",["$","span",null,{"className":"token attr-name","children":"asDisclosure"}]," ",["$","span",null,{"className":"token punctuation","children":"/>"}]]}],"\n"]}]}]}],["$","details",null,{"open":true,"children":[["$","summary",null,{"className":"ml-6 pb-2 pt-2 text-xl font-bold","children":"Table of Contents"}],["$","div",null,{"className":"ml-6","children":["$","ul",null,{"className":"","children":[["$","li","0",{"className":"","children":[["$","a",null,{"href":"#overview","children":"Overview"}],null]}],["$","li","1",{"className":"","children":[["$","a",null,{"href":"#theme-colors","children":"Theme colors"}],null]}],["$","li","2",{"className":"","children":[["$","a",null,{"href":"#xdm-mdx-compiler","children":"Xdm MDX compiler"}],null]}],["$","li","3",{"className":"","children":[["$","a",null,{"href":"#table-of-contents-component","children":"Table of contents component"}],null]}],["$","li","4",{"className":"","children":[["$","a",null,{"href":"#layouts","children":"Layouts"}],["$","ul",null,{"className":"","children":[["$","li","0",{"className":"","children":[["$","a",null,{"href":"#adding-new-templates","children":"Adding new templates"}],null]}],["$","li","1",{"className":"","children":[["$","a",null,{"href":"#configuring-a-blog-post-frontmatter","children":"Configuring a blog post frontmatter"}],null]}],["$","li","2",{"className":"","children":[["$","a",null,{"href":"#extend","children":"Extend"}],null]}]]}]]}],["$","li","5",{"className":"","children":[["$","a",null,{"href":"#analytics","children":"Analytics"}],null]}],["$","li","6",{"className":"","children":[["$","a",null,{"href":"#blog-comments-system","children":"Blog comments system"}],null]}],["$","li","7",{"className":"","children":[["$","a",null,{"href":"#multiple-authors","children":"Multiple authors"}],["$","ul",null,{"className":"","children":[["$","li","0",{"className":"","children":[["$","a",null,{"href":"#multiple-authors-in-blog-post","children":"Multiple authors in blog post"}],null]}]]}]]}],["$","li","8",{"className":"","children":[["$","a",null,{"href":"#copy-button-for-code-blocks","children":"Copy button for code blocks"}],null]}],["$","li","9",{"className":"","children":[["$","a",null,{"href":"#line-highlighting-and-line-numbers","children":"Line highlighting and line numbers"}],null]}],["$","li","10",{"className":"","children":[["$","a",null,{"href":"#newletter-component-v113","children":"Newletter component (v1.1.3)"}],null]}],["$","li","11",{"className":"","children":[["$","a",null,{"href":"#bibliography-and-citations-v121","children":"Bibliography and Citations (v1.2.1)"}],null]}],["$","li","12",{"className":"","children":[["$","a",null,{"href":"#self-hosted-font-v150","children":"Self-hosted font (v1.5.0)"}],null]}],["$","li","13",{"className":"","children":[["$","a",null,{"href":"#upgrade-guide","children":"Upgrade guide"}],null]}]]}]}]]}],["$","h2",null,{"className":"content-header","id":"layouts","children":[["$","a",null,{"className":"break-words","href":"#layouts","aria-hidden":"true","tabIndex":"-1","children":["$","span",null,{"className":"content-header-link","children":["$","svg",null,{"className":"h-5 linkicon w-5","fill":"currentColor","viewBox":"0 0 20 20","xmlns":"http://www.w3.org/2000/svg","children":[["$","path",null,{"d":"M12.232 4.232a2.5 2.5 0 0 1 3.536 3.536l-1.225 1.224a.75.75 0 0 0 1.061 1.06l1.224-1.224a4 4 0 0 0-5.656-5.656l-3 3a4 4 0 0 0 .225 5.865.75.75 0 0 0 .977-1.138 2.5 2.5 0 0 1-.142-3.667l3-3Z"}],["$","path",null,{"d":"M11.603 7.963a.75.75 0 0 0-.977 1.138 2.5 2.5 0 0 1 .142 3.667l-3 3a2.5 2.5 0 0 1-3.536-3.536l1.225-1.224a.75.75 0 0 0-1.061-1.06l-1.224 1.224a4 4 0 1 0 5.656 5.656l3-3a4 4 0 0 0-.225-5.865Z"}]]}]}]}],"Layouts"]}],["$","p",null,{"children":["You can map mdx blog content to layout components by configuring the frontmatter field. For example, this post is written with the new ",["$","code",null,{"children":"PostSimple"}]," layout!"]}],["$","h3",null,{"className":"content-header","id":"adding-new-templates","children":[["$","a",null,{"className":"break-words","href":"#adding-new-templates","aria-hidden":"true","tabIndex":"-1","children":["$","span",null,{"className":"content-header-link","children":["$","svg",null,{"className":"h-5 linkicon w-5","fill":"currentColor","viewBox":"0 0 20 20","xmlns":"http://www.w3.org/2000/svg","children":[["$","path",null,{"d":"M12.232 4.232a2.5 2.5 0 0 1 3.536 3.536l-1.225 1.224a.75.75 0 0 0 1.061 1.06l1.224-1.224a4 4 0 0 0-5.656-5.656l-3 3a4 4 0 0 0 .225 5.865.75.75 0 0 0 .977-1.138 2.5 2.5 0 0 1-.142-3.667l3-3Z"}],["$","path",null,{"d":"M11.603 7.963a.75.75 0 0 0-.977 1.138 2.5 2.5 0 0 1 .142 3.667l-3 3a2.5 2.5 0 0 1-3.536-3.536l1.225-1.224a.75.75 0 0 0-1.061-1.06l-1.224 1.224a4 4 0 1 0 5.656 5.656l3-3a4 4 0 0 0-.225-5.865Z"}]]}]}]}],"Adding new templates"]}],["$","p",null,{"children":["layout templates are stored in the ",["$","code",null,{"children":"./layouts"}]," folder. You can add your React components that you want to map to markdown content in this folder. The component file name must match that specified in the markdown frontmatter ",["$","code",null,{"children":"layout"}]," field."]}],["$","p",null,{"children":["The only required field is ",["$","code",null,{"children":"children"}]," which contains the rendered MDX content, though you would probably want to pass in the frontMatter contents and render it in the template."]}],["$","p",null,{"children":["You can configure the template to take in other fields - see ",["$","code",null,{"children":"PostLayout"}]," component for an example."]}],["$","p",null,{"children":"Here's an example layout which you can further customise:"}],["$","$L16",null,{"className":"language-jsx","children":["$","code",null,{"className":"code-highlight language-jsx","children":[["$","span",null,{"className":"code-line","children":[["$","span",null,{"className":"token keyword module","children":"export"}]," ",["$","span",null,{"className":"token keyword module","children":"default"}]," ",["$","span",null,{"className":"token keyword","children":"function"}]," ",["$","span",null,{"className":"token function","children":["$","span",null,{"className":"token maybe-class-name","children":"ExampleLayout"}]}],["$","span",null,{"className":"token punctuation","children":"("}],["$","span",null,{"className":"token parameter","children":[["$","span",null,{"className":"token punctuation","children":"{"}]," frontMatter",["$","span",null,{"className":"token punctuation","children":","}]," children ",["$","span",null,{"className":"token punctuation","children":"}"}]]}],["$","span",null,{"className":"token punctuation","children":")"}]," ",["$","span",null,{"className":"token punctuation","children":"{"}],"\n"]}],["$","span",null,{"className":"code-line","children":[" ",["$","span",null,{"className":"token keyword","children":"const"}]," ",["$","span",null,{"className":"token punctuation","children":"{"}]," date",["$","span",null,{"className":"token punctuation","children":","}]," title ",["$","span",null,{"className":"token punctuation","children":"}"}]," ",["$","span",null,{"className":"token operator","children":"="}]," frontMatter\n"]}],["$","span",null,{"className":"code-line","children":"\n"}],["$","span",null,{"className":"code-line","children":[" ",["$","span",null,{"className":"token keyword control-flow","children":"return"}]," ",["$","span",null,{"className":"token punctuation","children":"("}],"\n"]}],["$","span",null,{"className":"code-line","children":[" ",["$","span",null,{"className":"token tag","children":[["$","span",null,{"className":"token tag","children":[["$","span",null,{"className":"token punctuation","children":"<"}],["$","span",null,{"className":"token class-name","children":"SectionContainer"}]]}],["$","span",null,{"className":"token punctuation","children":">"}]]}],["$","span",null,{"className":"token plain-text","children":"\n"}]]}],["$","span",null,{"className":"code-line","children":[["$","span",null,{"className":"token plain-text","children":" "}],["$","span",null,{"className":"token tag","children":[["$","span",null,{"className":"token tag","children":[["$","span",null,{"className":"token punctuation","children":"<"}],"div"]}],["$","span",null,{"className":"token punctuation","children":">"}]]}],["$","span",null,{"className":"token punctuation","children":"{"}],"date",["$","span",null,{"className":"token punctuation","children":"}"}],["$","span",null,{"className":"token tag","children":[["$","span",null,{"className":"token tag","children":[["$","span",null,{"className":"token punctuation","children":""}]]}],["$","span",null,{"className":"token plain-text","children":"\n"}]]}],["$","span",null,{"className":"code-line","children":[["$","span",null,{"className":"token plain-text","children":" "}],["$","span",null,{"className":"token tag","children":[["$","span",null,{"className":"token tag","children":[["$","span",null,{"className":"token punctuation","children":"<"}],"h1"]}],["$","span",null,{"className":"token punctuation","children":">"}]]}],["$","span",null,{"className":"token punctuation","children":"{"}],"title",["$","span",null,{"className":"token punctuation","children":"}"}],["$","span",null,{"className":"token tag","children":[["$","span",null,{"className":"token tag","children":[["$","span",null,{"className":"token punctuation","children":""}]]}],["$","span",null,{"className":"token plain-text","children":"\n"}]]}],["$","span",null,{"className":"code-line","children":[["$","span",null,{"className":"token plain-text","children":" "}],["$","span",null,{"className":"token tag","children":[["$","span",null,{"className":"token tag","children":[["$","span",null,{"className":"token punctuation","children":"<"}],"div"]}],["$","span",null,{"className":"token punctuation","children":">"}]]}],["$","span",null,{"className":"token punctuation","children":"{"}],"children",["$","span",null,{"className":"token punctuation","children":"}"}],["$","span",null,{"className":"token tag","children":[["$","span",null,{"className":"token tag","children":[["$","span",null,{"className":"token punctuation","children":""}]]}],["$","span",null,{"className":"token plain-text","children":"\n"}]]}],["$","span",null,{"className":"code-line","children":[["$","span",null,{"className":"token plain-text","children":" "}],["$","span",null,{"className":"token tag","children":[["$","span",null,{"className":"token tag","children":[["$","span",null,{"className":"token punctuation","children":""}]]}],"\n"]}],["$","span",null,{"className":"code-line","children":[" ",["$","span",null,{"className":"token punctuation","children":")"}],"\n"]}],["$","span",null,{"className":"code-line","children":[["$","span",null,{"className":"token punctuation","children":"}"}],"\n"]}]]}]}],["$","h3",null,{"className":"content-header","id":"configuring-a-blog-post-frontmatter","children":[["$","a",null,{"className":"break-words","href":"#configuring-a-blog-post-frontmatter","aria-hidden":"true","tabIndex":"-1","children":["$","span",null,{"className":"content-header-link","children":["$","svg",null,{"className":"h-5 linkicon w-5","fill":"currentColor","viewBox":"0 0 20 20","xmlns":"http://www.w3.org/2000/svg","children":[["$","path",null,{"d":"M12.232 4.232a2.5 2.5 0 0 1 3.536 3.536l-1.225 1.224a.75.75 0 0 0 1.061 1.06l1.224-1.224a4 4 0 0 0-5.656-5.656l-3 3a4 4 0 0 0 .225 5.865.75.75 0 0 0 .977-1.138 2.5 2.5 0 0 1-.142-3.667l3-3Z"}],["$","path",null,{"d":"M11.603 7.963a.75.75 0 0 0-.977 1.138 2.5 2.5 0 0 1 .142 3.667l-3 3a2.5 2.5 0 0 1-3.536-3.536l1.225-1.224a.75.75 0 0 0-1.061-1.06l-1.224 1.224a4 4 0 1 0 5.656 5.656l3-3a4 4 0 0 0-.225-5.865Z"}]]}]}]}],"Configuring a blog post frontmatter"]}],["$","p",null,{"children":["Use the ",["$","code",null,{"children":"layout"}]," frontmatter field to specify the template you want to map the markdown post to. Here's how the frontmatter of this post looks like:"]}],["$","$L16",null,{"className":"language-js","children":["$","code",null,{"className":"code-highlight language-js","children":[["$","span",null,{"className":"code-line","children":[["$","span",null,{"className":"token operator","children":"--"}],["$","span",null,{"className":"token operator","children":"-"}],"\n"]}],["$","span",null,{"className":"code-line","children":[["$","span",null,{"className":"token property literal-property","children":"title"}],["$","span",null,{"className":"token operator","children":":"}]," ",["$","span",null,{"className":"token string","children":"'New features in v1'"}],"\n"]}],["$","span",null,{"className":"code-line","children":[["$","span",null,{"className":"token property literal-property","children":"date"}],["$","span",null,{"className":"token operator","children":":"}]," ",["$","span",null,{"className":"token string","children":"'2021-05-26 '"}],"\n"]}],["$","span",null,{"className":"code-line","children":[["$","span",null,{"className":"token property literal-property","children":"tags"}],["$","span",null,{"className":"token operator","children":":"}]," ",["$","span",null,{"className":"token punctuation","children":"["}],["$","span",null,{"className":"token string","children":"'next-js'"}],["$","span",null,{"className":"token punctuation","children":","}]," ",["$","span",null,{"className":"token string","children":"'tailwind'"}],["$","span",null,{"className":"token punctuation","children":","}]," ",["$","span",null,{"className":"token string","children":"'guide'"}],["$","span",null,{"className":"token punctuation","children":"]"}],"\n"]}],["$","span",null,{"className":"code-line","children":[["$","span",null,{"className":"token property literal-property","children":"draft"}],["$","span",null,{"className":"token operator","children":":"}]," ",["$","span",null,{"className":"token boolean","children":"false"}],"\n"]}],["$","span",null,{"className":"code-line","children":[["$","span",null,{"className":"token property literal-property","children":"summary"}],["$","span",null,{"className":"token operator","children":":"}]," ",["$","span",null,{"className":"token string","children":"'Introducing the new layout features - you can map mdx blog content to layout components by configuring the frontmatter field'"}],"\n"]}],["$","span",null,{"className":"code-line","children":[["$","span",null,{"className":"token property literal-property","children":"layout"}],["$","span",null,{"className":"token operator","children":":"}]," ",["$","span",null,{"className":"token maybe-class-name","children":"PostSimple"}],"\n"]}],["$","span",null,{"className":"code-line","children":[["$","span",null,{"className":"token operator","children":"--"}],["$","span",null,{"className":"token operator","children":"-"}],"\n"]}]]}]}],["$","p",null,{"children":["You can configure the default layout in the respective page section by modifying the ",["$","code",null,{"children":"DEFAULT_LAYOUT"}]," variable. The ",["$","code",null,{"children":"DEFAULT_LAYOUT"}]," for blog posts page is set to ",["$","code",null,{"children":"PostLayout"}],"."]}],["$","h3",null,{"className":"content-header","id":"extend","children":[["$","a",null,{"className":"break-words","href":"#extend","aria-hidden":"true","tabIndex":"-1","children":["$","span",null,{"className":"content-header-link","children":["$","svg",null,{"className":"h-5 linkicon w-5","fill":"currentColor","viewBox":"0 0 20 20","xmlns":"http://www.w3.org/2000/svg","children":[["$","path",null,{"d":"M12.232 4.232a2.5 2.5 0 0 1 3.536 3.536l-1.225 1.224a.75.75 0 0 0 1.061 1.06l1.224-1.224a4 4 0 0 0-5.656-5.656l-3 3a4 4 0 0 0 .225 5.865.75.75 0 0 0 .977-1.138 2.5 2.5 0 0 1-.142-3.667l3-3Z"}],["$","path",null,{"d":"M11.603 7.963a.75.75 0 0 0-.977 1.138 2.5 2.5 0 0 1 .142 3.667l-3 3a2.5 2.5 0 0 1-3.536-3.536l1.225-1.224a.75.75 0 0 0-1.061-1.06l-1.224 1.224a4 4 0 1 0 5.656 5.656l3-3a4 4 0 0 0-.225-5.865Z"}]]}]}]}],"Extend"]}],["$","p",null,{"children":[["$","code",null,{"children":"layout"}]," is mapped to wrapper which wraps the entire MDX content."]}],["$","$L16",null,{"className":"language-jsx","children":["$","code",null,{"className":"code-highlight language-jsx","children":[["$","span",null,{"className":"code-line","children":[["$","span",null,{"className":"token keyword module","children":"export"}]," ",["$","span",null,{"className":"token keyword","children":"const"}]," ",["$","span",null,{"className":"token maybe-class-name","children":"MDXComponents"}]," ",["$","span",null,{"className":"token operator","children":"="}]," ",["$","span",null,{"className":"token punctuation","children":"{"}],"\n"]}],["$","span",null,{"className":"code-line","children":[" ",["$","span",null,{"className":"token maybe-class-name","children":"Image"}],["$","span",null,{"className":"token punctuation","children":","}],"\n"]}],["$","span",null,{"className":"code-line","children":[" ",["$","span",null,{"className":"token property literal-property","children":"a"}],["$","span",null,{"className":"token operator","children":":"}]," ",["$","span",null,{"className":"token maybe-class-name","children":"CustomLink"}],["$","span",null,{"className":"token punctuation","children":","}],"\n"]}],["$","span",null,{"className":"code-line","children":[" ",["$","span",null,{"className":"token property literal-property","children":"pre"}],["$","span",null,{"className":"token operator","children":":"}]," ",["$","span",null,{"className":"token maybe-class-name","children":"Pre"}],["$","span",null,{"className":"token punctuation","children":","}],"\n"]}],["$","span",null,{"className":"code-line","children":[" ",["$","span",null,{"className":"token function function-variable","children":"wrapper"}],["$","span",null,{"className":"token operator","children":":"}]," ",["$","span",null,{"className":"token punctuation","children":"("}],["$","span",null,{"className":"token parameter","children":[["$","span",null,{"className":"token punctuation","children":"{"}]," components",["$","span",null,{"className":"token punctuation","children":","}]," layout",["$","span",null,{"className":"token punctuation","children":","}]," ",["$","span",null,{"className":"token operator spread","children":"..."}],"rest ",["$","span",null,{"className":"token punctuation","children":"}"}]]}],["$","span",null,{"className":"token punctuation","children":")"}]," ",["$","span",null,{"className":"token operator arrow","children":"=>"}]," ",["$","span",null,{"className":"token punctuation","children":"{"}],"\n"]}],["$","span",null,{"className":"code-line","children":[" ",["$","span",null,{"className":"token keyword","children":"const"}]," ",["$","span",null,{"className":"token maybe-class-name","children":"Layout"}]," ",["$","span",null,{"className":"token operator","children":"="}]," ",["$","span",null,{"className":"token function","children":"require"}],["$","span",null,{"className":"token punctuation","children":"("}],["$","span",null,{"className":"token template-string","children":[["$","span",null,{"className":"token string template-punctuation","children":"`"}],["$","span",null,{"className":"token string","children":"../layouts/"}],["$","span",null,{"className":"token interpolation","children":[["$","span",null,{"className":"token punctuation interpolation-punctuation","children":"$${"}],"layout",["$","span",null,{"className":"token punctuation interpolation-punctuation","children":"}"}]]}],["$","span",null,{"className":"token string template-punctuation","children":"`"}]]}],["$","span",null,{"className":"token punctuation","children":")"}],["$","span",null,{"className":"token punctuation","children":"."}],["$","span",null,{"className":"token keyword module","children":"default"}],"\n"]}],["$","span",null,{"className":"code-line","children":[" ",["$","span",null,{"className":"token keyword control-flow","children":"return"}]," ",["$","span",null,{"className":"token tag","children":[["$","span",null,{"className":"token tag","children":[["$","span",null,{"className":"token punctuation","children":"<"}],["$","span",null,{"className":"token class-name","children":"Layout"}]]}]," ",["$","span",null,{"className":"token spread","children":[["$","span",null,{"className":"token punctuation","children":"{"}],["$","span",null,{"className":"token operator spread","children":"..."}],"rest",["$","span",null,{"className":"token punctuation","children":"}"}]]}]," ",["$","span",null,{"className":"token punctuation","children":"/>"}]]}],"\n"]}],["$","span",null,{"className":"code-line","children":[" ",["$","span",null,{"className":"token punctuation","children":"}"}],["$","span",null,{"className":"token punctuation","children":","}],"\n"]}],["$","span",null,{"className":"code-line","children":[["$","span",null,{"className":"token punctuation","children":"}"}],"\n"]}],["$","span",null,{"className":"code-line","children":"\n"}],["$","span",null,{"className":"code-line","children":[["$","span",null,{"className":"token keyword module","children":"export"}]," ",["$","span",null,{"className":"token keyword","children":"const"}]," ",["$","span",null,{"className":"token function function-variable","children":["$","span",null,{"className":"token maybe-class-name","children":"MDXLayoutRenderer"}]}]," ",["$","span",null,{"className":"token operator","children":"="}]," ",["$","span",null,{"className":"token punctuation","children":"("}],["$","span",null,{"className":"token parameter","children":[["$","span",null,{"className":"token punctuation","children":"{"}]," layout",["$","span",null,{"className":"token punctuation","children":","}]," mdxSource",["$","span",null,{"className":"token punctuation","children":","}]," ",["$","span",null,{"className":"token operator spread","children":"..."}],"rest ",["$","span",null,{"className":"token punctuation","children":"}"}]]}],["$","span",null,{"className":"token punctuation","children":")"}]," ",["$","span",null,{"className":"token operator arrow","children":"=>"}]," ",["$","span",null,{"className":"token punctuation","children":"{"}],"\n"]}],["$","span",null,{"className":"code-line","children":[" ",["$","span",null,{"className":"token keyword","children":"const"}]," ",["$","span",null,{"className":"token maybe-class-name","children":"MDXLayout"}]," ",["$","span",null,{"className":"token operator","children":"="}]," ",["$","span",null,{"className":"token function","children":"useMemo"}],["$","span",null,{"className":"token punctuation","children":"("}],["$","span",null,{"className":"token punctuation","children":"("}],["$","span",null,{"className":"token punctuation","children":")"}]," ",["$","span",null,{"className":"token operator arrow","children":"=>"}]," ",["$","span",null,{"className":"token function","children":"getMDXComponent"}],["$","span",null,{"className":"token punctuation","children":"("}],"mdxSource",["$","span",null,{"className":"token punctuation","children":")"}],["$","span",null,{"className":"token punctuation","children":","}]," ",["$","span",null,{"className":"token punctuation","children":"["}],"mdxSource",["$","span",null,{"className":"token punctuation","children":"]"}],["$","span",null,{"className":"token punctuation","children":")"}],"\n"]}],["$","span",null,{"className":"code-line","children":"\n"}],["$","span",null,{"className":"code-line","children":[" ",["$","span",null,{"className":"token keyword control-flow","children":"return"}]," ",["$","span",null,{"className":"token tag","children":[["$","span",null,{"className":"token tag","children":[["$","span",null,{"className":"token punctuation","children":"<"}],["$","span",null,{"className":"token class-name","children":"MDXLayout"}]]}]," ",["$","span",null,{"className":"token attr-name","children":"layout"}],["$","span",null,{"className":"token language-javascript script","children":[["$","span",null,{"className":"token punctuation script-punctuation","children":"="}],["$","span",null,{"className":"token punctuation","children":"{"}],"layout",["$","span",null,{"className":"token punctuation","children":"}"}]]}]," ",["$","span",null,{"className":"token attr-name","children":"components"}],["$","span",null,{"className":"token language-javascript script","children":[["$","span",null,{"className":"token punctuation script-punctuation","children":"="}],["$","span",null,{"className":"token punctuation","children":"{"}],["$","span",null,{"className":"token maybe-class-name","children":"MDXComponents"}],["$","span",null,{"className":"token punctuation","children":"}"}]]}]," ",["$","span",null,{"className":"token spread","children":[["$","span",null,{"className":"token punctuation","children":"{"}],["$","span",null,{"className":"token operator spread","children":"..."}],"rest",["$","span",null,{"className":"token punctuation","children":"}"}]]}]," ",["$","span",null,{"className":"token punctuation","children":"/>"}]]}],"\n"]}],["$","span",null,{"className":"code-line","children":[["$","span",null,{"className":"token punctuation","children":"}"}],"\n"]}]]}]}],["$","p",null,{"children":["Use the ",["$","code",null,{"children":"MDXLayoutRenderer"}]," component on a page where you want to accept a layout name to map to the desired layout. You need to pass the layout name from the layout folder (it has to be an exact match)."]}],["$","h2",null,{"className":"content-header","id":"analytics","children":[["$","a",null,{"className":"break-words","href":"#analytics","aria-hidden":"true","tabIndex":"-1","children":["$","span",null,{"className":"content-header-link","children":["$","svg",null,{"className":"h-5 linkicon w-5","fill":"currentColor","viewBox":"0 0 20 20","xmlns":"http://www.w3.org/2000/svg","children":[["$","path",null,{"d":"M12.232 4.232a2.5 2.5 0 0 1 3.536 3.536l-1.225 1.224a.75.75 0 0 0 1.061 1.06l1.224-1.224a4 4 0 0 0-5.656-5.656l-3 3a4 4 0 0 0 .225 5.865.75.75 0 0 0 .977-1.138 2.5 2.5 0 0 1-.142-3.667l3-3Z"}],["$","path",null,{"d":"M11.603 7.963a.75.75 0 0 0-.977 1.138 2.5 2.5 0 0 1 .142 3.667l-3 3a2.5 2.5 0 0 1-3.536-3.536l1.225-1.224a.75.75 0 0 0-1.061-1.06l-1.224 1.224a4 4 0 1 0 5.656 5.656l3-3a4 4 0 0 0-.225-5.865Z"}]]}]}]}],"Analytics"]}],["$","p",null,{"children":["The template now supports ",["$","a",null,{"className":"break-words","target":"_blank","rel":"noopener noreferrer","href":"https://plausible.io/","children":"plausible"}],", ",["$","a",null,{"className":"break-words","target":"_blank","rel":"noopener noreferrer","href":"https://simpleanalytics.com/","children":"simple analytics"}]," and google analytics. Configure ",["$","code",null,{"children":"siteMetadata.js"}]," with the settings that correspond with the desired analytics provider."]}],["$","$L16",null,{"className":"language-js","children":["$","code",null,{"className":"code-highlight language-js","children":[["$","span",null,{"className":"code-line","children":[["$","span",null,{"className":"token property literal-property","children":"analytics"}],["$","span",null,{"className":"token operator","children":":"}]," ",["$","span",null,{"className":"token punctuation","children":"{"}],"\n"]}],["$","span",null,{"className":"code-line","children":[" ",["$","span",null,{"className":"token comment","children":"// supports plausible, simpleAnalytics or googleAnalytics"}],"\n"]}],["$","span",null,{"className":"code-line","children":[" ",["$","span",null,{"className":"token property literal-property","children":"plausibleDataDomain"}],["$","span",null,{"className":"token operator","children":":"}]," ",["$","span",null,{"className":"token string","children":"''"}],["$","span",null,{"className":"token punctuation","children":","}]," ",["$","span",null,{"className":"token comment","children":"// e.g. tailwind-nextjs-starter-blog.vercel.app"}],"\n"]}],["$","span",null,{"className":"code-line","children":[" ",["$","span",null,{"className":"token property literal-property","children":"simpleAnalytics"}],["$","span",null,{"className":"token operator","children":":"}]," ",["$","span",null,{"className":"token boolean","children":"false"}],["$","span",null,{"className":"token punctuation","children":","}]," ",["$","span",null,{"className":"token comment","children":"// true or false"}],"\n"]}],["$","span",null,{"className":"code-line","children":[" ",["$","span",null,{"className":"token property literal-property","children":"googleAnalyticsId"}],["$","span",null,{"className":"token operator","children":":"}]," ",["$","span",null,{"className":"token string","children":"''"}],["$","span",null,{"className":"token punctuation","children":","}]," ",["$","span",null,{"className":"token comment","children":"// e.g. UA-000000-2 or G-XXXXXXX"}],"\n"]}],["$","span",null,{"className":"code-line","children":[" ",["$","span",null,{"className":"token punctuation","children":"}"}],["$","span",null,{"className":"token punctuation","children":","}],"\n"]}]]}]}],["$","p",null,{"children":["Custom events are also supported. You can import the ",["$","code",null,{"children":"logEvent"}]," function from ",["$","code",null,{"children":"@components/analytics/[ANALYTICS-PROVIDER]"}]," file and call it when triggering certain events of interest. ",["$","em",null,{"children":"Note"}],": Additional configuration might be required depending on the analytics provider, please check their official documentation for more information."]}],["$","h2",null,{"className":"content-header","id":"blog-comments-system","children":[["$","a",null,{"className":"break-words","href":"#blog-comments-system","aria-hidden":"true","tabIndex":"-1","children":["$","span",null,{"className":"content-header-link","children":["$","svg",null,{"className":"h-5 linkicon w-5","fill":"currentColor","viewBox":"0 0 20 20","xmlns":"http://www.w3.org/2000/svg","children":[["$","path",null,{"d":"M12.232 4.232a2.5 2.5 0 0 1 3.536 3.536l-1.225 1.224a.75.75 0 0 0 1.061 1.06l1.224-1.224a4 4 0 0 0-5.656-5.656l-3 3a4 4 0 0 0 .225 5.865.75.75 0 0 0 .977-1.138 2.5 2.5 0 0 1-.142-3.667l3-3Z"}],["$","path",null,{"d":"M11.603 7.963a.75.75 0 0 0-.977 1.138 2.5 2.5 0 0 1 .142 3.667l-3 3a2.5 2.5 0 0 1-3.536-3.536l1.225-1.224a.75.75 0 0 0-1.061-1.06l-1.224 1.224a4 4 0 1 0 5.656 5.656l3-3a4 4 0 0 0-.225-5.865Z"}]]}]}]}],"Blog comments system"]}],["$","p",null,{"children":["We have also added support for ",["$","a",null,{"className":"break-words","target":"_blank","rel":"noopener noreferrer","href":"https://github.com/laymonage/giscus","children":"giscus"}],", ",["$","a",null,{"className":"break-words","target":"_blank","rel":"noopener noreferrer","href":"https://github.com/utterance/utterances","children":"utterances"}]," or disqus. To enable, simply configure ",["$","code",null,{"children":"siteMetadata.js"}]," comments property with the desired provider and settings as specified in the config file."]}],["$","$L16",null,{"className":"language-js","children":["$","code",null,{"className":"code-highlight language-js","children":[["$","span",null,{"className":"code-line","children":[["$","span",null,{"className":"token property literal-property","children":"comment"}],["$","span",null,{"className":"token operator","children":":"}]," ",["$","span",null,{"className":"token punctuation","children":"{"}],"\n"]}],["$","span",null,{"className":"code-line","children":[" ",["$","span",null,{"className":"token comment","children":"// Select a provider and use the environment variables associated to it"}],"\n"]}],["$","span",null,{"className":"code-line","children":[" ",["$","span",null,{"className":"token comment","children":"// https://vercel.com/docs/environment-variables"}],"\n"]}],["$","span",null,{"className":"code-line","children":[" ",["$","span",null,{"className":"token property literal-property","children":"provider"}],["$","span",null,{"className":"token operator","children":":"}]," ",["$","span",null,{"className":"token string","children":"'giscus'"}],["$","span",null,{"className":"token punctuation","children":","}]," ",["$","span",null,{"className":"token comment","children":"// supported providers: giscus, utterances, disqus"}],"\n"]}],["$","span",null,{"className":"code-line","children":[" ",["$","span",null,{"className":"token property literal-property","children":"giscusConfig"}],["$","span",null,{"className":"token operator","children":":"}]," ",["$","span",null,{"className":"token punctuation","children":"{"}],"\n"]}],["$","span",null,{"className":"code-line","children":[" ",["$","span",null,{"className":"token comment","children":"// Visit the link below, and follow the steps in the 'configuration' section"}],"\n"]}],["$","span",null,{"className":"code-line","children":[" ",["$","span",null,{"className":"token comment","children":"// https://giscus.app/"}],"\n"]}],["$","span",null,{"className":"code-line","children":[" ",["$","span",null,{"className":"token property literal-property","children":"repo"}],["$","span",null,{"className":"token operator","children":":"}]," process",["$","span",null,{"className":"token punctuation","children":"."}],["$","span",null,{"className":"token property-access","children":"env"}],["$","span",null,{"className":"token punctuation","children":"."}],["$","span",null,{"className":"token constant","children":"NEXT_PUBLIC_GISCUS_REPO"}],["$","span",null,{"className":"token punctuation","children":","}],"\n"]}],["$","span",null,{"className":"code-line","children":[" ",["$","span",null,{"className":"token property literal-property","children":"repositoryId"}],["$","span",null,{"className":"token operator","children":":"}]," process",["$","span",null,{"className":"token punctuation","children":"."}],["$","span",null,{"className":"token property-access","children":"env"}],["$","span",null,{"className":"token punctuation","children":"."}],["$","span",null,{"className":"token constant","children":"NEXT_PUBLIC_GISCUS_REPOSITORY_ID"}],["$","span",null,{"className":"token punctuation","children":","}],"\n"]}],["$","span",null,{"className":"code-line","children":[" ",["$","span",null,{"className":"token property literal-property","children":"category"}],["$","span",null,{"className":"token operator","children":":"}]," process",["$","span",null,{"className":"token punctuation","children":"."}],["$","span",null,{"className":"token property-access","children":"env"}],["$","span",null,{"className":"token punctuation","children":"."}],["$","span",null,{"className":"token constant","children":"NEXT_PUBLIC_GISCUS_CATEGORY"}],["$","span",null,{"className":"token punctuation","children":","}],"\n"]}],["$","span",null,{"className":"code-line","children":[" ",["$","span",null,{"className":"token property literal-property","children":"categoryId"}],["$","span",null,{"className":"token operator","children":":"}]," process",["$","span",null,{"className":"token punctuation","children":"."}],["$","span",null,{"className":"token property-access","children":"env"}],["$","span",null,{"className":"token punctuation","children":"."}],["$","span",null,{"className":"token constant","children":"NEXT_PUBLIC_GISCUS_CATEGORY_ID"}],["$","span",null,{"className":"token punctuation","children":","}],"\n"]}],["$","span",null,{"className":"code-line","children":[" ",["$","span",null,{"className":"token property literal-property","children":"mapping"}],["$","span",null,{"className":"token operator","children":":"}]," ",["$","span",null,{"className":"token string","children":"'pathname'"}],["$","span",null,{"className":"token punctuation","children":","}]," ",["$","span",null,{"className":"token comment","children":"// supported options: pathname, url, title"}],"\n"]}],["$","span",null,{"className":"code-line","children":[" ",["$","span",null,{"className":"token property literal-property","children":"reactions"}],["$","span",null,{"className":"token operator","children":":"}]," ",["$","span",null,{"className":"token string","children":"'1'"}],["$","span",null,{"className":"token punctuation","children":","}]," ",["$","span",null,{"className":"token comment","children":"// Emoji reactions: 1 = enable / 0 = disable"}],"\n"]}],["$","span",null,{"className":"code-line","children":[" ",["$","span",null,{"className":"token comment","children":"// Send discussion metadata periodically to the parent window: 1 = enable / 0 = disable"}],"\n"]}],["$","span",null,{"className":"code-line","children":[" ",["$","span",null,{"className":"token property literal-property","children":"metadata"}],["$","span",null,{"className":"token operator","children":":"}]," ",["$","span",null,{"className":"token string","children":"'0'"}],["$","span",null,{"className":"token punctuation","children":","}],"\n"]}],["$","span",null,{"className":"code-line","children":[" ",["$","span",null,{"className":"token comment","children":"// theme example: light, dark, dark_dimmed, dark_high_contrast"}],"\n"]}],["$","span",null,{"className":"code-line","children":[" ",["$","span",null,{"className":"token comment","children":"// transparent_dark, preferred_color_scheme, custom"}],"\n"]}],["$","span",null,{"className":"code-line","children":[" ",["$","span",null,{"className":"token property literal-property","children":"theme"}],["$","span",null,{"className":"token operator","children":":"}]," ",["$","span",null,{"className":"token string","children":"'light'"}],["$","span",null,{"className":"token punctuation","children":","}],"\n"]}],["$","span",null,{"className":"code-line","children":[" ",["$","span",null,{"className":"token comment","children":"// theme when dark mode"}],"\n"]}],["$","span",null,{"className":"code-line","children":[" ",["$","span",null,{"className":"token property literal-property","children":"darkTheme"}],["$","span",null,{"className":"token operator","children":":"}]," ",["$","span",null,{"className":"token string","children":"'transparent_dark'"}],["$","span",null,{"className":"token punctuation","children":","}],"\n"]}],["$","span",null,{"className":"code-line","children":[" ",["$","span",null,{"className":"token comment","children":"// If the theme option above is set to 'custom`"}],"\n"]}],["$","span",null,{"className":"code-line","children":[" ",["$","span",null,{"className":"token comment","children":"// please provide a link below to your custom theme css file."}],"\n"]}],["$","span",null,{"className":"code-line","children":[" ",["$","span",null,{"className":"token comment","children":"// example: https://giscus.app/themes/custom_example.css"}],"\n"]}],["$","span",null,{"className":"code-line","children":[" ",["$","span",null,{"className":"token property literal-property","children":"themeURL"}],["$","span",null,{"className":"token operator","children":":"}]," ",["$","span",null,{"className":"token string","children":"''"}],["$","span",null,{"className":"token punctuation","children":","}],"\n"]}],["$","span",null,{"className":"code-line","children":[" ",["$","span",null,{"className":"token punctuation","children":"}"}],["$","span",null,{"className":"token punctuation","children":","}],"\n"]}],["$","span",null,{"className":"code-line","children":[" ",["$","span",null,{"className":"token property literal-property","children":"utterancesConfig"}],["$","span",null,{"className":"token operator","children":":"}]," ",["$","span",null,{"className":"token punctuation","children":"{"}],"\n"]}],["$","span",null,{"className":"code-line","children":[" ",["$","span",null,{"className":"token comment","children":"// Visit the link below, and follow the steps in the 'configuration' section"}],"\n"]}],["$","span",null,{"className":"code-line","children":[" ",["$","span",null,{"className":"token comment","children":"// https://utteranc.es/"}],"\n"]}],["$","span",null,{"className":"code-line","children":[" ",["$","span",null,{"className":"token property literal-property","children":"repo"}],["$","span",null,{"className":"token operator","children":":"}]," process",["$","span",null,{"className":"token punctuation","children":"."}],["$","span",null,{"className":"token property-access","children":"env"}],["$","span",null,{"className":"token punctuation","children":"."}],["$","span",null,{"className":"token constant","children":"NEXT_PUBLIC_UTTERANCES_REPO"}],["$","span",null,{"className":"token punctuation","children":","}],"\n"]}],["$","span",null,{"className":"code-line","children":[" ",["$","span",null,{"className":"token property literal-property","children":"issueTerm"}],["$","span",null,{"className":"token operator","children":":"}]," ",["$","span",null,{"className":"token string","children":"''"}],["$","span",null,{"className":"token punctuation","children":","}]," ",["$","span",null,{"className":"token comment","children":"// supported options: pathname, url, title"}],"\n"]}],["$","span",null,{"className":"code-line","children":[" ",["$","span",null,{"className":"token property literal-property","children":"label"}],["$","span",null,{"className":"token operator","children":":"}]," ",["$","span",null,{"className":"token string","children":"''"}],["$","span",null,{"className":"token punctuation","children":","}]," ",["$","span",null,{"className":"token comment","children":"// label (optional): Comment 💬"}],"\n"]}],["$","span",null,{"className":"code-line","children":[" ",["$","span",null,{"className":"token comment","children":"// theme example: github-light, github-dark, preferred-color-scheme"}],"\n"]}],["$","span",null,{"className":"code-line","children":[" ",["$","span",null,{"className":"token comment","children":"// github-dark-orange, icy-dark, dark-blue, photon-dark, boxy-light"}],"\n"]}],["$","span",null,{"className":"code-line","children":[" ",["$","span",null,{"className":"token property literal-property","children":"theme"}],["$","span",null,{"className":"token operator","children":":"}]," ",["$","span",null,{"className":"token string","children":"''"}],["$","span",null,{"className":"token punctuation","children":","}],"\n"]}],["$","span",null,{"className":"code-line","children":[" ",["$","span",null,{"className":"token comment","children":"// theme when dark mode"}],"\n"]}],["$","span",null,{"className":"code-line","children":[" ",["$","span",null,{"className":"token property literal-property","children":"darkTheme"}],["$","span",null,{"className":"token operator","children":":"}]," ",["$","span",null,{"className":"token string","children":"''"}],["$","span",null,{"className":"token punctuation","children":","}],"\n"]}],["$","span",null,{"className":"code-line","children":[" ",["$","span",null,{"className":"token punctuation","children":"}"}],["$","span",null,{"className":"token punctuation","children":","}],"\n"]}],["$","span",null,{"className":"code-line","children":[" ",["$","span",null,{"className":"token property literal-property","children":"disqus"}],["$","span",null,{"className":"token operator","children":":"}]," ",["$","span",null,{"className":"token punctuation","children":"{"}],"\n"]}],["$","span",null,{"className":"code-line","children":[" ",["$","span",null,{"className":"token comment","children":"// https://help.disqus.com/en/articles/1717111-what-s-a-shortname"}],"\n"]}],["$","span",null,{"className":"code-line","children":[" ",["$","span",null,{"className":"token property literal-property","children":"shortname"}],["$","span",null,{"className":"token operator","children":":"}]," process",["$","span",null,{"className":"token punctuation","children":"."}],["$","span",null,{"className":"token property-access","children":"env"}],["$","span",null,{"className":"token punctuation","children":"."}],["$","span",null,{"className":"token constant","children":"NEXT_PUBLIC_DISQUS_SHORTNAME"}],["$","span",null,{"className":"token punctuation","children":","}],"\n"]}],["$","span",null,{"className":"code-line","children":[" ",["$","span",null,{"className":"token punctuation","children":"}"}],["$","span",null,{"className":"token punctuation","children":","}],"\n"]}],["$","span",null,{"className":"code-line","children":[" ",["$","span",null,{"className":"token punctuation","children":"}"}],["$","span",null,{"className":"token punctuation","children":","}],"\n"]}]]}]}],["$","h2",null,{"className":"content-header","id":"multiple-authors","children":[["$","a",null,{"className":"break-words","href":"#multiple-authors","aria-hidden":"true","tabIndex":"-1","children":["$","span",null,{"className":"content-header-link","children":["$","svg",null,{"className":"h-5 linkicon w-5","fill":"currentColor","viewBox":"0 0 20 20","xmlns":"http://www.w3.org/2000/svg","children":[["$","path",null,{"d":"M12.232 4.232a2.5 2.5 0 0 1 3.536 3.536l-1.225 1.224a.75.75 0 0 0 1.061 1.06l1.224-1.224a4 4 0 0 0-5.656-5.656l-3 3a4 4 0 0 0 .225 5.865.75.75 0 0 0 .977-1.138 2.5 2.5 0 0 1-.142-3.667l3-3Z"}],["$","path",null,{"d":"M11.603 7.963a.75.75 0 0 0-.977 1.138 2.5 2.5 0 0 1 .142 3.667l-3 3a2.5 2.5 0 0 1-3.536-3.536l1.225-1.224a.75.75 0 0 0-1.061-1.06l-1.224 1.224a4 4 0 1 0 5.656 5.656l3-3a4 4 0 0 0-.225-5.865Z"}]]}]}]}],"Multiple authors"]}],["$","p",null,{"children":["Information on authors is now split from ",["$","code",null,{"children":"siteMetadata.js"}]," and stored in its own ",["$","code",null,{"children":"data/authors"}]," folder as a markdown file. Minimally, you will need to have a ",["$","code",null,{"children":"default.md"}]," file with authorship information. You can create additional files as required and the file name will be used as the reference to the author."]}],["$","p",null,{"children":"Here's how an author markdown file might look like:"}],["$","div",null,{"className":"remark-code-title","children":"default.md"}],["$","$L16",null,{"className":"language-md","children":["$","code",null,{"className":"code-highlight language-md","children":[["$","span",null,{"className":"code-line","children":["$","span",null,{"className":"token front-matter-block","children":[["$","span",null,{"className":"token punctuation","children":"---"}],"\n"]}]}],["$","span",null,{"className":"code-line","children":["$","span",null,{"className":"token front-matter-block","children":["$","span",null,{"className":"token language-yaml front-matter yaml","children":[["$","span",null,{"className":"token atrule key","children":"name"}],["$","span",null,{"className":"token punctuation","children":":"}]," Tails Azimuth\n"]}]}]}],["$","span",null,{"className":"code-line","children":["$","span",null,{"className":"token front-matter-block","children":["$","span",null,{"className":"token language-yaml front-matter yaml","children":[["$","span",null,{"className":"token atrule key","children":"avatar"}],["$","span",null,{"className":"token punctuation","children":":"}]," /static/images/avatar.png\n"]}]}]}],["$","span",null,{"className":"code-line","children":["$","span",null,{"className":"token front-matter-block","children":["$","span",null,{"className":"token language-yaml front-matter yaml","children":[["$","span",null,{"className":"token atrule key","children":"occupation"}],["$","span",null,{"className":"token punctuation","children":":"}]," Professor of Atmospheric Science\n"]}]}]}],["$","span",null,{"className":"code-line","children":["$","span",null,{"className":"token front-matter-block","children":["$","span",null,{"className":"token language-yaml front-matter yaml","children":[["$","span",null,{"className":"token atrule key","children":"company"}],["$","span",null,{"className":"token punctuation","children":":"}]," Stanford University\n"]}]}]}],["$","span",null,{"className":"code-line","children":["$","span",null,{"className":"token front-matter-block","children":["$","span",null,{"className":"token language-yaml front-matter yaml","children":[["$","span",null,{"className":"token atrule key","children":"email"}],["$","span",null,{"className":"token punctuation","children":":"}]," address@yoursite.com\n"]}]}]}],["$","span",null,{"className":"code-line","children":["$","span",null,{"className":"token front-matter-block","children":["$","span",null,{"className":"token language-yaml front-matter yaml","children":[["$","span",null,{"className":"token atrule key","children":"twitter"}],["$","span",null,{"className":"token punctuation","children":":"}]," https",["$","span",null,{"className":"token punctuation","children":":"}],"//twitter.com/Twitter\n"]}]}]}],["$","span",null,{"className":"code-line","children":["$","span",null,{"className":"token front-matter-block","children":["$","span",null,{"className":"token language-yaml front-matter yaml","children":[["$","span",null,{"className":"token atrule key","children":"linkedin"}],["$","span",null,{"className":"token punctuation","children":":"}]," https",["$","span",null,{"className":"token punctuation","children":":"}],"//www.linkedin.com\n"]}]}]}],["$","span",null,{"className":"code-line","children":["$","span",null,{"className":"token front-matter-block","children":[["$","span",null,{"className":"token language-yaml front-matter yaml","children":[["$","span",null,{"className":"token atrule key","children":"github"}],["$","span",null,{"className":"token punctuation","children":":"}]," https",["$","span",null,{"className":"token punctuation","children":":"}],"//github.com"]}],"\n"]}]}],["$","span",null,{"className":"code-line","children":[["$","span",null,{"className":"token front-matter-block","children":["$","span",null,{"className":"token punctuation","children":"---"}]}],"\n"]}],["$","span",null,{"className":"code-line","children":"\n"}],["$","span",null,{"className":"code-line","children":"A long description of yourself...\n"}]]}]}],["$","p",null,{"children":"You can use this information in multiple places across the template. For example in the about section of the page, we grab the default author information with this line of code:"}],["$","$L16",null,{"className":"language-js","children":["$","code",null,{"className":"code-highlight language-js","children":["$","span",null,{"className":"code-line","children":[["$","span",null,{"className":"token keyword","children":"const"}]," authorDetails ",["$","span",null,{"className":"token operator","children":"="}]," ",["$","span",null,{"className":"token keyword control-flow","children":"await"}]," ",["$","span",null,{"className":"token function","children":"getFileBySlug"}],["$","span",null,{"className":"token punctuation","children":"("}],["$","span",null,{"className":"token string","children":"'authors'"}],["$","span",null,{"className":"token punctuation","children":","}]," ",["$","span",null,{"className":"token punctuation","children":"["}],["$","span",null,{"className":"token string","children":"'default'"}],["$","span",null,{"className":"token punctuation","children":"]"}],["$","span",null,{"className":"token punctuation","children":")"}],"\n"]}]}]}],["$","p",null,{"children":["This is rendered in the ",["$","code",null,{"children":"AuthorLayout"}]," template."]}],["$","h3",null,{"className":"content-header","id":"multiple-authors-in-blog-post","children":[["$","a",null,{"className":"break-words","href":"#multiple-authors-in-blog-post","aria-hidden":"true","tabIndex":"-1","children":["$","span",null,{"className":"content-header-link","children":["$","svg",null,{"className":"h-5 linkicon w-5","fill":"currentColor","viewBox":"0 0 20 20","xmlns":"http://www.w3.org/2000/svg","children":[["$","path",null,{"d":"M12.232 4.232a2.5 2.5 0 0 1 3.536 3.536l-1.225 1.224a.75.75 0 0 0 1.061 1.06l1.224-1.224a4 4 0 0 0-5.656-5.656l-3 3a4 4 0 0 0 .225 5.865.75.75 0 0 0 .977-1.138 2.5 2.5 0 0 1-.142-3.667l3-3Z"}],["$","path",null,{"d":"M11.603 7.963a.75.75 0 0 0-.977 1.138 2.5 2.5 0 0 1 .142 3.667l-3 3a2.5 2.5 0 0 1-3.536-3.536l1.225-1.224a.75.75 0 0 0-1.061-1.06l-1.224 1.224a4 4 0 1 0 5.656 5.656l3-3a4 4 0 0 0-.225-5.865Z"}]]}]}]}],"Multiple authors in blog post"]}],["$","p",null,{"children":["The frontmatter of a blog post accepts an optional ",["$","code",null,{"children":"authors"}]," array field. If no field is specified, it is assumed that the default author is used. Simply pass in an array of authors to render multiple authors associated with a post."]}],["$","p",null,{"children":["For example, the following frontmatter will display the authors given by ",["$","code",null,{"children":"data/authors/default.md"}]," and ",["$","code",null,{"children":"data/authors/sparrowhawk.md"}]]}],["$","$L16",null,{"className":"language-yaml","children":["$","code",null,{"className":"code-highlight language-yaml","children":[["$","span",null,{"className":"code-line","children":[["$","span",null,{"className":"token atrule key","children":"title"}],["$","span",null,{"className":"token punctuation","children":":"}]," ",["$","span",null,{"className":"token string","children":"'My first post'"}],"\n"]}],["$","span",null,{"className":"code-line","children":[["$","span",null,{"className":"token atrule key","children":"date"}],["$","span",null,{"className":"token punctuation","children":":"}]," ",["$","span",null,{"className":"token string","children":"'2021-01-12'"}],"\n"]}],["$","span",null,{"className":"code-line","children":[["$","span",null,{"className":"token atrule key","children":"draft"}],["$","span",null,{"className":"token punctuation","children":":"}]," ",["$","span",null,{"className":"token boolean important","children":"false"}],"\n"]}],["$","span",null,{"className":"code-line","children":[["$","span",null,{"className":"token atrule key","children":"summary"}],["$","span",null,{"className":"token punctuation","children":":"}]," ",["$","span",null,{"className":"token string","children":"'My first post'"}],"\n"]}],["$","span",null,{"className":"code-line","children":[["$","span",null,{"className":"token atrule key","children":"authors"}],["$","span",null,{"className":"token punctuation","children":":"}]," ",["$","span",null,{"className":"token punctuation","children":"["}],["$","span",null,{"className":"token string","children":"'default'"}],["$","span",null,{"className":"token punctuation","children":","}]," ",["$","span",null,{"className":"token string","children":"'sparrowhawk'"}],["$","span",null,{"className":"token punctuation","children":"]"}],"\n"]}]]}]}],["$","p",null,{"children":["A demo of a multiple authors post is shown in ",["$","$L5",null,{"className":"break-words","href":"/blog/introducing-tailwind-nextjs-starter-blog","children":"Introducing Tailwind Nextjs Starter Blog post"}],"."]}],["$","h2",null,{"className":"content-header","id":"copy-button-for-code-blocks","children":[["$","a",null,{"className":"break-words","href":"#copy-button-for-code-blocks","aria-hidden":"true","tabIndex":"-1","children":["$","span",null,{"className":"content-header-link","children":["$","svg",null,{"className":"h-5 linkicon w-5","fill":"currentColor","viewBox":"0 0 20 20","xmlns":"http://www.w3.org/2000/svg","children":[["$","path",null,{"d":"M12.232 4.232a2.5 2.5 0 0 1 3.536 3.536l-1.225 1.224a.75.75 0 0 0 1.061 1.06l1.224-1.224a4 4 0 0 0-5.656-5.656l-3 3a4 4 0 0 0 .225 5.865.75.75 0 0 0 .977-1.138 2.5 2.5 0 0 1-.142-3.667l3-3Z"}],["$","path",null,{"d":"M11.603 7.963a.75.75 0 0 0-.977 1.138 2.5 2.5 0 0 1 .142 3.667l-3 3a2.5 2.5 0 0 1-3.536-3.536l1.225-1.224a.75.75 0 0 0-1.061-1.06l-1.224 1.224a4 4 0 1 0 5.656 5.656l3-3a4 4 0 0 0-.225-5.865Z"}]]}]}]}],"Copy button for code blocks"]}],["$","p",null,{"children":["Hover over a code block and you will notice a GitHub-inspired copy button! You can modify ",["$","code",null,{"children":"./components/Pre.js"}]," to further customise it. The component is passed to ",["$","code",null,{"children":"MDXComponents"}]," and modifies all ",["$","code",null,{"children":"
"}]," blocks."]}],["$","h2",null,{"className":"content-header","id":"line-highlighting-and-line-numbers","children":[["$","a",null,{"className":"break-words","href":"#line-highlighting-and-line-numbers","aria-hidden":"true","tabIndex":"-1","children":["$","span",null,{"className":"content-header-link","children":["$","svg",null,{"className":"h-5 linkicon w-5","fill":"currentColor","viewBox":"0 0 20 20","xmlns":"http://www.w3.org/2000/svg","children":[["$","path",null,{"d":"M12.232 4.232a2.5 2.5 0 0 1 3.536 3.536l-1.225 1.224a.75.75 0 0 0 1.061 1.06l1.224-1.224a4 4 0 0 0-5.656-5.656l-3 3a4 4 0 0 0 .225 5.865.75.75 0 0 0 .977-1.138 2.5 2.5 0 0 1-.142-3.667l3-3Z"}],["$","path",null,{"d":"M11.603 7.963a.75.75 0 0 0-.977 1.138 2.5 2.5 0 0 1 .142 3.667l-3 3a2.5 2.5 0 0 1-3.536-3.536l1.225-1.224a.75.75 0 0 0-1.061-1.06l-1.224 1.224a4 4 0 1 0 5.656 5.656l3-3a4 4 0 0 0-.225-5.865Z"}]]}]}]}],"Line highlighting and line numbers"]}],["$","p",null,{"children":["Line highlighting and line numbers are now supported out of the box thanks to the new ",["$","a",null,{"className":"break-words","target":"_blank","rel":"noopener noreferrer","href":"https://github.com/timlrx/rehype-prism-plus","children":"rehype-prism-plus plugin"}]]}],["$","p",null,{"children":"The following javascript code block:"}],["$","$L16",null,{"className":"language-js","children":["$","code",null,{"className":"code-highlight language-js","children":[["$","span",null,{"className":"code-line","children":[["$","span",null,{"className":"token template-string","children":[["$","span",null,{"className":"token string template-punctuation","children":"`"}],["$","span",null,{"className":"token string template-punctuation","children":"`"}]]}],["$","span",null,{"className":"token template-string","children":[["$","span",null,{"className":"token string template-punctuation","children":"`"}],["$","span",null,{"className":"token string","children":"js {1, 3-4} showLineNumbers\n"}]]}]]}],["$","span",null,{"className":"code-line","children":["$","span",null,{"className":"token template-string","children":["$","span",null,{"className":"token string","children":"var num1, num2, sum\n"}]}]}],["$","span",null,{"className":"code-line","children":["$","span",null,{"className":"token template-string","children":["$","span",null,{"className":"token string","children":"num1 = prompt('Enter first number')\n"}]}]}],["$","span",null,{"className":"code-line","children":["$","span",null,{"className":"token template-string","children":["$","span",null,{"className":"token string","children":"num2 = prompt('Enter second number')\n"}]}]}],["$","span",null,{"className":"code-line","children":["$","span",null,{"className":"token template-string","children":["$","span",null,{"className":"token string","children":"sum = parseInt(num1) + parseInt(num2) // \"+\" means \"add\"\n"}]}]}],["$","span",null,{"className":"code-line","children":["$","span",null,{"className":"token template-string","children":["$","span",null,{"className":"token string","children":"alert('Sum = ' + sum) // \"+\" means combine into a string\n"}]}]}],["$","span",null,{"className":"code-line","children":[["$","span",null,{"className":"token template-string","children":[["$","span",null,{"className":"token string"}],["$","span",null,{"className":"token string template-punctuation","children":"`"}]]}],["$","span",null,{"className":"token template-string","children":[["$","span",null,{"className":"token string template-punctuation","children":"`"}],["$","span",null,{"className":"token string template-punctuation","children":"`"}]]}],"\n"]}]]}]}],["$","p",null,{"children":"will appear as:"}],["$","$L16",null,{"className":"language-js","children":["$","code",null,{"className":"code-highlight language-js","children":[["$","span",null,{"className":"code-line line-number highlight-line","line":"1","children":[["$","span",null,{"className":"token keyword","children":"var"}]," num1",["$","span",null,{"className":"token punctuation","children":","}]," num2",["$","span",null,{"className":"token punctuation","children":","}]," sum\n"]}],["$","span",null,{"className":"code-line line-number","line":"2","children":["num1 ",["$","span",null,{"className":"token operator","children":"="}]," ",["$","span",null,{"className":"token function","children":"prompt"}],["$","span",null,{"className":"token punctuation","children":"("}],["$","span",null,{"className":"token string","children":"'Enter first number'"}],["$","span",null,{"className":"token punctuation","children":")"}],"\n"]}],["$","span",null,{"className":"code-line line-number highlight-line","line":"3","children":["num2 ",["$","span",null,{"className":"token operator","children":"="}]," ",["$","span",null,{"className":"token function","children":"prompt"}],["$","span",null,{"className":"token punctuation","children":"("}],["$","span",null,{"className":"token string","children":"'Enter second number'"}],["$","span",null,{"className":"token punctuation","children":")"}],"\n"]}],["$","span",null,{"className":"code-line line-number highlight-line","line":"4","children":["sum ",["$","span",null,{"className":"token operator","children":"="}]," ",["$","span",null,{"className":"token function","children":"parseInt"}],["$","span",null,{"className":"token punctuation","children":"("}],"num1",["$","span",null,{"className":"token punctuation","children":")"}]," ",["$","span",null,{"className":"token operator","children":"+"}]," ",["$","span",null,{"className":"token function","children":"parseInt"}],["$","span",null,{"className":"token punctuation","children":"("}],"num2",["$","span",null,{"className":"token punctuation","children":")"}]," ",["$","span",null,{"className":"token comment","children":"// \"+\" means \"add\""}],"\n"]}],["$","span",null,{"className":"code-line line-number","line":"5","children":[["$","span",null,{"className":"token function","children":"alert"}],["$","span",null,{"className":"token punctuation","children":"("}],["$","span",null,{"className":"token string","children":"'Sum = '"}]," ",["$","span",null,{"className":"token operator","children":"+"}]," sum",["$","span",null,{"className":"token punctuation","children":")"}]," ",["$","span",null,{"className":"token comment","children":"// \"+\" means combine into a string"}],"\n"]}]]}]}],["$","p",null,{"children":["To modify the styles, change the following class selectors in the ",["$","code",null,{"children":"prism.css"}]," file:"]}],["$","$L16",null,{"className":"language-css","children":["$","code",null,{"className":"code-highlight language-css","children":[["$","span",null,{"className":"code-line","children":[["$","span",null,{"className":"token selector","children":["$","span",null,{"className":"token class","children":".code-highlight"}]}]," ",["$","span",null,{"className":"token punctuation","children":"{"}],"\n"]}],["$","span",null,{"className":"code-line","children":["  ",["$","span",null,{"className":"token atrule","children":[["$","span",null,{"className":"token rule","children":"@apply"}]," float-left min-w-full",["$","span",null,{"className":"token punctuation","children":";"}]]}],"\n"]}],["$","span",null,{"className":"code-line","children":[["$","span",null,{"className":"token punctuation","children":"}"}],"\n"]}],["$","span",null,{"className":"code-line","children":"\n"}],["$","span",null,{"className":"code-line","children":[["$","span",null,{"className":"token selector","children":["$","span",null,{"className":"token class","children":".code-line"}]}]," ",["$","span",null,{"className":"token punctuation","children":"{"}],"\n"]}],["$","span",null,{"className":"code-line","children":["  ",["$","span",null,{"className":"token atrule","children":[["$","span",null,{"className":"token rule","children":"@apply"}]," -mx-4 block border-l-4 border-opacity-0 pl-4 pr-4",["$","span",null,{"className":"token punctuation","children":";"}]]}],"\n"]}],["$","span",null,{"className":"code-line","children":[["$","span",null,{"className":"token punctuation","children":"}"}],"\n"]}],["$","span",null,{"className":"code-line","children":"\n"}],["$","span",null,{"className":"code-line","children":[["$","span",null,{"className":"token selector","children":[["$","span",null,{"className":"token class","children":".code-line"}],["$","span",null,{"className":"token class","children":".inserted"}]]}]," ",["$","span",null,{"className":"token punctuation","children":"{"}],"\n"]}],["$","span",null,{"className":"code-line","children":["  ",["$","span",null,{"className":"token atrule","children":[["$","span",null,{"className":"token rule","children":"@apply"}]," bg-green-500 bg-opacity-20",["$","span",null,{"className":"token punctuation","children":";"}]]}],"\n"]}],["$","span",null,{"className":"code-line","children":[["$","span",null,{"className":"token punctuation","children":"}"}],"\n"]}],["$","span",null,{"className":"code-line","children":"\n"}],["$","span",null,{"className":"code-line","children":[["$","span",null,{"className":"token selector","children":[["$","span",null,{"className":"token class","children":".code-line"}],["$","span",null,{"className":"token class","children":".deleted"}]]}]," ",["$","span",null,{"className":"token punctuation","children":"{"}],"\n"]}],["$","span",null,{"className":"code-line","children":["  ",["$","span",null,{"className":"token atrule","children":[["$","span",null,{"className":"token rule","children":"@apply"}]," bg-red-500 bg-opacity-20",["$","span",null,{"className":"token punctuation","children":";"}]]}],"\n"]}],["$","span",null,{"className":"code-line","children":[["$","span",null,{"className":"token punctuation","children":"}"}],"\n"]}],["$","span",null,{"className":"code-line","children":"\n"}],["$","span",null,{"className":"code-line","children":[["$","span",null,{"className":"token selector","children":["$","span",null,{"className":"token class","children":".highlight-line"}]}]," ",["$","span",null,{"className":"token punctuation","children":"{"}],"\n"]}],["$","span",null,{"className":"code-line","children":["  ",["$","span",null,{"className":"token atrule","children":[["$","span",null,{"className":"token rule","children":"@apply"}]," -mx-4 border-l-4 border-primary-500 bg-gray-700 bg-opacity-50",["$","span",null,{"className":"token punctuation","children":";"}]]}],"\n"]}],["$","span",null,{"className":"code-line","children":[["$","span",null,{"className":"token punctuation","children":"}"}],"\n"]}],["$","span",null,{"className":"code-line","children":"\n"}],["$","span",null,{"className":"code-line","children":[["$","span",null,{"className":"token selector","children":[["$","span",null,{"className":"token class","children":".line-number"}],["$","span",null,{"className":"token pseudo-element","children":"::before"}]]}]," ",["$","span",null,{"className":"token punctuation","children":"{"}],"\n"]}],["$","span",null,{"className":"code-line","children":["  ",["$","span",null,{"className":"token atrule","children":[["$","span",null,{"className":"token rule","children":"@apply"}]," -ml-2 mr-4 inline-block w-4 text-right text-gray-400",["$","span",null,{"className":"token punctuation","children":";"}]]}],"\n"]}],["$","span",null,{"className":"code-line","children":["  ",["$","span",null,{"className":"token property","children":"content"}],["$","span",null,{"className":"token punctuation","children":":"}]," ",["$","span",null,{"className":"token function","children":"attr"}],["$","span",null,{"className":"token punctuation","children":"("}],"line",["$","span",null,{"className":"token punctuation","children":")"}],["$","span",null,{"className":"token punctuation","children":";"}],"\n"]}],["$","span",null,{"className":"code-line","children":[["$","span",null,{"className":"token punctuation","children":"}"}],"\n"]}]]}]}],["$","h2",null,{"className":"content-header","id":"newletter-component-v113","children":[["$","a",null,{"className":"break-words","href":"#newletter-component-v113","aria-hidden":"true","tabIndex":"-1","children":["$","span",null,{"className":"content-header-link","children":["$","svg",null,{"className":"h-5 linkicon w-5","fill":"currentColor","viewBox":"0 0 20 20","xmlns":"http://www.w3.org/2000/svg","children":[["$","path",null,{"d":"M12.232 4.232a2.5 2.5 0 0 1 3.536 3.536l-1.225 1.224a.75.75 0 0 0 1.061 1.06l1.224-1.224a4 4 0 0 0-5.656-5.656l-3 3a4 4 0 0 0 .225 5.865.75.75 0 0 0 .977-1.138 2.5 2.5 0 0 1-.142-3.667l3-3Z"}],["$","path",null,{"d":"M11.603 7.963a.75.75 0 0 0-.977 1.138 2.5 2.5 0 0 1 .142 3.667l-3 3a2.5 2.5 0 0 1-3.536-3.536l1.225-1.224a.75.75 0 0 0-1.061-1.06l-1.224 1.224a4 4 0 1 0 5.656 5.656l3-3a4 4 0 0 0-.225-5.865Z"}]]}]}]}],"Newletter component (v1.1.3)"]}],["$","p",null,{"children":"Introduced in v1.1.3, the newsletter component gives you an easy way to build an audience. It integrates with the following providers:"}],["$","ul",null,{"children":[["$","li",null,{"children":["$","a",null,{"className":"break-words","target":"_blank","rel":"noopener noreferrer","href":"https://mailchimp.com/","children":"Mailchimp"}]}],["$","li",null,{"children":["$","a",null,{"className":"break-words","target":"_blank","rel":"noopener noreferrer","href":"https://buttondown.email/","children":"Buttondown"}]}],["$","li",null,{"children":["$","a",null,{"className":"break-words","target":"_blank","rel":"noopener noreferrer","href":"https://convertkit.com/","children":"Convertkit"}]}]]}],["$","p",null,{"children":["To use it, specify the provider which you are using in the config file and add the necessary environment variables to the ",["$","code",null,{"children":".env"}]," file. For more information on the required variables, check out ",["$","code",null,{"children":".env.sample."}]]}],["$","p",null,{"children":["Two components are exported, a default ",["$","code",null,{"children":"NewsletterForm"}]," and a ",["$","code",null,{"children":"BlogNewsletterForm"}]," component, which is also passed in as an MDX component and can be used in a blog post:"]}],["$","$L16",null,{"className":"language-jsx","children":["$","code",null,{"className":"code-highlight language-jsx","children":["$","span",null,{"className":"code-line","children":[["$","span",null,{"className":"token tag","children":[["$","span",null,{"className":"token tag","children":[["$","span",null,{"className":"token punctuation","children":"<"}],["$","span",null,{"className":"token class-name","children":"BlogNewsletterForm"}]]}]," ",["$","span",null,{"className":"token attr-name","children":"title"}],["$","span",null,{"className":"token attr-value","children":[["$","span",null,{"className":"token punctuation attr-equals","children":"="}],["$","span",null,{"className":"token punctuation","children":"\""}],"Like what you are reading?",["$","span",null,{"className":"token punctuation","children":"\""}]]}]," ",["$","span",null,{"className":"token punctuation","children":"/>"}]]}],"\n"]}]}]}],["$","$L17",null,{"title":"Like what you are reading?"}],["$","p",null,{"children":["The component relies on nextjs's ",["$","a",null,{"className":"break-words","target":"_blank","rel":"noopener noreferrer","href":"https://nextjs.org/docs/api-routes/introduction","children":"API routes"}]," which requires a server-side instance of nextjs to be setup and is not compatible with a 100% static site export. Users should either self-host or use a compatible platform like Vercel or Netlify which supports this functionality."]}],["$","p",null,{"children":"A static site compatible alternative is to substitute the route in the newsletter component with a form API endpoint provider."}],["$","h2",null,{"className":"content-header","id":"bibliography-and-citations-v121","children":[["$","a",null,{"className":"break-words","href":"#bibliography-and-citations-v121","aria-hidden":"true","tabIndex":"-1","children":["$","span",null,{"className":"content-header-link","children":["$","svg",null,{"className":"h-5 linkicon w-5","fill":"currentColor","viewBox":"0 0 20 20","xmlns":"http://www.w3.org/2000/svg","children":[["$","path",null,{"d":"M12.232 4.232a2.5 2.5 0 0 1 3.536 3.536l-1.225 1.224a.75.75 0 0 0 1.061 1.06l1.224-1.224a4 4 0 0 0-5.656-5.656l-3 3a4 4 0 0 0 .225 5.865.75.75 0 0 0 .977-1.138 2.5 2.5 0 0 1-.142-3.667l3-3Z"}],["$","path",null,{"d":"M11.603 7.963a.75.75 0 0 0-.977 1.138 2.5 2.5 0 0 1 .142 3.667l-3 3a2.5 2.5 0 0 1-3.536-3.536l1.225-1.224a.75.75 0 0 0-1.061-1.06l-1.224 1.224a4 4 0 1 0 5.656 5.656l3-3a4 4 0 0 0-.225-5.865Z"}]]}]}]}],"Bibliography and Citations (v1.2.1)"]}],["$","p",null,{"children":[["$","code",null,{"children":"rehype-citation"}]," plugin is added to the xdm processing pipeline in v1.2.1. This allows you to easily format citations and insert bibliography from an existing bibtex or CSL-json file."]}],["$","p",null,{"children":"For example, the following markdown code sample:"}],["$","$L16",null,{"className":"language-md","children":["$","code",null,{"className":"code-highlight language-md","children":[["$","span",null,{"className":"code-line","children":"Standard citation [@Nash1950]\n"}],["$","span",null,{"className":"code-line","children":"In-text citations e.g. @Nash1951\n"}],["$","span",null,{"className":"code-line","children":"Multiple citations [see @Nash1950; @Nash1951, page 50]\n"}],["$","span",null,{"className":"code-line","children":"\n"}],["$","span",null,{"className":"code-line","children":[["$","span",null,{"className":"token bold","children":[["$","span",null,{"className":"token punctuation","children":"**"}],["$","span",null,{"className":"token content","children":"References:"}],["$","span",null,{"className":"token punctuation","children":"**"}]]}],"\n"]}],["$","span",null,{"className":"code-line","children":"\n"}],["$","span",null,{"className":"code-line","children":"[^ref]\n"}]]}]}],["$","p",null,{"children":"is rendered to the following:"}],["$","p",null,{"children":["Standard citation ",["$","span",null,{"id":"citation--nash1950--1","children":"(Nash, 1950)"}],["$","br",null,{}],"In-text citations e.g. ",["$","span",null,{"id":"citation--nash1951--2","children":"Nash (1951)"}],["$","br",null,{}],"Multiple citations ",["$","span",null,{"id":"citation--nash1950--nash1951--3","children":"(see Nash, 1950, 1951, p. 50)"}]]}],["$","p",null,{"children":["$","strong",null,{"children":"References:"}]}],["$","div",null,{"className":"csl-bib-body references","id":"refs","children":[["$","div",null,{"className":"csl-entry","id":"bib-nash1950","children":["Nash, J. (1950). Equilibrium points in n-person games. ",["$","i",null,{"children":"Proceedings of the National Academy of Sciences"}],", ",["$","i",null,{"children":"36"}],"(1), 48–49."]}],["$","div",null,{"className":"csl-entry","id":"bib-nash1951","children":["Nash, J. (1951). Non-cooperative games. ",["$","i",null,{"children":"Annals of Mathematics"}],", 286–295."]}]]}],["$","p",null,{"children":["A bibliography will be inserted at the end of the document, but this can be overwritten by specifying a ",["$","code",null,{"children":"[^Ref]"}]," tag at the intended location. The plugin uses APA citation formation, but also supports the following CSLs, 'apa', 'vancouver', 'harvard1', 'chicago', 'mla', or a path to a user-specified CSL file."]}],["$","p",null,{"children":["See ",["$","a",null,{"className":"break-words","target":"_blank","rel":"noopener noreferrer","href":"https://github.com/timlrx/rehype-citation","children":"rehype-citation readme"}]," for more information on the configuration options."]}],["$","h2",null,{"className":"content-header","id":"self-hosted-font-v150","children":[["$","a",null,{"className":"break-words","href":"#self-hosted-font-v150","aria-hidden":"true","tabIndex":"-1","children":["$","span",null,{"className":"content-header-link","children":["$","svg",null,{"className":"h-5 linkicon w-5","fill":"currentColor","viewBox":"0 0 20 20","xmlns":"http://www.w3.org/2000/svg","children":[["$","path",null,{"d":"M12.232 4.232a2.5 2.5 0 0 1 3.536 3.536l-1.225 1.224a.75.75 0 0 0 1.061 1.06l1.224-1.224a4 4 0 0 0-5.656-5.656l-3 3a4 4 0 0 0 .225 5.865.75.75 0 0 0 .977-1.138 2.5 2.5 0 0 1-.142-3.667l3-3Z"}],["$","path",null,{"d":"M11.603 7.963a.75.75 0 0 0-.977 1.138 2.5 2.5 0 0 1 .142 3.667l-3 3a2.5 2.5 0 0 1-3.536-3.536l1.225-1.224a.75.75 0 0 0-1.061-1.06l-1.224 1.224a4 4 0 1 0 5.656 5.656l3-3a4 4 0 0 0-.225-5.865Z"}]]}]}]}],"Self-hosted font (v1.5.0)"]}],["$","p",null,{"children":["Google font has been replaced with self-hosted font from ",["$","a",null,{"className":"break-words","target":"_blank","rel":"noopener noreferrer","href":"https://fontsource.org/","children":"Fontsource"}],". This gives the following ",["$","a",null,{"className":"break-words","target":"_blank","rel":"noopener noreferrer","href":"https://fontsource.org/docs/introduction","children":"advantages"}],":"]}],["$","blockquote",null,{"children":[["$","p",null,{"children":"Self-hosting brings significant performance gains as loading fonts from hosted services, such as Google Fonts, lead to an extra (render blocking) network request. To provide perspective, for simple websites it has been seen to double visual load times."}],["$","p",null,{"children":"Fonts remain version locked. Google often pushes updates to their fonts without notice, which may interfere with your live production projects. Manage your fonts like any other NPM dependency."}],["$","p",null,{"children":"Commit to privacy. Google does track the usage of their fonts and for those who are extremely privacy concerned, self-hosting is an alternative."}]]}],["$","p",null,{"children":["This leads to a smaller font bundle and a 0.1s faster load time (",["$","a",null,{"className":"break-words","target":"_blank","rel":"noopener noreferrer","href":"https://www.webpagetest.org/video/compare.php?tests=220201_AiDcFH_f68a69b758454dd52d8e67493fdef7da,220201_BiDcMC_bf2d53f14483814ba61e794311dfa771","children":"webpagetest comparison"}],")."]}],["$","p",null,{"children":"To change the default Inter font:"}],["$","ol",null,{"children":[["$","li",null,{"children":["Install the preferred ",["$","a",null,{"className":"break-words","target":"_blank","rel":"noopener noreferrer","href":"https://fontsource.org/fonts","children":"font"}]," - ",["$","code",null,{"children":"npm install -save @fontsource/"}]]}],["$","li",null,{"children":["Update the import at ",["$","code",null,{"children":"pages/_app.js"}],"- ",["$","code",null,{"children":"import '@fontsource/.css'"}]]}],["$","li",null,{"children":["Update the ",["$","code",null,{"children":"fontfamily"}]," property in the tailwind css config file"]}]]}],["$","h2",null,{"className":"content-header","id":"upgrade-guide","children":[["$","a",null,{"className":"break-words","href":"#upgrade-guide","aria-hidden":"true","tabIndex":"-1","children":["$","span",null,{"className":"content-header-link","children":["$","svg",null,{"className":"h-5 linkicon w-5","fill":"currentColor","viewBox":"0 0 20 20","xmlns":"http://www.w3.org/2000/svg","children":[["$","path",null,{"d":"M12.232 4.232a2.5 2.5 0 0 1 3.536 3.536l-1.225 1.224a.75.75 0 0 0 1.061 1.06l1.224-1.224a4 4 0 0 0-5.656-5.656l-3 3a4 4 0 0 0 .225 5.865.75.75 0 0 0 .977-1.138 2.5 2.5 0 0 1-.142-3.667l3-3Z"}],["$","path",null,{"d":"M11.603 7.963a.75.75 0 0 0-.977 1.138 2.5 2.5 0 0 1 .142 3.667l-3 3a2.5 2.5 0 0 1-3.536-3.536l1.225-1.224a.75.75 0 0 0-1.061-1.06l-1.224 1.224a4 4 0 1 0 5.656 5.656l3-3a4 4 0 0 0-.225-5.865Z"}]]}]}]}],"Upgrade guide"]}],["$","p",null,{"children":"There are significant portions of the code that has been changed from v0 to v1 including support for layouts and a new mdx engine."}],["$","p",null,{"children":"There's also no real reason to change if the previous one serves your needs and it might be easier to copy the component changes you are interested in to your existing blog rather than migrating everything over."}],["$","p",null,{"children":"Nonetheless, if you want to do so and have not changed much of the template, you could clone the new version and copy over the blog post over to the new template."}],["$","p",null,{"children":"Another alternative would be to pull the latest template version with the following code:"}],["$","$L16",null,{"className":"language-bash","children":["$","code",null,{"className":"code-highlight language-bash","children":[["$","span",null,{"className":"code-line","children":[["$","span",null,{"className":"token function","children":"git"}]," remote ",["$","span",null,{"className":"token function","children":"add"}]," template git@github.com:timlrx/tailwind-nextjs-starter-blog.git\n"]}],["$","span",null,{"className":"code-line","children":[["$","span",null,{"className":"token function","children":"git"}]," pull template v1 --allow-unrelated-histories\n"]}],["$","span",null,{"className":"code-line","children":[["$","span",null,{"className":"token function","children":"rm"}]," ",["$","span",null,{"className":"token parameter variable","children":"-rf"}]," node_modules\n"]}]]}]}],["$","p",null,{"children":["You can see an example of such a migration in this ",["$","a",null,{"className":"break-words","target":"_blank","rel":"noopener noreferrer","href":"https://github.com/timlrx/timlrx.com/commit/bba1c185384fd6d5cdaac15abf802fdcff027286","children":"commit"}]," for my personal blog."]}],["$","p",null,{"children":["v1 also uses ",["$","code",null,{"children":"feed.xml"}]," rather than ",["$","code",null,{"children":"index.xml"}],", to avoid some build issues with Vercel. If you are migrating you should add a redirect to ",["$","code",null,{"children":"next.config.js"}]," like so:"]}],["$","$L16",null,{"className":"language-js","children":["$","code",null,{"className":"code-highlight language-js","children":[["$","span",null,{"className":"code-line","children":[["$","span",null,{"className":"token keyword","children":"async"}]," ",["$","span",null,{"className":"token function","children":"redirects"}],["$","span",null,{"className":"token punctuation","children":"("}],["$","span",null,{"className":"token punctuation","children":")"}]," ",["$","span",null,{"className":"token punctuation","children":"{"}],"\n"]}],["$","span",null,{"className":"code-line","children":["  ",["$","span",null,{"className":"token keyword control-flow","children":"return"}]," ",["$","span",null,{"className":"token punctuation","children":"["}],"\n"]}],["$","span",null,{"className":"code-line","children":["    ",["$","span",null,{"className":"token punctuation","children":"{"}],"\n"]}],["$","span",null,{"className":"code-line","children":["      ",["$","span",null,{"className":"token property literal-property","children":"source"}],["$","span",null,{"className":"token operator","children":":"}]," ",["$","span",null,{"className":"token string","children":"'/:path/index.xml'"}],["$","span",null,{"className":"token punctuation","children":","}],"\n"]}],["$","span",null,{"className":"code-line","children":["      ",["$","span",null,{"className":"token property literal-property","children":"destination"}],["$","span",null,{"className":"token operator","children":":"}]," ",["$","span",null,{"className":"token string","children":"'/:path/feed.xml'"}],["$","span",null,{"className":"token punctuation","children":","}],"\n"]}],["$","span",null,{"className":"code-line","children":["      ",["$","span",null,{"className":"token property literal-property","children":"permanent"}],["$","span",null,{"className":"token operator","children":":"}]," ",["$","span",null,{"className":"token boolean","children":"true"}],["$","span",null,{"className":"token punctuation","children":","}],"\n"]}],["$","span",null,{"className":"code-line","children":["    ",["$","span",null,{"className":"token punctuation","children":"}"}],"\n"]}],["$","span",null,{"className":"code-line","children":["  ",["$","span",null,{"className":"token punctuation","children":"]"}],"\n"]}],["$","span",null,{"className":"code-line","children":[["$","span",null,{"className":"token punctuation","children":"}"}],"\n"]}]]}]}],["$","section",null,{"className":"footnotes","data-footnotes":true,"children":[["$","h2",null,{"className":"content-header","id":"footnote-label","children":[["$","a",null,{"className":"break-words","href":"#footnote-label","aria-hidden":"true","tabIndex":"-1","children":["$","span",null,{"className":"content-header-link","children":["$","svg",null,{"className":"h-5 linkicon w-5","fill":"currentColor","viewBox":"0 0 20 20","xmlns":"http://www.w3.org/2000/svg","children":[["$","path",null,{"d":"M12.232 4.232a2.5 2.5 0 0 1 3.536 3.536l-1.225 1.224a.75.75 0 0 0 1.061 1.06l1.224-1.224a4 4 0 0 0-5.656-5.656l-3 3a4 4 0 0 0 .225 5.865.75.75 0 0 0 .977-1.138 2.5 2.5 0 0 1-.142-3.667l3-3Z"}],["$","path",null,{"d":"M11.603 7.963a.75.75 0 0 0-.977 1.138 2.5 2.5 0 0 1 .142 3.667l-3 3a2.5 2.5 0 0 1-3.536-3.536l1.225-1.224a.75.75 0 0 0-1.061-1.06l-1.224 1.224a4 4 0 1 0 5.656 5.656l3-3a4 4 0 0 0-.225-5.865Z"}]]}]}]}],"Footnotes"]}],["$","ol",null,{"children":["$","li",null,{"id":"user-content-fn-1","children":["$","p",null,{"children":["With the new changes in Nextjs 12, first load JS increase to 45kB. ",["$","a",null,{"className":"data-footnote-backref","href":"#user-content-fnref-1","aria-label":"Back to reference 1","data-footnote-backref":"","children":"↩"}]]}]}]}]]}]]}]}],["$","div",null,{"className":"pt-6 pb-6 text-center text-gray-700 dark:text-gray-300","id":"comment","children":["$","$L18",null,{"slug":"new-features-in-v1"}]}],["$","footer",null,{"children":["$","div",null,{"className":"flex flex-col text-sm font-medium sm:flex-row sm:justify-between sm:text-base","children":[["$","div",null,{"className":"pt-4 xl:pt-8","children":["$","$L5",null,{"className":"text-primary-500 hover:text-primary-600 dark:hover:text-primary-400","href":"/blog/nested-route/introducing-multi-part-posts-with-nested-routing","aria-label":"Previous post: Introducing Multi-part Posts with Nested Routing","children":["← ","Introducing Multi-part Posts with Nested Routing"]}]}],"$undefined"]}]}]]}]]}]}]]}]]
11:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]
e:null
f:null
13:[["$","title","0",{"children":"New features in v1 | PromptLab"}],["$","meta","1",{"name":"description","content":"An overview of the new features released in v1 - code block copy, multiple authors, frontmatter layout and more"}],["$","meta","2",{"name":"robots","content":"index, follow"}],["$","meta","3",{"name":"googlebot","content":"index, follow, max-video-preview:-1, max-image-preview:large, max-snippet:-1"}],["$","link","4",{"rel":"canonical","href":"https://tailwind-nextjs-starter-blog.vercel.app/blog/new-features-in-v1"}],["$","link","5",{"rel":"alternate","type":"application/rss+xml","href":"https://tailwind-nextjs-starter-blog.vercel.app/feed.xml"}],["$","meta","6",{"property":"og:title","content":"New features in v1"}],["$","meta","7",{"property":"og:description","content":"An overview of the new features released in v1 - code block copy, multiple authors, frontmatter layout and more"}],["$","meta","8",{"property":"og:url","content":"https://tailwind-nextjs-starter-blog.vercel.app/blog/new-features-in-v1"}],["$","meta","9",{"property":"og:site_name","content":"PromptLab"}],["$","meta","10",{"property":"og:locale","content":"en_US"}],["$","meta","11",{"property":"og:image","content":"https://tailwind-nextjs-starter-blog.vercel.app/static/images/twitter-card.png"}],["$","meta","12",{"property":"og:type","content":"article"}],["$","meta","13",{"property":"article:published_time","content":"2021-08-07T15:32:14.000Z"}],["$","meta","14",{"property":"article:modified_time","content":"2021-02-01T00:00:00.000Z"}],["$","meta","15",{"property":"article:author","content":"Nauman Ajmal"}],["$","meta","16",{"name":"twitter:card","content":"summary_large_image"}],["$","meta","17",{"name":"twitter:title","content":"New features in v1"}],["$","meta","18",{"name":"twitter:description","content":"An overview of the new features released in v1 - code block copy, multiple authors, frontmatter layout and more"}],["$","meta","19",{"name":"twitter:image","content":"https://tailwind-nextjs-starter-blog.vercel.app/static/images/twitter-card.png"}]]