2017-08-10 11:18:22 -04:00
---
title: Hugo-specific Variables
linktitle: Hugo Variables
description: The `.Hugo` variable provides easy access to Hugo-related data.
date: 2017-03-12
publishdate: 2017-03-12
lastmod: 2017-03-12
categories: [variables and params]
2017-09-21 13:03:00 -04:00
keywords: [hugo,generator]
2017-08-10 11:18:22 -04:00
draft: false
menu:
docs:
parent: "variables"
weight: 60
weight: 60
sections_weight: 60
aliases: []
toc: false
wip: false
---
It contains the following fields:
2017-12-30 03:15:31 -05:00
.Hugo.Generator
2017-08-10 11:18:22 -04:00
: `<meta>` tag for the version of Hugo that generated the site. `.Hugo.Generator` outputs a *complete* HTML tag; e.g. `<meta name="generator" content="Hugo 0.18" />`
2017-12-30 03:15:31 -05:00
.Hugo.Version
2017-08-10 11:18:22 -04:00
: the current version of the Hugo binary you are using e.g. `0.13-DEV` < br >
2019-02-01 03:01:04 -05:00
.Hugo.Environment
: the current running environment as defined through the `--environment` cli tag.
2017-12-30 03:15:31 -05:00
.Hugo.CommitHash
2017-08-10 11:18:22 -04:00
: the git commit hash of the current Hugo binary e.g. `0e8bed9ccffba0df554728b46c5bbf6d78ae5247`
2017-12-30 03:15:31 -05:00
.Hugo.BuildDate
2017-08-10 11:18:22 -04:00
: the compile date of the current Hugo binary formatted with RFC 3339 e.g. `2002-10-02T10:00:00-05:00` < br >
2019-02-01 03:01:04 -05:00
2017-08-10 11:18:22 -04:00
{{% note "Use the Hugo Generator Tag" %}}
We highly recommend using `.Hugo.Generator` in your website's `<head>` . `.Hugo.Generator` is included by default in all themes hosted on [themes.gohugo.io ](http://themes.gohugo.io ). The generator tag allows the Hugo team to track the usage and popularity of Hugo.
{{% /note %}}