Find a file
2024-12-19 10:13:36 -05:00
archetypes initial commit 2019-01-23 19:51:26 -05:00
data initial commit 2019-01-23 19:51:26 -05:00
images comment ui build verification js alert, update screenshots, remove webpack dev server 2019-02-18 16:54:04 -05:00
layouts remove deprecated meta tags for old mobile devices 2019-12-15 21:54:00 -05:00
src removed alert comment and rebuilt ui 2019-02-18 19:45:11 -05:00
static/dist Update to support webpack5 2021-08-04 20:29:54 -03:00
webpack Update to support webpack5 2021-08-04 20:29:54 -03:00
.gitignore initial commit 2019-01-23 19:51:26 -05:00
LICENSE.md initial commit 2019-01-23 19:51:26 -05:00
package-lock.json Bump webpack from 5.76.0 to 5.94.0 2024-08-30 10:51:27 +00:00
package.json Bump webpack from 5.76.0 to 5.94.0 2024-08-30 10:51:27 +00:00
postcss.config.js initial commit 2019-01-23 19:51:26 -05:00
README.md ui build requires node v12+ 2021-08-04 22:43:43 -04:00
theme.toml additional tags and blog post link 2019-02-23 14:10:16 -05:00

Starter Theme for Hugo

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

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