Wercker step to validate Hugo themes
So last week, I created a material design theme for Hugo , a static site generator that I’m quite fond of](/tags/hugo/).
As I discovered Wercker , an awesome CI tool, I went looking for a way to automatically validate themes.
There wasn’t any, so I simply wrote a build step for Wercker . The build step validates a Hugo theme using an example site . It also checks if you included some files required for a future Hugo themes site.
The code for the build step is available at https://github.com/sdebruyn/wercker-step-hugo-theme-check and an example wercker.yml configuration is included below.
1box: debian
2build:
3 steps:
4 - samueldebruyn/hugo-theme-check:
5 version: "0.14"
6 theme: material-lite
You might also like
If you liked this article, follow me on LinkedIn or other social media to stay up-to-date with my latest posts. You might also like the following 2 posts about related topics:
Continuous integration with Hugo and Wercker
Why? Who doesn’t love GitHub Pages ? It’s the easiest way to create a simple website about a repository and you can even use Jekyll to start blogging. As I recently switched from Jekyll to Hugo , I needed a new way to enable continuous integration for my blog. New to CI?
Material-lite theme for Hugo
Last week, I wrote a post about how awesome Hugo is and why I switched from Jekyll to Hugo. Then, a few days later, Google released an awesome template called Material Design Lite . It’s basically Google’s famous Material Design in HTML, CSS and JavaScript instead of in Polymer .