GitXplorerGitXplorer
e

atlas

public
0 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
8f681fb6262cea9249f5ab546fb29ecc852b9f3c

Fix typo in Netlify build preview command

ccrgeary committed 7 years ago
Unverified
8b4d759eec3f2c9a41e0fa5812522aba62373edf

Fix type in "npm run build" command in netlify.toml

committed 7 years ago
Unverified
ef524c0df032a0fae87fd6fc55506560c3951f90

Change indent in netlify.toml

committed 7 years ago
Unverified
4969f4b9bea2915c6214014d22fb5a6966306061

Tweaked documentation to include Gulp commands

committed 7 years ago
Unverified
42ba424b58b987d3fc2400fb18f26b23d8f2a469

Add /config.toml to watched files

committed 7 years ago
Unverified
af06e6b3012c83d6a7f13203d15c473320c3610c

Replace gulp.watch() with gulp-watch (which is way better 😉)

committed 7 years ago

README

The README file for this repository.

Atlas, Hugo Boilerplate

Atlas

The Hugo boilerplate we use for our projects.

Disclaimer - This boilerplate has been heavily integrated with Netlify, and therefore many features are specific to the Netlify platform and may not work with other hosting providers.

Getting Started

To get started, you can either clone the repository, or deploy straight to Netlify. Then run the following from the project root:

npm install
npm run server

Available Commands

There are 3 commands available:

  • npm run build - Builds assets (sass, js, fonts, images) and runs hugo
  • npm run build:preview - The same as build, but runs hugo --buildDrafts --buildFuture
  • npm run server - Runs BrowserSync and watches for changes, running build when changes are detected

Robots.txt

A default robots.txt can be found at /layouts/robots.txt which is configured to disallow crawlers when the HUGO_ENV environment variable is not set to "production".

Headers

Headers can be configured within /layouts/index.headers, which is then built to /public/_headers.

This is a Netlify feature. Learn more about Headers with Netlify.

Security Headers

Atlas comes with some default headers to help you better protect your site. The default headers we include are: X-Frame-Options, X-XSS-Protection, X-Content-Type-Options, Referrer-Policy.

These headers are configured with the following values:

X-Frame-Options: DENY
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Referrer-Policy: origin-when-cross-origin

Redirects

Redirect rules can be appended to /layouts/index.redirects, which is then built to /public/_redirects.

This is a Netlify feature. Learn more about Netlify Redirects.

Aliases

Hugo Aliases are usually handled by <meta http-equiv="refresh" ...> tags. These have been disabled within config.toml with disableAliases = true, and instead are handled by Netlify Redirects. This is handled automatically and you should continue to add aliases as described in the Hugo documentation.

Deploy to Netlify

You can deploy directly to Netlify using this button:

Deploy to Netlify

License

MIT © Indigo Tree