https://github.com/jimfrenette/hugo-starter
Hugo starter theme with webpack 5 ui build workflow
https://github.com/jimfrenette/hugo-starter
hugo hugo-blog-theme hugo-theme sass webpack
Last synced: 5 months ago
JSON representation
Hugo starter theme with webpack 5 ui build workflow
- Host: GitHub
- URL: https://github.com/jimfrenette/hugo-starter
- Owner: jimfrenette
- License: mit
- Created: 2019-01-24T00:35:10.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-12-19T15:13:40.000Z (over 1 year ago)
- Last Synced: 2024-12-19T16:25:21.086Z (over 1 year ago)
- Topics: hugo, hugo-blog-theme, hugo-theme, sass, webpack
- Language: HTML
- Homepage: https://jimfrenette.com/2019/02/hugo-static-site-generator-blank-starter-theme/
- Size: 1.95 MB
- Stars: 22
- Watchers: 3
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Starter Theme for [Hugo](http://gohugo.io/)
[Hugo Static Site Generator Blank Starter Theme](https://jimfrenette.com/2019/02/hugo-static-site-generator-blank-starter-theme/)
## 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 - Requires Node v12 (lts/erbium)
```
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
```