[{"data":1,"prerenderedAt":505},["ShallowReactive",2],{"series-\u002Fseries\u002Fcreate-a-blog-with-vitepress-and-vue-js-from-scratch":3,"series-context-\u002Fseries\u002Fcreate-a-blog-with-vitepress-and-vue-js-from-scratch":259,"series-chapters-\u002Fseries\u002Fcreate-a-blog-with-vitepress-and-vue-js-from-scratch":492},{"id":4,"title":5,"body":6,"contentId":235,"date":236,"description":237,"extension":238,"github":239,"meetTheInstructor":242,"meta":243,"navigation":244,"part":245,"path":246,"rawbody":247,"robots":245,"schemaOrg":245,"seo":248,"seriesSlug":249,"sitemap":250,"stem":253,"subtitle":254,"topics":255,"__hash__":258},"series\u002Fseries\u002Fcreate-a-blog-with-vitepress-and-vue-js-from-scratch.md","Create a Blog with VitePress and Vue.js from Scratch",{"type":7,"value":8,"toc":230},"minimark",[9,13,29,45,184,195,206,213,216,219,224],[10,11,12],"p",{},"Hello and welcome! 👋",[10,14,15,16,20,21,24,25,28],{},"You're about to embark on the \"Create a ",[17,18,19],"strong",{},"Blog"," with ",[17,22,23],{},"VitePress"," and ",[17,26,27],{},"Vue.js"," from Scratch\" series!",[10,30,31,32,40,41,44],{},"Throughout this journey, we will construct a practical blog from the ground up using ",[33,34,38],"a",{"href":35,"rel":36},"https:\u002F\u002Fvitepress.dev\u002F",[37],"nofollow",[17,39,23],{},". We will explore a range of topics from initial configuration to deploying on ",[17,42,43],{},"Cloudflare Pages",", including:",[46,47,48,74,84,90,104,110,120,130,140,152,169,175],"ul",{},[49,50,51,54,55,58,59,24,66,73],"li",{},[17,52,53],{},"Getting Started with VitePress: Project Setup and Essentials",": Learn to set up a fresh ",[17,56,57],{},"VitePress project"," by incorporating ",[33,60,63],{"href":61,"rel":62},"https:\u002F\u002Ftailwindcss.com\u002F",[37],[17,64,65],{},"Tailwind CSS",[33,67,70],{"href":68,"rel":69},"https:\u002F\u002Fgithub.com\u002Funplugin\u002Funplugin-vue-components",[37],[17,71,72],{},"unplugin-vue-components"," for an enhanced development process.",[49,75,76,79,80],{},[17,77,78],{},"From Default to Custom: Building a VitePress Blog Theme",": We will entirely remove the default theme and create a personalized theme. ",[81,82,83],"em",{},"You'll be surprised by its simplicity!",[49,85,86,89],{},[17,87,88],{},"Optimize Your VitePress Blog's Architecture Design",": Discover how to organize code and design your blog for scalability and maintainability.",[49,91,92,95,96,103],{},[17,93,94],{},"Implementing Blog Index with VitePress and Tailwind CSS",": Create a list of blog posts. This will introduce ",[33,97,100],{"href":98,"rel":99},"https:\u002F\u002Fvitepress.dev\u002Fguide\u002Fdata-loading",[37],[17,101,102],{},"data loaders from VitePress",".",[49,105,106,109],{},[17,107,108],{},"Single Blog Rendering in VitePress with Tailwind Typography",": Create a page dedicated to reading each blog post.",[49,111,112,115,116,119],{},[17,113,114],{},"Deploy VitePress Blog Globally with Cloudflare Pages",": Integrate ",[17,117,118],{},"SEO metadata"," for improved search engine visibility, eliminating the need for manual updates.",[49,121,122,125,126,129],{},[17,123,124],{},"Showcase Your GitHub Projects on Your VitePress Blog",": Develop a page to display your ",[17,127,128],{},"GitHub"," endeavors, extending the use of data loaders and demonstrating their flexibility.",[49,131,132,135,136,139],{},[17,133,134],{},"Creating Open Graph Images Automatically for Each Blog Post",": Efficiently create ",[17,137,138],{},"Open Graph images"," for each post, saving time and enhancing appeal.",[49,141,142,144,145,151],{},[17,143,114],{},": Seamlessly deploy your blog to ",[33,146,149],{"href":147,"rel":148},"https:\u002F\u002Fpages.cloudflare.com\u002F",[37],[17,150,43],{},", achieving this in just a few clicks!",[49,153,154,157,158,20,161,168],{},[17,155,156],{},"Ensure Blog Quality with Playwright Automated Testing",": Implement ",[17,159,160],{},"end-to-end testing",[33,162,165],{"href":163,"rel":164},"https:\u002F\u002Fplaywright.dev\u002F",[37],[17,166,167],{},"Playwright"," to ensure your blog functions as expected.",[49,170,171,174],{},[17,172,173],{},"An Internal Refactor for the Future Growth of our Blog",": Prepare your blog for future growth by refactoring the codebase, ensuring it remains maintainable and scalable.",[49,176,177,180,181,183],{},[17,178,179],{},"Migrating Our VitePress Blog to Tailwind CSS Version 4",": Upgrade our blog to the latest version of ",[17,182,65],{}," to leverage its new features and improvements.",[10,185,186,187,190,191,194],{},"By the conclusion, you will possess a fully operational and captivating ",[17,188,189],{},"blog",", allowing you to concentrate exclusively on producing ",[17,192,193],{},"content",", which is paramount. Simply write and publish, as the blog will autonomously manage the rest.",[196,197,198,203],"figure",{},[199,200],"img",{"alt":201,"src":202},"Home Page of our Blog","\u002Fseries\u002Fcreate-a-blog-with-vitepress-and-vue-js-from-scratch\u002Fdeploy-vitepress-blog-globally-with-cloudflare-pages\u002Fvitepress-home.png",[204,205,201],"figcaption",{},[10,207,208,209,212],{},"This series offers a detailed, step-by-step ",[17,210,211],{},"guide",". Rest assured, each aspect will be thoroughly elucidated, from selecting to implementing every feature. While each feature will be minimal and focused on the core, this does not mean we will forgo creating a visually pleasing and functional blog.",[10,214,215],{},"Should you have any inquiries, please feel free to engage in the comments section under each article.",[10,217,218],{},"I hope you find this series truly enjoyable! 🚀",[220,221,223],"h2",{"id":222},"chapters","Chapters",[225,226],"series-chapters-list",{"className":227},[228,229],"mx-auto","max-w-5xl",{"title":231,"searchDepth":232,"depth":232,"links":233},"",2,[234],{"id":222,"depth":232,"text":223},"43c95b33-041c-4108-ab98-0d21ef60ed7f","2024-10-10","Build a dynamic blog with VitePress and Vue.js from scratch. Learn setup, SEO, and deployment for a seamless blogging experience.","md",{"name":240,"repository":241},"garabit","barbapapazes\u002Fgarabit","I create this series because \u003Cstrong>VitePress\u003C\u002Fstrong> is way more powerful than it seems at the first glance. I was amazed by the \u003Cstrong>flexibility\u003C\u002Fstrong> and the \u003Cstrong>simplicity\u003C\u002Fstrong> of the tool while building my blog and wanted the community to know about it.",{},true,null,"\u002Fseries\u002Fcreate-a-blog-with-vitepress-and-vue-js-from-scratch","---\ncontentId: 43c95b33-041c-4108-ab98-0d21ef60ed7f\ntitle: Create a Blog with VitePress and Vue.js from Scratch\nsubtitle: A new perspective on blogging with VitePress and Vue.js\ndescription: Build a dynamic blog with VitePress and Vue.js from scratch. Learn setup, SEO, and deployment for a seamless blogging experience.\ndate: 2024-10-10\ntopics:\n  - vuejs\n  - vitepress\n  - blog\ngithub:\n  name: garabit\n  repository: barbapapazes\u002Fgarabit\nmeetTheInstructor: I create this series because \u003Cstrong>VitePress\u003C\u002Fstrong> is way more powerful than it seems at the first glance. I was amazed by the \u003Cstrong>flexibility\u003C\u002Fstrong> and the \u003Cstrong>simplicity\u003C\u002Fstrong> of the tool while building my blog and wanted the community to know about it.\nseriesSlug: create-a-blog-with-vitepress-and-vue-js-from-scratch\n---\n\nHello and welcome! 👋\n\nYou're about to embark on the \"Create a **Blog** with **VitePress** and **Vue.js** from Scratch\" series!\n\nThroughout this journey, we will construct a practical blog from the ground up using [**VitePress**](https:\u002F\u002Fvitepress.dev\u002F). We will explore a range of topics from initial configuration to deploying on **Cloudflare Pages**, including:\n\n- **Getting Started with VitePress: Project Setup and Essentials**: Learn to set up a fresh **VitePress project** by incorporating [**Tailwind CSS**](https:\u002F\u002Ftailwindcss.com\u002F) and [**unplugin-vue-components**](https:\u002F\u002Fgithub.com\u002Funplugin\u002Funplugin-vue-components) for an enhanced development process.\n- **From Default to Custom: Building a VitePress Blog Theme**: We will entirely remove the default theme and create a personalized theme. _You'll be surprised by its simplicity!_\n- **Optimize Your VitePress Blog's Architecture Design**: Discover how to organize code and design your blog for scalability and maintainability.\n- **Implementing Blog Index with VitePress and Tailwind CSS**: Create a list of blog posts. This will introduce [**data loaders from VitePress**](https:\u002F\u002Fvitepress.dev\u002Fguide\u002Fdata-loading).\n- **Single Blog Rendering in VitePress with Tailwind Typography**: Create a page dedicated to reading each blog post.\n- **Deploy VitePress Blog Globally with Cloudflare Pages**: Integrate **SEO metadata** for improved search engine visibility, eliminating the need for manual updates.\n- **Showcase Your GitHub Projects on Your VitePress Blog**: Develop a page to display your **GitHub** endeavors, extending the use of data loaders and demonstrating their flexibility.\n- **Creating Open Graph Images Automatically for Each Blog Post**: Efficiently create **Open Graph images** for each post, saving time and enhancing appeal.\n- **Deploy VitePress Blog Globally with Cloudflare Pages**: Seamlessly deploy your blog to [**Cloudflare Pages**](https:\u002F\u002Fpages.cloudflare.com\u002F), achieving this in just a few clicks!\n- **Ensure Blog Quality with Playwright Automated Testing**: Implement **end-to-end testing** with [**Playwright**](https:\u002F\u002Fplaywright.dev\u002F) to ensure your blog functions as expected.\n- **An Internal Refactor for the Future Growth of our Blog**: Prepare your blog for future growth by refactoring the codebase, ensuring it remains maintainable and scalable.\n- **Migrating Our VitePress Blog to Tailwind CSS Version 4**: Upgrade our blog to the latest version of **Tailwind CSS** to leverage its new features and improvements.\n\nBy the conclusion, you will possess a fully operational and captivating **blog**, allowing you to concentrate exclusively on producing **content**, which is paramount. Simply write and publish, as the blog will autonomously manage the rest.\n\n![Home Page of our Blog](\u002Fseries\u002Fcreate-a-blog-with-vitepress-and-vue-js-from-scratch\u002Fdeploy-vitepress-blog-globally-with-cloudflare-pages\u002Fvitepress-home.png)\n\nThis series offers a detailed, step-by-step **guide**. Rest assured, each aspect will be thoroughly elucidated, from selecting to implementing every feature. While each feature will be minimal and focused on the core, this does not mean we will forgo creating a visually pleasing and functional blog.\n\nShould you have any inquiries, please feel free to engage in the comments section under each article.\n\nI hope you find this series truly enjoyable! 🚀\n\n## Chapters\n\n::series-chapters-list\n---\nclass: mx-auto max-w-5xl\n---\n::\n",{"title":5,"description":237},"create-a-blog-with-vitepress-and-vue-js-from-scratch",{"loc":246,"images":251},[252],{"loc":202},"series\u002Fcreate-a-blog-with-vitepress-and-vue-js-from-scratch","A new perspective on blogging with VitePress and Vue.js",[256,257,189],"vuejs","vitepress","H9cubHgLKM0Siblzkwf7mDsFVYr2CLbh_ciFOpQrSVk",{"overview":260,"chapters":406},{"id":4,"title":5,"body":261,"contentId":235,"date":236,"description":237,"extension":238,"github":399,"meetTheInstructor":242,"meta":400,"navigation":244,"part":245,"path":246,"rawbody":247,"robots":245,"schemaOrg":245,"seo":401,"seriesSlug":249,"sitemap":402,"stem":253,"subtitle":254,"topics":405,"__hash__":258},{"type":7,"value":262,"toc":396},[263,265,273,282,371,377,383,387,389,391,393],[10,264,12],{},[10,266,15,267,20,269,24,271,28],{},[17,268,19],{},[17,270,23],{},[17,272,27],{},[10,274,31,275,40,280,44],{},[33,276,278],{"href":35,"rel":277},[37],[17,279,23],{},[17,281,43],{},[46,283,284,300,306,310,319,323,329,335,341,350,361,365],{},[49,285,286,54,288,58,290,24,295,73],{},[17,287,53],{},[17,289,57],{},[33,291,293],{"href":61,"rel":292},[37],[17,294,65],{},[33,296,298],{"href":68,"rel":297},[37],[17,299,72],{},[49,301,302,79,304],{},[17,303,78],{},[81,305,83],{},[49,307,308,89],{},[17,309,88],{},[49,311,312,95,314,103],{},[17,313,94],{},[33,315,317],{"href":98,"rel":316},[37],[17,318,102],{},[49,320,321,109],{},[17,322,108],{},[49,324,325,115,327,119],{},[17,326,114],{},[17,328,118],{},[49,330,331,125,333,129],{},[17,332,124],{},[17,334,128],{},[49,336,337,135,339,139],{},[17,338,134],{},[17,340,138],{},[49,342,343,144,345,151],{},[17,344,114],{},[33,346,348],{"href":147,"rel":347},[37],[17,349,43],{},[49,351,352,157,354,20,356,168],{},[17,353,156],{},[17,355,160],{},[33,357,359],{"href":163,"rel":358},[37],[17,360,167],{},[49,362,363,174],{},[17,364,173],{},[49,366,367,180,369,183],{},[17,368,179],{},[17,370,65],{},[10,372,186,373,190,375,194],{},[17,374,189],{},[17,376,193],{},[196,378,379,381],{},[199,380],{"alt":201,"src":202},[204,382,201],{},[10,384,208,385,212],{},[17,386,211],{},[10,388,215],{},[10,390,218],{},[220,392,223],{"id":222},[225,394],{"className":395},[228,229],{"title":231,"searchDepth":232,"depth":232,"links":397},[398],{"id":222,"depth":232,"text":223},{"name":240,"repository":241},{},{"title":5,"description":237},{"loc":246,"images":403},[404],{"loc":202},[256,257,189],[407,414,420,427,434,441,449,456,463,470,477,485],{"contentId":408,"title":53,"description":409,"path":410,"part":411,"github":412,"topics":245},"b1b99d95-ac6d-4f25-a121-0851988102a2","From setup to styling with Tailwind CSS and automatic Vue imports, build your content-driven site effortlessly.","\u002Fseries\u002Fcreate-a-blog-with-vitepress-and-vue-js-from-scratch\u002Fgetting-started-with-vitepress-project-setup-and-essentials",1,{"branch":413},"01.project-initialization",{"contentId":415,"title":78,"description":416,"path":417,"part":232,"github":418,"topics":245},"172f2a41-2f7c-44e9-855d-322adc536279","Step-by-step VitePress theme customization: guide to building a unique theme layout, adding Markdown content, and removing defaults.","\u002Fseries\u002Fcreate-a-blog-with-vitepress-and-vue-js-from-scratch\u002Ffrom-default-to-custom-building-a-vitepress-blog-theme",{"branch":419},"02.the-basics-for-a-custom-theme",{"contentId":421,"title":88,"description":422,"path":423,"part":424,"github":425,"topics":245},"900d11a5-ff68-4cc9-8ace-66a5cb1577fa","Discover how to optimize your VitePress blog's architecture design with scalable solutions and efficient Vite plugin integration.","\u002Fseries\u002Fcreate-a-blog-with-vitepress-and-vue-js-from-scratch\u002Foptimize-your-vitepress-blog-architecture-design",3,{"branch":426},"03.define-the-design-of-the-blog-architecture",{"contentId":428,"title":94,"description":429,"path":430,"part":431,"github":432,"topics":245},"4d93a3c5-f3ff-4ff6-a569-5234ef805850","Learn to create a list of blog articles using VitePress, a crucial feature for any content-centric website. Utilize data loaders to load articles.","\u002Fseries\u002Fcreate-a-blog-with-vitepress-and-vue-js-from-scratch\u002Fimplementing-blog-index-with-vitepress-and-tailwind-css",4,{"branch":433},"04.comprehensive-guide-to-listing-blog-articles",{"contentId":435,"title":108,"description":436,"path":437,"part":438,"github":439,"topics":245},"15b9a49c-b9fb-4d76-a08d-2acaf55ff205","Enhance your VitePress blog with Tailwind Typography. Learn to render markdown beautifully with syntax highlights.","\u002Fseries\u002Fcreate-a-blog-with-vitepress-and-vue-js-from-scratch\u002Fsingle-blog-rendering-in-vitepress-with-tailwind-typography",5,{"branch":440},"05.read-a-single-blog-article",{"contentId":442,"title":443,"description":444,"path":445,"part":446,"github":447,"topics":245},"66af9aaf-d6d3-4151-a51b-806835988340","Enhance Website Visibility: SEO Metadata and Sitemap","Enhance website traffic through strategic SEO metadata and sitemaps for improved indexing. Learn how to automate metadata generation for each page.","\u002Fseries\u002Fcreate-a-blog-with-vitepress-and-vue-js-from-scratch\u002Fenhance-website-visibility-seo-metadata-and-sitemap",6,{"branch":448},"06.seo-metadata-and-sitemap",{"contentId":450,"title":124,"description":451,"path":452,"part":453,"github":454,"topics":245},"a4a933b8-07a5-4587-ad54-c3f9e30cbf45","Enhance your VitePress blog with GitHub projects. Learn API data retrieval and how to display your projects on your blog.","\u002Fseries\u002Fcreate-a-blog-with-vitepress-and-vue-js-from-scratch\u002Fshowcase-your-github-projects-on-your-vitepress-blog",7,{"branch":455},"07.showcase-your-github-projects",{"contentId":457,"title":134,"description":458,"path":459,"part":460,"github":461,"topics":245},"c76a349e-a495-4890-ab05-3e8b6bb90add","Learn how to dynamically generate Open Graph images for each blog post, enhancing the visual appeal when sharing content on social media.","\u002Fseries\u002Fcreate-a-blog-with-vitepress-and-vue-js-from-scratch\u002Fcreating-open-graph-images-automatically-for-each-blog-post",8,{"branch":462},"08.automatically-generated-open-graph-images",{"contentId":464,"title":114,"description":465,"path":466,"part":467,"github":468,"topics":245},"c05ae463-c5ae-4c43-872d-bb05263c7f74","Deploy the blog to Cloudflare Pages for global accessibility. Discover how to deploy the blog to Cloudflare Pages and share it worldwide with ease.","\u002Fseries\u002Fcreate-a-blog-with-vitepress-and-vue-js-from-scratch\u002Fdeploy-vitepress-blog-globally-with-cloudflare-pages",9,{"branch":469},"09.share-the-blog-globally",{"contentId":471,"title":156,"description":472,"path":473,"part":474,"github":475,"topics":245},"aa5392e0-6287-4673-9365-34313f0af1fa","Enhance web development with Playwright-induced automated testing. Elevate blog quality through comprehensive end-to-end and SEO tests.","\u002Fseries\u002Fcreate-a-blog-with-vitepress-and-vue-js-from-scratch\u002Fensure-blog-quality-with-playwright-automated-testing",10,{"branch":476},"10.automate-testing",{"contentId":478,"title":479,"description":480,"path":481,"part":482,"github":483,"topics":245},"5b1b6117-14f0-4f1d-ba13-5b3583f341bf","An Internal Refactor for the Future Growth of Our Blog","Prepare your blog for future growth by refactoring the codebase to ensure it remains maintainable and scalable.","\u002Fseries\u002Fcreate-a-blog-with-vitepress-and-vue-js-from-scratch\u002Fan-internal-refactor-for-the-future-growth-of-our-blog",11,{"branch":484},"11.internal-refactor",{"contentId":486,"title":179,"description":487,"path":488,"part":489,"github":490,"topics":245},"3499bbd1-20a6-43f0-9bb7-be1da2bb6eac","A step-by-step guide on upgrading our VitePress blog to Tailwind CSS 4.0 to leverage its latest features and improvements.","\u002Fseries\u002Fcreate-a-blog-with-vitepress-and-vue-js-from-scratch\u002Fmigrating-our-vitepress-blog-to-tailwind-css-version-4",12,{"branch":491},"12.migration-to-tailwind-css-4",[493,494,495,496,497,498,499,500,501,502,503,504],{"contentId":408,"title":53,"description":409,"path":410,"part":411,"topics":245},{"contentId":415,"title":78,"description":416,"path":417,"part":232,"topics":245},{"contentId":421,"title":88,"description":422,"path":423,"part":424,"topics":245},{"contentId":428,"title":94,"description":429,"path":430,"part":431,"topics":245},{"contentId":435,"title":108,"description":436,"path":437,"part":438,"topics":245},{"contentId":442,"title":443,"description":444,"path":445,"part":446,"topics":245},{"contentId":450,"title":124,"description":451,"path":452,"part":453,"topics":245},{"contentId":457,"title":134,"description":458,"path":459,"part":460,"topics":245},{"contentId":464,"title":114,"description":465,"path":466,"part":467,"topics":245},{"contentId":471,"title":156,"description":472,"path":473,"part":474,"topics":245},{"contentId":478,"title":479,"description":480,"path":481,"part":482,"topics":245},{"contentId":486,"title":179,"description":487,"path":488,"part":489,"topics":245},1795016665735]