2014-02-21 00:03:37 +00:00
|
|
|
---
|
2014-05-29 22:42:05 +00:00
|
|
|
date: 2013-07-01
|
|
|
|
linktitle: Introduction
|
2014-04-23 07:00:11 +00:00
|
|
|
menu:
|
|
|
|
main:
|
2014-05-29 22:42:05 +00:00
|
|
|
parent: getting started
|
|
|
|
next: /overview/quickstart
|
|
|
|
title: Introduction to Hugo
|
|
|
|
weight: 5
|
2014-02-21 00:03:37 +00:00
|
|
|
---
|
|
|
|
|
|
|
|
## What is Hugo?
|
|
|
|
|
2014-08-31 11:08:36 +00:00
|
|
|
Hugo is a general-purpose website framework. Technically speaking, Hugo is
|
2014-09-03 04:12:26 +00:00
|
|
|
a static site generator. This means that, unlike systems like WordPress,
|
|
|
|
Ghost and Drupal, which run on your web server expensively building a page
|
2014-02-21 00:03:37 +00:00
|
|
|
every time a visitor requests one, Hugo does the building when you create
|
2015-02-16 21:53:12 +00:00
|
|
|
your content. Since websites are viewed far more often than they are
|
2014-02-28 16:41:47 +00:00
|
|
|
edited, Hugo is optimized for website viewing while providing a great
|
2014-08-31 11:08:36 +00:00
|
|
|
writing experience.
|
2014-02-21 00:03:37 +00:00
|
|
|
|
2014-08-31 11:08:36 +00:00
|
|
|
Sites built with Hugo are extremely fast and very secure. Hugo sites can
|
2015-01-14 03:48:44 +00:00
|
|
|
be hosted anywhere, including [Heroku][], [GoDaddy][], [DreamHost][],
|
|
|
|
[GitHub Pages][], [Amazon S3][] and [CloudFront][], and work well with CDNs.
|
|
|
|
Hugo sites run without dependencies on expensive runtimes like Ruby,
|
|
|
|
Python or PHP and without dependencies on any databases.
|
|
|
|
|
|
|
|
[Heroku]: https://www.heroku.com/
|
|
|
|
[GoDaddy]: https://www.godaddy.com/
|
|
|
|
[DreamHost]: http://www.dreamhost.com/
|
2015-01-25 21:53:21 +00:00
|
|
|
[GitHub Pages]: https://pages.github.com/
|
2015-01-14 03:48:44 +00:00
|
|
|
[Amazon S3]: http://aws.amazon.com/s3/
|
|
|
|
[CloudFront]: http://aws.amazon.com/cloudfront/ "Amazon CloudFront"
|
2014-02-21 00:03:37 +00:00
|
|
|
|
|
|
|
We think of Hugo as the ideal website creation tool. With nearly instant
|
2014-08-31 11:08:36 +00:00
|
|
|
build times and the ability to rebuild whenever a change is made, Hugo
|
2014-02-21 00:03:37 +00:00
|
|
|
provides a very fast feedback loop. This is essential when you are
|
2014-08-31 11:08:36 +00:00
|
|
|
designing websites, but also very useful when creating content.
|
2014-02-21 00:03:37 +00:00
|
|
|
|
2015-01-27 22:14:19 +00:00
|
|
|
## How fast is Hugo?
|
|
|
|
|
|
|
|
{{% youtube CdiDYZ51a2o %}}
|
|
|
|
|
2014-02-21 00:03:37 +00:00
|
|
|
## What does Hugo do?
|
|
|
|
|
2014-09-03 04:12:26 +00:00
|
|
|
In technical terms, Hugo takes a source directory of Markdown files and
|
2014-08-31 11:08:36 +00:00
|
|
|
templates and uses these as input to create a complete website.
|
2014-02-21 00:03:37 +00:00
|
|
|
|
|
|
|
Hugo boasts the following features:
|
|
|
|
|
2014-05-27 22:32:57 +00:00
|
|
|
### General
|
|
|
|
|
2014-08-31 11:08:36 +00:00
|
|
|
* Extremely fast build times (~1 ms per page)
|
2015-01-14 03:48:44 +00:00
|
|
|
* Completely cross platform: Runs on <i class="fa fa-apple"></i> Mac OS X, <i class="fa fa-linux"></i> Linux, <i class="fa fa-windows"></i> Windows, and more!
|
2015-01-28 02:17:09 +00:00
|
|
|
* Easy [installation](/overview/installing/)
|
|
|
|
* Render changes [on the fly](/overview/usage/) with [LiveReload](/extras/livereload/) as you develop
|
2014-05-27 22:32:57 +00:00
|
|
|
* Complete theme support
|
2014-02-21 00:03:37 +00:00
|
|
|
* Host your site anywhere
|
2014-05-27 22:32:57 +00:00
|
|
|
|
|
|
|
### Organization
|
|
|
|
|
2015-01-28 02:17:09 +00:00
|
|
|
* Straightforward [organization](/content/organization/)
|
|
|
|
* Support for [website sections](/content/sections/)
|
|
|
|
* Completely customizable [URLs](/extras/urls/)
|
|
|
|
* Support for configurable [taxonomies](/taxonomies/overview/) which includes categories and tags. Create your own custom organization of content
|
|
|
|
* Ability to [sort content](/content/ordering/) as you desire
|
|
|
|
* Automatic [table of contents](/extras/toc/) generation
|
2014-05-27 22:32:57 +00:00
|
|
|
* Dynamic menu creation
|
2015-01-28 02:17:09 +00:00
|
|
|
* [Pretty URLs](/extras/urls/) support
|
|
|
|
* [Permalink](/extras/permalinks/) pattern support
|
|
|
|
* [Aliases](/extras/aliases/) (redirects)
|
2014-05-27 22:32:57 +00:00
|
|
|
|
|
|
|
### Content
|
|
|
|
|
2015-01-28 02:17:09 +00:00
|
|
|
* Content written in [Markdown](/content/example/)
|
|
|
|
* Support for TOML, YAML and JSON metadata in [frontmatter](/content/front-matter/)
|
|
|
|
* Completely [customizable homepage](/layout/homepage/)
|
|
|
|
* Support for multiple [content types](/content/types/)
|
|
|
|
* Automatic and user defined [summaries](/content/summaries/)
|
|
|
|
* [Shortcodes](/extras/shortcodes/) to enable rich content inside of Markdown
|
|
|
|
* ["Minutes to Read"](/layout/variables/) functionality
|
|
|
|
* ["Wordcount"](/layout/variables/) functionality
|
2014-02-21 00:03:37 +00:00
|
|
|
|
2014-05-27 22:32:57 +00:00
|
|
|
### Additional Features
|
|
|
|
|
2014-12-27 07:50:08 +00:00
|
|
|
* Integrated [Disqus](https://disqus.com/) comment support
|
2015-01-28 02:17:09 +00:00
|
|
|
* Automatic [RSS](/layout/rss/) creation
|
2014-12-27 07:58:50 +00:00
|
|
|
* Support for [Go](http://golang.org/pkg/html/template/), [Amber](https://github.com/eknkc/amber) and [Ace](http://ace.yoss.si/) HTML templates
|
2015-01-28 02:17:09 +00:00
|
|
|
* Syntax [highlighting](/extras/highlighting/) powered by [Pygments](http://pygments.org/)
|
2014-05-27 22:32:57 +00:00
|
|
|
|
2015-01-28 02:17:09 +00:00
|
|
|
See what's coming next in the [roadmap](/meta/roadmap/).
|
2014-02-21 00:05:09 +00:00
|
|
|
|
2014-02-21 00:03:37 +00:00
|
|
|
## Who should use Hugo?
|
|
|
|
|
|
|
|
Hugo is for people that prefer writing in a text editor over
|
2014-05-27 22:32:57 +00:00
|
|
|
a browser.
|
2014-02-21 00:03:37 +00:00
|
|
|
|
|
|
|
Hugo is for people who want to hand code their own website without
|
|
|
|
worrying about setting up complicated runtimes, dependencies and
|
2014-08-31 11:08:36 +00:00
|
|
|
databases.
|
2014-02-21 00:03:37 +00:00
|
|
|
|
|
|
|
Hugo is for people building a blog, company site, portfolio, tumblog,
|
|
|
|
documentation, single page site or a site with thousands of
|
2014-08-31 11:08:36 +00:00
|
|
|
pages.
|
2014-02-21 00:03:37 +00:00
|
|
|
|
|
|
|
## Why did you write Hugo?
|
|
|
|
|
2014-09-03 04:12:26 +00:00
|
|
|
I wrote Hugo ultimately for a few reasons. First, I was disappointed with
|
2014-08-31 11:08:36 +00:00
|
|
|
WordPress, my then website solution. It rendered slowly. I couldn't create
|
2014-02-21 00:03:37 +00:00
|
|
|
content as efficiently as I wanted to and needed to be online to write
|
|
|
|
posts. The constant security updates and the horror stories of people's
|
2014-02-21 00:05:09 +00:00
|
|
|
hacked blogs. I hated how content was written in HTML instead of the much
|
2014-09-03 04:12:26 +00:00
|
|
|
simpler Markdown. Overall, I felt like it got in my way more than it helped
|
|
|
|
me from writing great content.
|
2014-02-21 00:03:37 +00:00
|
|
|
|
2015-01-14 03:48:44 +00:00
|
|
|
I looked at existing static site generators like [Jekyll][], [Middleman][] and [nanoc][].
|
2014-02-21 00:03:37 +00:00
|
|
|
All had complicated dependencies to install and took far longer to render
|
|
|
|
my blog with hundreds of posts than I felt was acceptable. I wanted
|
|
|
|
a framework to be able to get rapid feedback while making changes to the
|
2014-09-03 04:12:26 +00:00
|
|
|
templates, and the 5+-minute render times was just too slow. In general,
|
2014-02-21 00:03:37 +00:00
|
|
|
they were also very blog minded and didn't have the ability to have
|
2014-08-31 11:08:36 +00:00
|
|
|
different content types and flexible URLs.
|
2014-02-21 00:03:37 +00:00
|
|
|
|
2015-01-14 03:48:44 +00:00
|
|
|
[Jekyll]: http://jekyllrb.com/
|
|
|
|
[Middleman]: https://middlemanapp.com/
|
|
|
|
[nanoc]: http://nanoc.ws/
|
|
|
|
|
2014-09-03 04:12:26 +00:00
|
|
|
I wanted to develop a fast and full-featured website framework without
|
2015-01-14 03:48:44 +00:00
|
|
|
dependencies. The [Go language][] seemed to have all of the features I needed
|
2014-02-21 00:03:37 +00:00
|
|
|
in a language. I began developing Hugo in Go and fell in love with the
|
|
|
|
language. I hope you will enjoy using (and contributing to) Hugo as much
|
|
|
|
as I have writing it.
|
2014-02-21 00:05:09 +00:00
|
|
|
|
2015-01-14 03:48:44 +00:00
|
|
|
[Go language]: http://golang.org/ "The Go Programming Language"
|
|
|
|
|
2014-02-21 00:05:09 +00:00
|
|
|
## Next Steps
|
|
|
|
|
2015-01-28 02:17:09 +00:00
|
|
|
* [Install Hugo](/overview/installing/)
|
|
|
|
* [Quick start](/overview/quickstart/)
|
|
|
|
* [Join the Mailing List](/community/mailing-list/)
|
|
|
|
* [Star us on GitHub](https://github.com/spf13/hugo)
|
|
|
|
* [Discussion Forum](http://discuss.gohugo.io/)
|
2014-09-19 01:22:04 +00:00
|
|
|
|