Skip to content

Instantly share code, notes, and snippets.

@damien1
Last active July 22, 2020 07:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save damien1/b90e0c3005e3b6a9154fb9399fd88f38 to your computer and use it in GitHub Desktop.
Save damien1/b90e0c3005e3b6a9154fb9399fd88f38 to your computer and use it in GitHub Desktop.
Basic Hugo .gitignore template
# Basic gitignore template for Hugo SSG - which has some stuff for WordPress migration
#
# This is a template .gitignore file for git-managed Hugo projects.
#
# Fact: you don't want Hugo core files, or your server-specific
# configuration files etc., in your project's repository. You just don't.
#
# Ignore everything in the root except the "content" directory and "static"
/*
!.gitignore
!content/
!*.toml
!static/
#OS
.DS_Store
# Ignore everything in the "content" directory,
# and "themes" directories.
content/*
themes/*
# uncomment below if you dont want to load static img resources
# !static/img
# uncomment below if you are migrating from WordPress
# static/wp-content/*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment