2014-05-29 22:42:05 +00:00
|
|
|
---
|
2016-01-06 22:45:19 +00:00
|
|
|
lastmod: 2015-01-27
|
2014-05-29 22:42:05 +00:00
|
|
|
date: 2014-05-12T10:09:27Z
|
|
|
|
menu:
|
|
|
|
main:
|
|
|
|
parent: themes
|
|
|
|
next: /themes/customizing
|
|
|
|
prev: /themes/installing
|
|
|
|
title: Using a Theme
|
|
|
|
weight: 30
|
|
|
|
---
|
2014-05-27 22:32:57 +00:00
|
|
|
|
|
|
|
Please make certain you have installed the themes you want to use in the
|
2014-12-04 16:26:12 +00:00
|
|
|
`/themes` directory.
|
2014-05-27 22:32:57 +00:00
|
|
|
|
2016-08-31 09:38:21 +00:00
|
|
|
To use a theme for a site, execute Hugo with the following parameter:
|
2014-05-27 22:32:57 +00:00
|
|
|
|
|
|
|
hugo -t ThemeName
|
|
|
|
|
2016-08-31 09:38:21 +00:00
|
|
|
or add this line to your site configuration:
|
|
|
|
|
|
|
|
theme: "ThemeName"
|
|
|
|
|
2014-12-04 16:26:12 +00:00
|
|
|
The *ThemeName* must match the name of the directory inside `/themes`.
|
2014-05-27 22:32:57 +00:00
|
|
|
|
|
|
|
Hugo will then apply the theme first, then apply anything that is in the local
|
2015-01-28 02:17:09 +00:00
|
|
|
directory. To learn more, go to [customizing themes](/themes/customizing/).
|