Downloads of v 0.39:


Last Update:

24 Apr 2018

Package Maintainer(s):

Software Author(s):

  • spf13


hugo admin blog website network


This is not the latest version of hugo available.

  • 1
  • 2
  • 3

0.39 | Updated: 24 Apr 2018



Downloads of v 0.39:



Software Author(s):

  • spf13

  • 1
  • 2
  • 3
hugo 0.39

This is not the latest version of hugo available.

  • 1
  • 2
  • 3

Some Checks Have Failed or Are Not Yet Complete

Not All Tests Have Passed

Validation Testing Passed

Verification Testing Passed


Scan Testing Resulted in Flagged:

This package was submitted (and approved) prior to automated virus scanning integration into the package moderation processs.

We recommend clicking the "Details" link to make your own decision on installing this package.

Learn More

Deployment Method: Individual Install, Upgrade, & Uninstall

To install hugo, run the following command from the command line or from PowerShell:


To upgrade hugo, run the following command from the command line or from PowerShell:


To uninstall hugo, run the following command from the command line or from PowerShell:


Deployment Method:

📝 NOTE: This applies to both open source and commercial editions of Chocolatey.

1. Enter Your Internal Repository Url

(this should look similar to

2. Setup Your Environment

1. Ensure you are set for organizational deployment

Please see the organizational deployment guide

2. Get the package into your environment

  • Open Source or Commercial:
    • Proxy Repository - Create a proxy nuget repository on Nexus, Artifactory Pro, or a proxy Chocolatey repository on ProGet. Point your upstream to Packages cache on first access automatically. Make sure your choco clients are using your proxy repository as a source and NOT the default community repository. See source command for more information.
    • You can also just download the package and push it to a repository Download

3. Copy Your Script

choco upgrade hugo -y --source="'INTERNAL REPO URL'" --version="'0.39'" [other options]

See options you can pass to upgrade.

See best practices for scripting.

Add this to a PowerShell script or use a Batch script with tools and in places where you are calling directly to Chocolatey. If you are integrating, keep in mind enhanced exit codes.

If you do use a PowerShell script, use the following to ensure bad exit codes are shown as failures:

choco upgrade hugo -y --source="'INTERNAL REPO URL'" --version="'0.39'" 

Write-Verbose "Exit code was $exitCode"
$validExitCodes = @(0, 1605, 1614, 1641, 3010)
if ($validExitCodes -contains $exitCode) {
  Exit 0

Exit $exitCode

- name: Install hugo
    name: hugo
    version: '0.39'
    state: present

See docs at

chocolatey_package 'hugo' do
  action    :install
  source   'INTERNAL REPO URL'
  version  '0.39'

See docs at

cChocoPackageInstaller hugo
    Name     = "hugo"
    Version  = "0.39"
    Source   = "INTERNAL REPO URL"

Requires cChoco DSC Resource. See docs at

package { 'hugo':
  ensure   => '0.39',
  provider => 'chocolatey',
  source   => 'INTERNAL REPO URL',

Requires Puppet Chocolatey Provider module. See docs at

4. If applicable - Chocolatey configuration/installation

See infrastructure management matrix for Chocolatey configuration elements and examples.

This package was approved as a trusted package on 24 Apr 2018.



A Fast and Flexible Static Site Generator built with love by spf13 and friends in Go.

Website |
Forum |
Developer Chat (no support) |
Documentation |
Installation Guide |
Contribution Guide |

Linux and OS X Build Status
Windows Build Status
Dev chat at
Go Report Card


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.

Contributing to Hugo

We welcome contributions to Hugo of any kind including documentation, themes,
organization, tutorials, blog posts, bug reports, issues, feature requests,
feature implementations, pull requests, answering questions on the forum,
helping to manage issues, etc.

The Hugo community and maintainers are very active and helpful, and the project benefits greatly from this activity.

Asking Support Questions

We have an active discussion forum where users and developers can ask questions.
Please don't use the Github issue tracker to ask questions.

Reporting Issues

If you believe you have found a defect in Hugo or its documentation, use
the Github issue tracker to report the problem to the Hugo maintainers.
If you're not sure if it's a bug or not, start by asking in the discussion forum.
When reporting the issue, please provide the version of Hugo in use (hugo version).


$ErrorActionPreference = 'Stop'

$packageName= $env:ChocolateyPackageName
$toolsDir   = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
$url        = "$($env:ChocolateyPackageVersion)/hugo_$($env:ChocolateyPackageVersion)"
$url64      = "$($env:ChocolateyPackageVersion)/hugo_$($env:ChocolateyPackageVersion)"

$packageArgs = @{
  packageName   = $packageName
  unzipLocation = $toolsDir
  url           = $url
  url64bit      = $url64

  checksum      = 'e538b355cd3da2e027684cff4d2077889ad7e80b0a3cb2d74307b0dcef197fd1'
  checksumType  = 'sha256'
  checksum64    = '91c32066e7bcdba045f2620a41602a0b598465dd71ed2e142ef5e32545d40d9d'
  checksumType64= 'sha256'

Install-ChocolateyZipPackage @packageArgs
$ErrorActionPreference = 'Stop';

$hugoExe = Get-ChildItem $(Split-Path -Parent $MyInvocation.MyCommand.Definition) | Where-Object -Property Name -Match "hugo.exe"

if (-Not($hugoExe)) 
    Write-Error -Message "hugo exe is not found, please contact the maintainer of the package" -Category ResourceUnavailable

Write-Host "found hugo exe in $($hugoExe.FullName)"
Write-Host "attempting to remove it" 
Remove-Item $hugoExe.FullName

Log in or click on link to see number of positives.

In cases where actual malware is found, the packages are subject to removal. Software sometimes has false positives. Moderators do not necessarily validate the safety of the underlying software, only that a package retrieves software from the official distribution point and/or validate embedded software against official distribution point (where distribution rights allow redistribution).

Chocolatey Pro provides runtime protection from possible malware.

Add to Builder Version Downloads Last Updated Status
Hugo 0.92.0 1536 Wednesday, January 12, 2022 Approved
Hugo 0.91.2 1707 Thursday, December 23, 2021 Approved
Hugo 0.91.1 176 Wednesday, December 22, 2021 Approved
Hugo 0.91.0 15 Friday, December 17, 2021 Approved
Hugo 0.90.1 1267 Friday, December 10, 2021 Approved
Hugo 0.90.0 320 Wednesday, December 8, 2021 Approved
Hugo 0.89.4 1885 Wednesday, November 17, 2021 Approved
Hugo 0.89.3 337 Monday, November 15, 2021 Approved
Hugo 0.89.2 789 Monday, November 8, 2021 Approved

0.39 April 16th 2018


The main.Execute function now returns a Response object and the global Hugo variable is removed. This is only relevant for people building some kind of API around Hugo.
Remove deprecated File.Bytes 94c8b29c @bep



* Add anchorize template func 4dba6ce1 @bep
* Add path.Join 880ca19f @bep
* Add path.Split template func 01b72eb5 @bep


* Implement Resource.Content 0e7716a4 @bep #4622
* Make Page.Content a method that returns interface{} 417c5e2b @bep #4622
* Remove accidental and breaking space in baseURL flag 1b4e0c41 @bep #4607
* Properly handle CLI slice arguments 27a524b0 @bep #4607
* Correctly handle destination and i18n-warnings bede93de @bep #4607
* Allow "*/" inside commented out shortcodes 14c35c8a @bep #4608
* Make commands.Execute return a Response object 96689a5c @bep #4598
* Remove some TODOs e7010c1b @bep #4598
* Add basic server test a7d00fc3 @bep #4598
* Remove the Hugo global b110d0ae @bep #4598
* Make the limit command work again 73825cfc @bep #4598
* Move the commands related logic to its own file a8f7fbbb @bep #4598
* Add CLI tests e8d6ca95 @bep #4598
* Make the hugo command non-global 4d32f2fa @bep #4598
* Extract some common types into its own file 018602c4 @bep #4598
* Make the server command non-global 2f0d98a1 @bep #4598
* Make the gen commands non-global e0621d20 @bep #4598
* Make the list commands non-global e26a8b24 @bep #4598
* Make the import commands non-global 2a2c9838 @bep #4598
* Make the config command non-global 15b1e269 @bep #4598
* Make the new commands non-global 56a13080 @bep #4598
* Make convert command non-global 4b780ca7 @bep #4598
* Make more commands non-global 7bc5e89f @bep #4598
* Make benchmark non-global fdf1d94e @bep #4598
* Start of flag cleaning 1157fef8 @bep #4598
* Use short date format in CLI docs e614d8a5 @bep #4598
* Update fca49d6c @thedodobird2
* Sync dependencies 0e8b3cbc @bep
* Bump Go versions 230f2b8c @bep #4545
* Add bash completion 874159b5 @anthonyfok
* Handle mass content etc. edits in server mode 730b66b6 @bep #4563


* Fix livereload of bundled pages f3775877 @bep #4607
* Do not reset .Page.Scratch on rebuilds 61d52f14 @bep #4627
* Fix failing Travis server test 9c782d51 @bep
* Fix the config command f396cffa @bep #4598
* Fix some flag diff 24d5c219 @bep #4598
* Fix TestFixURL 1e233b1c @bep #4598
* Disable shallow clone to fix TestPageWithLastmodFromGitInfo 094ec171 @anthonyfok #4584
* Fix livereload for the home page bundle f87239e4 @bep #4576
* Fix empty BuildDate in "hugo version" 294c0f80 @anthonyfok
* Fix some livereload content regressions a4deaeff @bep #4566
* Fix two tests that are broken on Windows 26f34fd5 @neurocline

This package has no dependencies.

Discussion for the hugo Package

Ground Rules:

  • This discussion is only about hugo and the hugo package. If you have feedback for Chocolatey, please contact the Google Group.
  • This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
  • The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
  • Tell us what you love about the package or hugo, or tell us what needs improvement.
  • Share your experiences with the package, or extra configuration or gotchas that you've found.
  • If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.
comments powered by Disqus