Skip to content

Hugo

Installs the Hugo static site generator from a GitHub release binary and adds it to $PATH.

Terminal window
zi for \
as"program" \
from"gh-r" \
@gohugoio/hugo
  • from'gh-r' — downloads the release archive from GitHub Releases.
  • as'program' — adds the extracted binary to $PATH instead of sourcing it as a plugin.

No shim or annex is required for this recipe; as'program' with Zinit’s built-in PATH management is sufficient.

Terminal window
zi for \
as"program" \
from"gh-r" \
@gohugoio/hugo