Find a file
2024-09-23 19:38:36 -04:00
archetypes Hugo & Svelte template 2019-10-03 18:07:50 -04:00
layouts Hugo & Svelte template 2019-10-03 18:07:50 -04:00
svelte Hugo & Svelte template 2019-10-03 18:07:50 -04:00
.gitignore Hugo & Svelte template 2019-10-03 18:07:50 -04:00
config.toml Hugo & Svelte template 2019-10-03 18:07:50 -04:00
LICENSE Add LICENSE 2019-10-03 22:18:11 +00:00
package-lock.json Bump rollup from 1.22.0 to 3.29.5 2024-09-23 23:02:34 +00:00
package.json Bump rollup from 1.22.0 to 3.29.5 2024-09-23 23:02:34 +00:00
README.md Updated README.md 2019-10-03 18:13:02 -04:00
rollup.config.js Removed dangling variable hugo 2019-10-29 17:13:31 -04:00

Hugo-Svelte app

This is a project template for Svelte and Hugo apps. It lives at https://gitlab.com/datwood/hugo-svelte.

To create a new project based on this template using degit:

npx degit git@gitlab.com:datwood/hugo-svelte.git hugo-svelte
cd hugo-svelte

Note that you will need to have Node.js installed.


Get started

Install the dependencies...

cd hugo-svelte
npm install

...then start Rollup and Hugo:

npm run dev

Navigate to localhost:1313. You should see your app running. Edit a component file in svelte and save it. Livereload is built-in.

Building

From within your project folder:

npm run build

You will find your website files inside public/.