blob: 9366118e037fab8ad29fac8d2c29fb3ec205d9e5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
# Starter Theme for [Hugo](http://gohugo.io/)
## Installation
For example, if your Hugo website is in the `www` folder.
```
cd www
git init
git submodule add https://github.com/jimfrenette/hugo-starter.git themes/starter
```
## Dev Hugo Templates
```
cd www
hugo server -D
```
Preview the site, e.g., [`localhost:1313`](http://localhost:1313/)
## Webpack Dev UI
Install node modules
```
cd www/themes/starter
npm i
```
Unminified development build with sourcemaps
```
cd www/themes/starter
npm run dev
```
Build for production with npm run build. CSS and JavaScript files will be output into the starter themes dist folder. e.g.,
```
cd www/themes/starter
npm run build
```
## Comments
To enable DISQUS comments, add `disqusShortname = YOURSHORTNAME` to your config file.
## Production
To run in production (e.g. to have Google Analytics show up), run `HUGO_ENV=production` before your build command. For example:
```
HUGO_ENV=production hugo
```
|