hugo/themes/gohugoioTheme
Bjørn Erik Pedersen f27faf9afd Squashed 'docs/' changes from 49809a038..4f4d1f48c
4f4d1f48c Merge commit 'ccb3ee5c57a00d5d32c53c882cf9893181a6ec10'
ccb3ee5c5 Squashed 'themes/gohugoioTheme/' changes from dafc91ff1..042112e2d

git-subtree-dir: docs
git-subtree-split: 4f4d1f48cd3da268c108f1ea6c204dd30f516bb1
2019-02-01 09:08:24 +01:00
..
archetypes Squashed 'docs/' changes from 2fc775dec..f97826a17 2018-02-10 12:51:31 +01:00
assets Squashed 'docs/' changes from 785e375f..49809a03 2019-02-01 09:01:04 +01:00
data Squashed 'docs/' changes from e161ea09d..0fd7b4169 2018-05-25 15:04:07 +02:00
layouts Squashed 'docs/' changes from 49809a038..4f4d1f48c 2019-02-01 09:08:24 +01:00
src Squashed 'docs/' changes from 785e375f..49809a03 2019-02-01 09:01:04 +01:00
static Squashed 'docs/' changes from 785e375f..49809a03 2019-02-01 09:01:04 +01:00
.gitignore Squashed 'docs/' content from commit f887bd7b 2017-08-10 17:18:22 +02:00
license.md Squashed 'docs/' content from commit f887bd7b 2017-08-10 17:18:22 +02:00
package-lock.json Squashed 'docs/' changes from 37095d540..d1cf9adc4 2018-12-12 09:05:31 +01:00
package.json Squashed 'docs/' changes from 37095d540..d1cf9adc4 2018-12-12 09:05:31 +01:00
README.md Squashed 'docs/' changes from 37095d540..d1cf9adc4 2018-12-12 09:05:31 +01:00
theme.toml Squashed 'docs/' changes from 896bad9f4..e161ea09d 2018-05-04 09:44:21 +02:00
webpack.config.js Squashed 'docs/' changes from 37095d540..d1cf9adc4 2018-12-12 09:05:31 +01:00

GoHugo Sites Theme

Theme for gohugo.io sites:

Tools

NPM

We use NPM for package management The theme's .gitignore file should be kept intact to make sure that all files in the node_modules folder are not pushed to the repository.

Webpack 4+

We use Webpack to manage our asset pipeline. Arguably, Webpack is overkill for this use-case, but we're using it here because once it's set up (which we've done for you), it's really easy to use. If you want to use an external script, just add it via Yarn, and reference it in main.js. You'll find instructions in the js/main.js file.

PostCSS

PostCSS is just CSS. You'll find postcss.config.js in the Webpack.config.js file. There you'll find that we're using postcss-import which allows us import css files directly from the node_modules folder, postcss-cssnext which gives us the power to use upcoming CSS features today. If you miss Sass you can find PostCss modules for those capabilities, too.

Tachyons

This theme uses the Tachyons CSS Library. It's about 15kb gzipped, highly modular, and each class is atomic so you never have to worry about overwriting your styles. It's a great library for themes because you can make most all the style changes you need right in your layouts.

How to Use

You'll find the commands to run in package.json.

For development, you'll need Node with NPM installed:

$ npm install

$ npm start

This will process both postcss, fonts, and scripts.

For production, instead of npm start, run npm run build, which will output smaller versions of your files.