As you might have noticed, the site looks a bit different. A while back I decided to revamp my blog. While going through everything I drafted in the past year, I noticed some notes about static site generators. Although this post was just a comparison between different generators, I asked myself the question why not transform mine.
Because of hugo’s easy setup. Getting started with hugo is a walk in the park. After some fiddling with the layout and understanding how it all fits together, I started migrationg content.
Because I wanted to maintain all content, I opted to write a small script that would spit out all my old
post into hugo ready markdown files. Note that I made sure to set the
url in all documents to ensure I
did not break any references to my posts.
At first I figured I would create a small docker image containing based on nginx with the generated content. Although this is something I do on a day to day basis, if just made no sense to go this route for a static site.
I also gave Aws’s cloudfront a go and although the site was up and running pretty quickly, I still needed to trigger a script or setup a webhook in order for the site to update.
I came across Netlify and wanted to give it a go. Documentation looked complete and well written. Support for LetsEncypt on your own domains, what else could I ask for. Let’s to this!
Hooking it all up was very simple. Signing in with github, pointing to a repo, after a few minutes my first version was running. Making changes is as simple as pushing to my github repo.
Without much thinking I wanted to add a contact form. Although formspree is a valid option, I just did not feel like what I wanted. I was planning to setup an AWS Api Gateway and a Lambda function to deliver the submissions into my mailbox. Little did I know Netlify had a solution for me all along. By altering my form just a little, I was able to add a success page and add recaptcha without any configuration.
After playing a bit with Netlify’s Domain Management, I was able to setup everything for the final swap. Once I verified everything was working, I swapped my DNS and that’s where we are at.
I have not tried the CMS feature Netlify created. Although this is not something I have a need for, it is something I want to look into to see if I can migrate some more projects that are pretty static.
Netlify is a easy way to get your site up and running in no time. I haven’t gotten to all the features Netlify provides at this point. Most of them just are not needed for my use.comments powered by Disqus