<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: mlem_dev</title>
    <description>The latest articles on DEV Community by mlem_dev (@mlem_dev).</description>
    <link>https://dev.to/mlem_dev</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1117122%2F62bb8669-7b20-4bf5-b0dd-6c3c04cf9d9c.jpeg</url>
      <title>DEV Community: mlem_dev</title>
      <link>https://dev.to/mlem_dev</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mlem_dev"/>
    <language>en</language>
    <item>
      <title>How to Deploy Hugo With Cloudflare Pages</title>
      <dc:creator>mlem_dev</dc:creator>
      <pubDate>Mon, 17 Feb 2025 23:37:45 +0000</pubDate>
      <link>https://dev.to/mlem_dev/how-to-deploy-hugo-with-cloudflare-pages-6h9</link>
      <guid>https://dev.to/mlem_dev/how-to-deploy-hugo-with-cloudflare-pages-6h9</guid>
      <description>&lt;p&gt;According to wise sages (aka the internet), the best way to learn something is by teaching it to others. So, why not embark on the noble quest of starting a blog today?&lt;/p&gt;

&lt;h3&gt;
  
  
  What's a Static Site Generator?
&lt;/h3&gt;

&lt;p&gt;In a world of bloated websites and laggy load times, Static Site Generators (SSGs) stand as the knights in shining armor. They create a site all at once and then deliver it in a flash—no lag, just pure performance.&lt;/p&gt;

&lt;h4&gt;
  
  
  Pros:
&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Performance&lt;/strong&gt;: Like a perfectly timed dodge in &lt;em&gt;Elden Ring&lt;/em&gt;, static site generators pre-build the entire website and deliver it to the user all at once—no waiting around for things to load.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Customization&lt;/strong&gt;: You’re no longer chained to the whims of a CMS. With SSGs, you're free to craft whatever template your heart desires&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Resource Efficiency&lt;/strong&gt;: These frameworks are lighter than a cat’s nap, so your website won’t require a ton of resources.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Markdown, hell yeah&lt;/strong&gt;: If you love the power of Markdown (like the freedom of the &lt;em&gt;Elden Ring&lt;/em&gt; open world), you’re in for a treat.&lt;/li&gt;
&lt;/ul&gt;

&lt;h4&gt;
  
  
  Cons:
&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Interface&lt;/strong&gt;: Imagine trying to navigate the Lands Between without a map—yep, that's what working with an SSG feels like at first. You’ll need to read the documentation to figure out how things work, but once you get the hang of it, you will feel right at home.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Lack of Default Templates&lt;/strong&gt;: Out of the box, SSGs don't come with many templates. You'll either need to create your own or &lt;em&gt;venture into the wilds&lt;/em&gt; of GitHub to find something to use.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;em&gt;SSGs are powerful tools! If you want to learn more, check out this detailed breakdown from &lt;a href="https://www.cloudflare.com/learning/performance/static-site-generator/" rel="noopener noreferrer"&gt;Cloudflare&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;




&lt;h3&gt;
  
  
  What's Out There in the Land of Static Site Generators?
&lt;/h3&gt;

&lt;p&gt;The world of Static Site Generators is vast, filled with many frameworks and options.&lt;br&gt;
Here's the good news: you’ve got plenty of paths to explore. I’ve chosen &lt;a href="https://gohugo.io/" rel="noopener noreferrer"&gt;Hugo&lt;/a&gt;, which seems to be one of the most popular choices (even &lt;em&gt;boot.dev&lt;/em&gt; uses it, so that’s like the &lt;em&gt;Golden Rune&lt;/em&gt; of validation). At work, we've dabbled in a few other options, like WordPress, Google Pages, and Nextra. Each has its strengths, but in the end, it's all about finding the right fit for your &lt;em&gt;own  journey&lt;/em&gt;.&lt;/p&gt;




&lt;h3&gt;
  
  
  Why Hugo?
&lt;/h3&gt;

&lt;p&gt;One of my personal quests in 2025 is to learn Go, and since Hugo is written in Go, it felt like the perfect opportunity to level up those skills in the real world. Bonus points: it's fully open-source (you know, like that sword you find in the middle of nowhere that no one tells you about).&lt;/p&gt;

&lt;p&gt;Oh, and let's not forget the &lt;strong&gt;cute custom themes&lt;/strong&gt;. I went with the &lt;a href="https://github.com/adityatelange/hugo-PaperMod/" rel="noopener noreferrer"&gt;PaperMod&lt;/a&gt; theme, which I absolutely love. It’s simple, clean, and lets my content shine.&lt;/p&gt;




&lt;h3&gt;
  
  
  Setting Up Your Hugo Website with Cloudflare Pages
&lt;/h3&gt;

&lt;p&gt;Ready to embark on the setup journey? Here’s your guide to creating your Hugo-powered website using Cloudflare Pages.&lt;/p&gt;

&lt;h4&gt;
  
  
  Setup
&lt;/h4&gt;

