# Rebuilding a Blog with Hugo and Bazel

DevFeed: [Rebuilding a Blog with Hugo and Bazel](<https://devfeed.tech/articles/a-new-beginning-21768.md>)

Original publisher: [Read original article](<https://enoent.fr/posts/creating-a-blog-with-bazel/01-a-new-beginning/>)

Author: Marc Plano-Lesay

Published: 2019-10-31T10:05:00Z

Content type: article

Language: en

Sources: [Marc Plano-Lesay](<https://devfeed.tech/sources/marc-plano-lesay.md>)

Topics: [bazel](<https://devfeed.tech/topics/bazel.md>), [Hugo](<https://devfeed.tech/topics/hugo.md>), [Deployment](<https://devfeed.tech/topics/deployment.md>), [Markdown](<https://devfeed.tech/topics/markdown.md>), [Docker](<https://devfeed.tech/topics/docker.md>), [HTML](<https://devfeed.tech/topics/html.md>)

Tags: [bazel](<https://devfeed.tech/tags/bazel.md>), [deployment](<https://devfeed.tech/tags/deployment.md>), [docker-image](<https://devfeed.tech/tags/docker-image.md>), [html](<https://devfeed.tech/tags/html.md>), [hugo](<https://devfeed.tech/tags/hugo.md>), [markdown](<https://devfeed.tech/tags/markdown.md>)

## AI overview

The author revives a blog by migrating it from Octopress 2 to Hugo and using Bazel to automate Sass processing, HTML generation, Docker image creation, and testing. Deployment is not yet complete.

## Source excerpt

This blog has been inactive for a long time. I tried to at least post an article yearly, and next thing you know, two years and a half fly by... Halloween seemed like a good time to resurrect it. I wanted to start writing again recently, and faced an issue: this blog was using Octopress 2. Well, Octopress has apparently been dead for even longer than this blog. So I wanted to switch to another static generator. I found Hugo, which is actively maintained and ticked all the boxes I had, so that's what I settled for (sorry for the probable RSS feed mess - while I set up 301 redirects for the old articles, I guess this won't play nicely with any RSS reader. This is actually what prompted this article...) This could have been an hour worth of work - migrating the content (both Hugo and Octopress are using Markdown, so that part was really simple), finding or putting together a nice template, and call it a day. But how fun is that? Instead, I chose to go with the most complex (hence fun, right?) approach possible. And that was by using Bazel to do everything. Sass linting and pre-processing, HTML generation, generating a Docker image, deploying it... and with tests for a lot of things along the way. Today, the deployment part is still missing (I'm working on it), but everything else is pretty much ready. I plan to describe this whole journey soon, although I don't know exactly which form it will take yet - probably a series of small articles covering a specific aspect. In the meantime, welcome back on a brand-new blog!