archetypes | ||
content | ||
data | ||
layouts | ||
scripts | ||
static/src/scss | ||
.gitignore | ||
config.yml | ||
LICENSE | ||
package-lock.json | ||
package.json | ||
README.md |
My personal website
This is the source code for my personal portfolio, hosted on my website
Building the website
The website is built using hugo, but you will also need npm
.
npm
is necessary for the ease of version control it provides for the packages we need. These include things such as:
All npm
dependencies are listed in package.json
and can be installed simply by running npm install
.
After all NPM requirements are satisfied, to build the static webpage and hugo
is installed, run ./scripts/build.sh
,
which will create a ./public
directory. This directory will contain all static files and can be used as a location for the file server.
You can then use any file server of your liking to make the webpage available, if you want to stick to hugo, you can also use
scripts/server.sh
, however using this can be a bit slower than using some other tools.
If using the script, it will start the server directly with hugo on http://localhost:1313
.