If you are starting a new website, consider using Hugo
Tags: webdev, beginners, go
Published: 2018-10-24 11:22:19

---
title: If you are starting a new website, consider using Hugo
published: true
description: Other than it is “the world’s fastest framework for building websites,” Hugo is packed with powerful features that would make the website development process more pleasable.
tags: 
- webdev
- beginners
- go
canonical_url: "https://www.silvestar.codes/articles/making-a-website-with-hugo/"
---

![Making a website with Hugo cover](https://thepracticaldev.s3.amazonaws.com/i/lzv65l3a71ar01s7en19.jpg)


_This post was originally published on [silvestar.codes]._

If you are starting a new website, consider using [Hugo]. Other than it is “the world’s fastest framework for building websites,” it is packed with powerful features that would make the website development process more pleasable.

_<small>This post serves as an intro for the course “[Making a website with Hugo].”</small>_

## CLI

Once you install Hugo on your computer, you should have access to Hugo's command line interface. You could start a local web server within a millisecond. Not to mention that live reloading is working by default.

## Themes

If you don't want or don't know how to build a custom theme, you could use one of the hundreds of themes available for Hugo. However, if you like to be unique, and if you want to challenge your creative side, you could create a custom style for your new project. You could even use built-in pipes to process your Sass or Scss files or to minify your final CSS file.

## Templates

One of the critical features you should understand when starting with Hugo is lookup order. Hugo's mechanism for searching the correct template is well thought and designed to satisfy every project structure, even ones that are not trivial and straightforward.

Inside the templates, you could use variables, functions, logic, pipes, and other useful features. If you have a code snippet that you want to reuse in a different template, then you should extract that reusable code to a separate file called a partial.

## The context

Another critical feature that you should understand is *the context*. The context, or “the dot,” depends on the environment. If you are inside the loop, then the context is the current item. If you are in the base template, then the context is the current page with all of its parameters.

Hugo allows you to define variables that don't depend on the context. This variable could be instrumental when comparing the current item parameter inside the loop, for example.

There is the global context, too. You could access the global context from every template file or partial in any time.

## Support and Community

Hugo has a great community. On their community website, you could search for an answer for almost your problem. If you cannot find the solution, you could open a new discussion and someone would help you.

## Conclusion

I have highlighted only five features that make the process of developing a new website so enjoyable, but that is just a small part of what Hugo could offer to you. 

If you are interested in making a website with Hugo by now, I encourage you to take a look at [my Skillshare course].

> The fastest twenty users would get the course for free. 🙌

[silvestar.codes]: https://www.silvestar.codes/articles/making-a-website-with-hugo/
[Making a website with Hugo]: https://skl.sh/2q88Ij7
[Hugo]: https://gohugo.io
[my Skillshare course]: https://skl.sh/2q88Ij7