&lt;ol&gt;
&lt;li&gt;Head to the &lt;a href="https://gohugo.io/" rel="noopener noreferrer"&gt;Hugo website&lt;/a&gt;, and choose your favorite theme. I went with &lt;a href="https://github.com/adityatelange/hugo-PaperMod/" rel="noopener noreferrer"&gt;PaperMod&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Before diving in, check the theme’s documentation for any specific requirements. For me, this meant heading over to the &lt;a href="https://github.com/adityatelange/hugo-PaperMod/wiki/Installation" rel="noopener noreferrer"&gt;PaperMod GitHub page&lt;/a&gt; to make sure I wasn’t missing anything important.&lt;/li&gt;
&lt;li&gt;Create a GitHub repository and link it to your local files. If you’re not familiar with Git yet, don't worry—learn it now. You’ll need it, trust me. Here’s a &lt;em&gt;side quest&lt;/em&gt; in the form of a Git course by &lt;a href="https://www.youtube.com/watch?v=rH3zE7VlIMs" rel="noopener noreferrer"&gt;thePrimeagen&lt;/a&gt;—go complete it before you continue. &lt;/li&gt;
&lt;li&gt;Once your repo is all set up, take a moment to look at the &lt;code&gt;config.yaml&lt;/code&gt; file and make any customizations. This is your chance to tweak the theme to fit your personal aesthetic. &lt;/li&gt;
&lt;/ol&gt;

&lt;h4&gt;
  
  
  Cloudflare Setup
&lt;/h4&gt;

&lt;ol&gt;
&lt;li&gt;Log into your Cloudflare account, and navigate to &lt;strong&gt;Workers &amp;amp; Pages&lt;/strong&gt;.
&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fgwv14a0j4mrhz2788an7.png" alt="Cloudflare workers page" width="554" height="220"&gt;
&lt;/li&gt;
&lt;li&gt;Click &lt;strong&gt;Pages&lt;/strong&gt;, then select &lt;strong&gt;Connect to Git&lt;/strong&gt;.
&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpp1yxzjp4feo31aw5bnv.png" alt="Cloudflare workers and pages selection" width="800" height="257"&gt;
&lt;/li&gt;
&lt;li&gt;Choose the repository that holds your Hugo website (for me, it’s called &lt;strong&gt;kibbyblog&lt;/strong&gt;).&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fgqfuqbowbvebu6rn13h1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fgqfuqbowbvebu6rn13h1.png" alt="setting up github repo with cloudflare pages" width="800" height="389"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Select &lt;strong&gt;Hugo&lt;/strong&gt; from the framework preset options. You can stick with the default settings unless your theme docs say otherwise. 
&lt;strong&gt;Important!&lt;/strong&gt; 
Some themes may require a specific Hugo version, higher or lower than what Cloudflare Pages uses. You can manually set the Hugo version with &lt;code&gt;HUGO_VERSION = &amp;lt;number&amp;gt;&lt;/code&gt;. For PaperMod, I needed version 0.143.1 or higher, so that’s what I picked.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fn0l5vic1tu6wu2x6lk6b.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fn0l5vic1tu6wu2x6lk6b.png" alt="cloudflare pages configuration example" width="800" height="390"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Once everything is set up, click &lt;strong&gt;Save and Deploy&lt;/strong&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fmnp6s9syxauiqo1g4ajg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fmnp6s9syxauiqo1g4ajg.png" alt="cloudflare pages deploy view" width="800" height="981"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;And voilà—your website is now live! Every time you push to the master branch, Cloudflare Pages will automatically rebuild your site and serve it under the URL &lt;code&gt;{your_project_name}.pages.dev&lt;/code&gt;, or any custom domain you set up.&lt;/p&gt;

&lt;p&gt;If you run into any issues along the way, don’t panic. Check the build logs for all the clues you need to debug any CI/CD problems. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F3wv2ettt9570nelys7e2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F3wv2ettt9570nelys7e2.png" alt="cloudflare page log view" width="800" height="251"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;Now you’re ready to explore the vast world of static site generators and embrace your role as a blog creator. May your markdown be clean, your deployments swift, and may you never get stuck in an endless loop of errors (unless it's a fun one) :3&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Behold, cat!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;A sip of coffee is but a small kindnenss.&lt;/em&gt;&lt;br&gt;
&lt;a href="https://ko-fi.com/mlem_dev" rel="noopener noreferrer"&gt;Support me on Ko-fi! :3&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://ko-fi.com/mlem_dev" rel="noopener noreferrer"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpjn6ogu46dk2n66jl0k1.JPG" alt="my cute cat" width="800" height="601"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>hugo</category>
      <category>go</category>
      <category>devops</category>
    </item>
    <item>
      <title>Boot.dev vs Codecademy from newbie perspective</title>
      <dc:creator>mlem_dev</dc:creator>
      <pubDate>Thu, 25 Jul 2024 18:59:38 +0000</pubDate>
      <link>https://dev.to/mlem_dev/bootdev-vs-codecademy-from-newbie-perspective-2dml</link>
      <guid>https://dev.to/mlem_dev/bootdev-vs-codecademy-from-newbie-perspective-2dml</guid>
      <description>&lt;p&gt;Hi :)&lt;/p&gt;

