Skip to content

Instantly share code, notes, and snippets.

@CouldBeThis
Last active June 4, 2022 08:50
Show Gist options
  • Save CouldBeThis/95625e91cd835b4cad1f033f9f19df40 to your computer and use it in GitHub Desktop.
Save CouldBeThis/95625e91cd835b4cad1f033f9f19df40 to your computer and use it in GitHub Desktop.
Hugo commands and info

#hugo notes

from help

Flags:
  -D, --buildDrafts                include content marked as draft
      --cleanDestinationDir        remove files from destination not found in static directories
      --enableGitInfo              add Git revision, date, author, and CODEOWNERS info to the pages
      --forceSyncStatic            copy all files when static is changed.
      --gc                         enable to run some cleanup tasks (remove unused cache files) after the build
      --quiet                      build in quiet mode
      --renderToMemory             render to memory (only useful for benchmark testing)
  -t, --theme strings              themes to use (located in /themes/THEMENAME/)
  -w, --watch                      watch filesystem for changes and recreate as needed

shortcodes (bundled with hugo)

embed github gist

{{< gist CouldBeThis 95625e91cd835b4cad1f033f9f19df40 >}}

source: hugo docs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment