October 9, 2016

382 words 2 mins read

Hugo - Static Webpage Generator

Hugo - Static Webpage Generator

Hugo is a static HTML and CSS website generator written in Go. It is optimized for speed, easy use and configurability. Hugo takes a directory with content and templates and renders them into a full HTML website.

Hugo - Static Webpage Generator:

What is Hugo?

Web site generators render content into HTML files. Most are “dynamic site generators”. That means the HTTP server (which is the program running on your website that the user’s browser talks to) runs the generator to create a new HTML file each and every time a user wants to view a page.

Hugo renders all HTML files on your computer. You can review the files before you copy them to the computer hosting the HTTP server. Since the HTML files aren’t generated dynamically, we say that Hugo is a “static site generator”.

  • Hugo is a general-purpose website framework
  • Hugo is a static site generator
  • A Fast and Flexible Static Site Generator built with love by spf13 and friends in Go.

Static Site Generators

The typical CMS driven website works by building each page on-demand, fetching content from a database and running it through a template engine. This means each page is assembled from templates and content on each request to the server.

A Static Site Generator takes a different approach and generate all the pages of the website once when there’s actually changes to the site.

This means there’s no moving parts in the deployed website. Caching gets much easier, performance goes up and static sites are far more secure.

Ref: StaticGen

Hugo

Hugo is a static HTML and CSS website generator written in Go. It is optimized for speed, easy use and configurability. Hugo takes a directory with content and templates and renders them into a full HTML website.

Hugo relies on Markdown files with front matter for meta data. And you can run Hugo from any directory. This works well for shared hosts and other systems where you don’t have a privileged account.

Hugo renders a typical website of moderate size in a fraction of a second. A good rule of thumb is that each piece of content renders in around 1 millisecond.

Hugo is designed to work well for any kind of website including blogs, tumbles and docs.

Ref: spf13/hugo

comments powered by Disqus