&lt;p&gt;I've been hanging around coding for a while now and after 4 years in the IT industry I can proudly say that I still have no idea what I am doing when it comes to coding. &lt;/p&gt;

&lt;p&gt;Thankfully each year there is more and more online resources, that are really enjoyable to me. I really don't like videos or textbooks, they are either making me fall asleep (books), or make me do nothing and just passively stare at a screen (videos).&lt;/p&gt;

&lt;p&gt;Online platforms like codecademy, boot.dev, kodekloud etc. are my go to resource for my education, especially nowadays, where I'm trying to go from IT Admin/Helpdesk role, to something that is more connected with back-end development, it's neat.&lt;/p&gt;

&lt;p&gt;As a long-time codecademy user I welcomed boot.dev with a warm embrace. My ADHD loves to try new stuff and boot.dev is special in a way that is hard to put into words.&lt;/p&gt;

&lt;p&gt;It's fun.&lt;/p&gt;

&lt;p&gt;Also, ThePrimegen likes it. &lt;/p&gt;

&lt;p&gt;When I'm learning on boot.dev, I feel like I'm on a journey. Like it's something that will be both enjoyable and educational. The "fun" part is what's missing in codecademy in my opinion. &lt;br&gt;
Codecademy is still leading when it comes to the variety of the educational material, but it lacks something that makes me go and do the coding after 10 hours of work. &lt;/p&gt;

&lt;p&gt;I believe, that with the passage of time, boot.dev will be a go to platform for everyone that wants to kickstart their journey in software development and do it while still enjoying those moments.&lt;/p&gt;

&lt;p&gt;If you are still not sure what to pics - give &lt;a href="//www.boot.dev"&gt;boot.dev&lt;/a&gt; a try, you won't regret it.&lt;/p&gt;

&lt;p&gt;Thank you Lane &amp;amp; The Team for creating such a fantastic platform! &lt;/p&gt;

&lt;p&gt;Not sponsored btw. I wish it was LoL&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>webdev</category>
      <category>beginners</category>
      <category>python</category>
    </item>
    <item>
      <title>My Home Lab</title>
      <dc:creator>mlem_dev</dc:creator>
      <pubDate>Mon, 22 Jul 2024 18:26:04 +0000</pubDate>
      <link>https://dev.to/mlem_dev/my-home-lab-4lji</link>
      <guid>https://dev.to/mlem_dev/my-home-lab-4lji</guid>
      <description>&lt;p&gt;I've been thinking about documenting my journey with IT, so let's talk about the stuff that my IT knowledge is mostly based on.&lt;/p&gt;

&lt;h2&gt;
  
  
  Hardware
&lt;/h2&gt;

&lt;p&gt;The best price is free, so I try to find and use used hardware and borrow stuff from work that is no longer needed :)&lt;/p&gt;

&lt;p&gt;Currently I'm running 4 separate servers consisting of:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Custom built home Server with micro-ITX NAS PC with 40 GB of RAM running &lt;strong&gt;Proxmox&lt;/strong&gt; built with Motherboard and case recommended by this video from one and only &lt;a href="https://www.youtube.com/@WolfgangsChannel" rel="noopener noreferrer"&gt;Wolfgang&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Two raspberry Pi's (5 &amp;amp; 3) running *&lt;em&gt;Ubuntu Server *&lt;/em&gt;
&lt;/li&gt;
&lt;li&gt;Old intel NUC with 4GB of RAM&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For simplicity's sake, I've decided to stick with Debian-based OS systems, since they are the ones I'm most familiar with.&lt;/p&gt;

&lt;p&gt;When it comes to home servers builds, I sincerely recommend giving &lt;a href="https://www.youtube.com/watch?v=vjDoQA4C22c" rel="noopener noreferrer"&gt;Wolfgang's Channel&lt;/a&gt; a go - his videos helped me a lot when it came to ordering stuff and picking the best hardware for cheap!&lt;/p&gt;

&lt;h2&gt;
  
  
  Software/OS
&lt;/h2&gt;

&lt;p&gt;Like I said previously, Debian-based distros are the most familiar to me, so I mainly use Proxmox and Ubuntu.&lt;br&gt;
Thanks to Proxmox, I'm able to easily spin up new virtual machines, which is very useful, especially when trying new distros or tinkering in general.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fh8c3vl9u5tteq0jf4ybu.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fh8c3vl9u5tteq0jf4ybu.png" alt="Image description" width="602" height="778"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Thanks to an awesome project, &lt;a href="https://tteck.github.io/Proxmox/" rel="noopener noreferrer"&gt;Proxmox Helper-Scripts&lt;/a&gt;, I was able to easily spin up ready-to-go containers and VMs that allow me to self-host most of the stuff that I want to learn, such as Grafana, Docker, Home Assistant, PostgreSQL, etc.&lt;/p&gt;

&lt;p&gt;And last, but not least - swamp puppy. The best firewall out there.&lt;/p&gt;

</description>
      <category>homelab</category>
      <category>devops</category>
      <category>proxmox</category>
      <category>linux</category>
    </item>
  </channel>
</rss>
