header.jpg
header.jpg
November 3, 2021

.gitignore for GoHugo

I really like(d) the gitignore-generator of Toptal.com where you can create your own customised .gitignore file by selecting all tools, frameworks, programming languages etc. that you use in a project. I even contributed (which is not too hard, hint hint). But somehow all these changes were removed by merging the status of what appears to be the parent project for these .gitignore contents. I now added these changes “upstream” and hope they will be added again to the .gitignore template for GoHugo.

The current optimum .gitignore content for a GoHugo project is the following:

 1# Generated files by hugo
 2/public/
 3/resources/_gen/
 4/assets/jsconfig.json
 5hugo_stats.json
 6.hugo_build.lock
 7
 8# Executable may be added to repository
 9hugo.exe
10hugo.darwin
11hugo.linux