GitXplorerGitXplorer
e

atlas

public
0 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
752949775d796cddad8b444d86e41a08157dbac0

Add 'data/**/*' as a directory for Gulp to watch

committed 7 years ago
Unverified
1af6487c9c40828412846489abde440fe319498e

Send output from `hugo` command to console

committed 7 years ago
Unverified
c270a9d0687758405c097f8e066f3ba89d17bff4

Switch netlify.toml to use gulp tasks instead of hugo command

committed 7 years ago
Unverified
ae2651a620d89543140ad31e484750713d54ca08

Add new lines to end of sass & js files for consistency, and to adhere to sass lint rules

committed 7 years ago
Unverified
bb31d00dc28d57bc49fa454cbe4059ef8cdfaac9

Ensure consistency within gulpfile with file paths

committed 7 years ago
Unverified
f48be3d76f97306443e29135562cc1b7d3f49ea9

Added task to copy images into /static, and minify/optimise them

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