[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$KiqIp5Qu8t":3,"blog-\u002Fblog\u002Fhow-i-built-my-website-using-netlify-and-hugo":52,"blogToc-\u002Fblog\u002Fhow-i-built-my-website-using-netlify-and-hugo":303,"blog-surrounding-\u002Fblog\u002Fhow-i-built-my-website-using-netlify-and-hugo":450,"blog-similar-posts-\u002Fblog\u002Fhow-i-built-my-website-using-netlify-and-hugo":459},{"id":4,"extension":5,"items":6,"meta":49,"stem":50,"__hash__":51},"menu\u002Fmenu.json","json",[7,12,16,20,24,28,32,36,41,45],{"i18nId":8,"to":9,"ariaLabel":10,"mainNavigation":11},"components.menu.home","\u002F","Home",true,{"i18nId":13,"to":14,"ariaLabel":15,"mainNavigation":11},"components.menu.about","\u002Fhire-me","About",{"i18nId":17,"to":18,"ariaLabel":19,"mainNavigation":11},"components.menu.testimonials","\u002Ftestimonials","Testimonials",{"i18nId":21,"to":22,"ariaLabel":23},"components.menu.contact","\u002Fcontact","Contact",{"i18nId":25,"to":26,"ariaLabel":27,"mainNavigation":11},"components.menu.blog","\u002Fblog","Blog",{"i18nId":29,"to":30,"ariaLabel":31,"mainNavigation":11},"components.menu.tips","\u002Fvue-tips","Vue Tips",{"i18nId":33,"to":34,"ariaLabel":35,"mainNavigation":11},"components.menu.projects","\u002Fprojects","Projects",{"i18nId":37,"to":38,"ariaLabel":39,"mainNavigation":40},"components.menu.stats","\u002Fstats","stats",false,{"i18nId":42,"to":43,"ariaLabel":44,"mainNavigation":40},"components.menu.businessCard","\u002Fbusiness-card","Business Card",{"i18nId":46,"to":47,"ariaLabel":48,"mainNavigation":40},"components.menu.publications","\u002Fpublications","Publications",{},"menu","njLT1QoRt2Dv8QWoVmH8xdTAiDywSj0bxBQdmoyWUE0",{"id":53,"title":54,"body":55,"categories":282,"cover":286,"date":287,"description":288,"extension":289,"lastUpdated":290,"meta":291,"navigation":11,"ogImage":290,"path":293,"readingTime":294,"robots":290,"schemaOrg":290,"seo":299,"sitemap":300,"stem":301,"tags":290,"__hash__":302},"blog\u002Fblog\u002Fhow-i-built-my-website-using-netlify-and-hugo\u002Findex.md","How I Built My Website With Hugo And Netlify",{"type":56,"value":57,"toc":270},"minimark",[58,70,75,80,88,97,106,109,128,132,139,142,151,159,163,175,184,199,210,213,226,231,234,238,241,245],[59,60,61,62,69],"p",{},"At the end of last year, I started working on my ",[63,64,68],"a",{"href":65,"rel":66},"https:\u002F\u002Fwww.mokkapps.de",[67],"nofollow","private portfolio website"," and researching how to build and deploy such static websites quickly.",[71,72,74],"h2",{"id":73},"the-tools","The Tools",[76,77,79],"h3",{"id":78},"hugo","Hugo",[59,81,82,83,87],{},"I discovered ",[63,84,79],{"href":85,"rel":86},"https:\u002F\u002Fgohugo.io\u002F",[67],", a viral open-source static site generator. It is speedy and flexible, and it is fun to build websites with this generator.",[59,89,90,91,96],{},"Just follow the ",[63,92,95],{"href":93,"rel":94},"https:\u002F\u002Fgohugo.io\u002Fgetting-started\u002Fquick-start\u002F",[67],"official \"Quick Start\"",", and you will be running a beautiful static website locally on your machine in less than five minutes.",[59,98,99,100,105],{},"There are many ",[63,101,104],{"href":102,"rel":103},"http:\u002F\u002Fthemes.gohugo.io\u002F",[67],"themes"," available, which are often highly customizable.",[59,107,108],{},"The basic workflow looks this way:",[110,111,112,120,125],"ul",{},[113,114,115,116],"li",{},"Serve your website locally using ",[117,118,119],"code",{},"hugo serve",[113,121,122,123],{},"Generate the static website content using ",[117,124,78],{},[113,126,127],{},"Publish the generated website content (see next chapter)",[76,129,131],{"id":130},"netlify","Netlify",[59,133,134,138],{},[63,135,131],{"href":136,"rel":137},"https:\u002F\u002Fwww.netlify.com\u002F",[67]," provides a platform to automate code to create high-performant sites and web apps. Push your code and Netlify takes care of the rest.",[59,140,141],{},"Setting up Netlify is easy if your code is already on GitHub, GitLab or Bitbucket: Select your Git provider, define which build commands should be executed and in which folder the final content is located.",[59,143,144,145,150],{},"For more details, check the ",[63,146,149],{"href":147,"rel":148},"https:\u002F\u002Fwww.netlify.com\u002Fdocs\u002F#getting-started",[67],"official \"Getting Started\" guide",".",[59,152,153,154,158],{},"Netlify provides a free subscription model, which I am currently using. Additionally, there are many additional features which you have to pay for. Check ",[63,155,157],{"href":147,"rel":156},[67],"the official Pricing page"," for more details.",[71,160,162],{"id":161},"my-setup","My Setup",[59,164,165,166,171,172,150],{},"I started using a ",[63,167,170],{"href":168,"rel":169},"https:\u002F\u002Fgithub.com\u002FMokkapps\u002Fmokkapps-website",[67],"simple static website"," which I hosted manually on a web server without using a service like Netlify. The custom domain I used is ",[117,173,174],{},"www.mokkapps.de",[59,176,177,178,183],{},"Some month ago, I decided to start my tech blog about software development topics, and I wanted to continue using Hugo. Therefore I had to choose another Hugo theme as ",[63,179,182],{"href":180,"rel":181},"https:\u002F\u002Fgithub.com\u002Fsethmacleod\u002Fprologue",[67],"the current theme"," was not capable of content management which is necessary for a blog.",[59,185,186,187,192,193,198],{},"After a short research, I found ",[63,188,191],{"href":189,"rel":190},"https:\u002F\u002Fgithub.com\u002Fribice\u002Fkiss",[67],"KISS",", which had the style and the functionality I was looking for. Blog posts are written in ",[63,194,197],{"href":195,"rel":196},"https:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FMarkdown",[67],"Markdown",", which I like for writing articles and other text-based stuff.",[59,200,201,202,205,206,209],{},"I wanted the blog to be accessible via ",[117,203,204],{},"www.mokkapps.de\u002Fblog",", so I had to generate the blog page using Hugo and drop it on the web server in a ",[117,207,208],{},"blog"," folder. This was a manual process that I wanted to automate.",[59,211,212],{},"Luckily, platforms like Netlify can help at automating such tasks. I have integrated both websites in Netlify but still had to made the connection from one Hugo website to another.",[59,214,215,216,221,222,225],{},"Netlify provides ",[63,217,220],{"href":218,"rel":219},"https:\u002F\u002Fwww.netlify.com\u002Fdocs\u002Fredirects\u002F",[67],"Redirects"," for such cases. So I added a static ",[117,223,224],{},"_redirects"," file to my main page, and now it correctly links to the second page hosted on Netlify:",[59,227,228],{},[117,229,230],{},"\u002Fblog\u002F* https:\u002F\u002Fmokkapps-blog.netlify.com\u002F:splat 200",[59,232,233],{},"Now all I have to do is to write my blog posts or make any other changes on my websites and push them to my Git provider. Netlify then automatically builds and deploys the pages.",[71,235,237],{"id":236},"conclusion","Conclusion",[59,239,240],{},"It's fun to build and deploy websites using services like Hugo and Netlify. I highly recommend looking at them, and maybe you can need them for your current or future projects.",[71,242,244],{"id":243},"links","Links",[110,246,247,253,260,265],{},[113,248,249],{},[63,250,252],{"href":168,"rel":251},[67],"Source Code Website",[113,254,255],{},[63,256,259],{"href":257,"rel":258},"https:\u002F\u002Fgithub.com\u002FMokkapps\u002Fmokkapps-blog",[67],"Source Code Blog Website",[113,261,262],{},[63,263,79],{"href":85,"rel":264},[67],[113,266,267],{},[63,268,131],{"href":136,"rel":269},[67],{"title":271,"searchDepth":272,"depth":272,"links":273},"",2,[274,279,280,281],{"id":73,"depth":272,"text":74,"children":275},[276,278],{"id":78,"depth":277,"text":79},3,{"id":130,"depth":277,"text":131},{"id":161,"depth":272,"text":162},{"id":236,"depth":272,"text":237},{"id":243,"depth":272,"text":244},[283,284,285],"development","frontend","portfolio","blog\u002Fhow-i-built-my-website-using-netlify-and-hugo\u002Fcover_phyuym.png","2018-05-19","At the end of last year, I started working on my private portfolio website and researching how to build and deploy such static websites quickly.","md",null,{"subTitle":292},"Learn how I built my static portfolio website","\u002Fblog\u002Fhow-i-built-my-website-using-netlify-and-hugo",{"text":295,"minutes":296,"time":297,"words":298},"3 min read",2.335,140100,467,{"title":54,"description":288},{"loc":293,"lastmod":287},"blog\u002Fhow-i-built-my-website-using-netlify-and-hugo\u002Findex","glLo7vsuoktbH4oywa4wMmEh-GGiUsWCFypuWtaDIm8",{"id":304,"title":54,"body":305,"cover":286,"description":288,"extension":289,"meta":444,"navigation":11,"path":293,"robots":290,"seo":447,"sitemap":448,"stem":301,"__hash__":449},"content\u002Fblog\u002Fhow-i-built-my-website-using-netlify-and-hugo\u002Findex.md",{"type":56,"value":306,"toc":435},[307,312,314,316,321,326,331,333,345,347,352,354,359,364,366,373,378,386,392,394,401,405,407,409,411,413],[59,308,61,309,69],{},[63,310,68],{"href":65,"rel":311},[67],[71,313,74],{"id":73},[76,315,79],{"id":78},[59,317,82,318,87],{},[63,319,79],{"href":85,"rel":320},[67],[59,322,90,323,96],{},[63,324,95],{"href":93,"rel":325},[67],[59,327,99,328,105],{},[63,329,104],{"href":102,"rel":330},[67],[59,332,108],{},[110,334,335,339,343],{},[113,336,115,337],{},[117,338,119],{},[113,340,122,341],{},[117,342,78],{},[113,344,127],{},[76,346,131],{"id":130},[59,348,349,138],{},[63,350,131],{"href":136,"rel":351},[67],[59,353,141],{},[59,355,144,356,150],{},[63,357,149],{"href":147,"rel":358},[67],[59,360,153,361,158],{},[63,362,157],{"href":147,"rel":363},[67],[71,365,162],{"id":161},[59,367,165,368,171,371,150],{},[63,369,170],{"href":168,"rel":370},[67],[117,372,174],{},[59,374,177,375,183],{},[63,376,182],{"href":180,"rel":377},[67],[59,379,186,380,192,383,198],{},[63,381,191],{"href":189,"rel":382},[67],[63,384,197],{"href":195,"rel":385},[67],[59,387,201,388,205,390,209],{},[117,389,204],{},[117,391,208],{},[59,393,212],{},[59,395,215,396,221,399,225],{},[63,397,220],{"href":218,"rel":398},[67],[117,400,224],{},[59,402,403],{},[117,404,230],{},[59,406,233],{},[71,408,237],{"id":236},[59,410,240],{},[71,412,244],{"id":243},[110,414,415,420,425,430],{},[113,416,417],{},[63,418,252],{"href":168,"rel":419},[67],[113,421,422],{},[63,423,259],{"href":257,"rel":424},[67],[113,426,427],{},[63,428,79],{"href":85,"rel":429},[67],[113,431,432],{},[63,433,131],{"href":136,"rel":434},[67],{"title":271,"searchDepth":272,"depth":272,"links":436},[437,441,442,443],{"id":73,"depth":272,"text":74,"children":438},[439,440],{"id":78,"depth":277,"text":79},{"id":130,"depth":277,"text":131},{"id":161,"depth":272,"text":162},{"id":236,"depth":272,"text":237},{"id":243,"depth":272,"text":244},{"subTitle":292,"categories":445,"date":287,"readingTime":446},[283,284,285],{"text":295,"minutes":296,"time":297,"words":298},{"title":54,"description":288},{"loc":293,"lastmod":287},"cX-GuUSMDQ7mvolXGWLn8ARIg3xFP_-rypZnVwBGsb0",[451,455],{"title":452,"path":453,"stem":454,"children":-1},"Lessons Learned: My First Smartphone Game","\u002Fblog\u002Flessons-learned-my-first-smartphone-game","blog\u002Flessons-learned-my-first-smartphone-game\u002Findex",{"title":456,"path":457,"stem":458,"children":-1},"My First NPM Package: github-traffic-cli","\u002Fblog\u002Fmy-first-npm-package","blog\u002Fmy-first-npm-package\u002Findex",[460,465,470,475],{"cover":461,"date":462,"slug":463,"title":464,"to":463},"blog\u002Fthe-10-favorite-features-of-my-developer-portfolio-website\u002Fcover_ayemj0.jpg","2022-01-07","\u002Fblog\u002Fthe-10-favorite-features-of-my-developer-portfolio-website","The 10 Favorite Features of My Developer Portfolio Website",{"cover":466,"date":467,"slug":468,"title":469,"to":468},"blog\u002Fthe-engineering-behind-my-portfolio-website\u002Fcover_qr91wd.jpg","2018-12-12","\u002Fblog\u002Fthe-engineering-behind-my-portfolio-website","The Engineering Behind My Portfolio Website",{"cover":471,"date":472,"slug":473,"title":474,"to":473},"blog\u002Fa-comprehensive-guide-to-data-fetching-in-nuxt-3\u002Fog.png","2023-06-20","\u002Fblog\u002Fa-comprehensive-guide-to-data-fetching-in-nuxt-3","A Comprehensive Guide to Data Fetching in Nuxt 3",{"cover":476,"date":477,"slug":478,"title":479,"to":478},"blog\u002Fanalyze-memory-leaks-in-your-nuxt-app\u002Fog.png","2024-07-27","\u002Fblog\u002Fanalyze-memory-leaks-in-your-nuxt-app","Analyze Memory Leaks in Your Nuxt App"]