What is this repo?
This repository contains the source code for
gadgetlunatic.com, a personal webite / tech blog built with Hugo.
- Node.js (v10.15.3)
git clone https://github.com/kazushisan/gadgetlunatic.git cd gadgetlunatic yarn install
Develop / Write
The result can be seen on
Webpack is used to bundle and handle assets under
/src. To reduce disk writes, Webpack will not write write the bundled files to local storage during development. Instead,
webpack-dev-server will start on
http://localhost:1314 and host the bundled files from memory.
Hugo will run a server on
Therefore, make sure that
webpack-dev-server is also running along with Hugo when developing or writing.
/src and write to
/static. It will also produce
/data/manifest.json which includes the paths to bundled files.
Using this manifest, Hugo will build the articles to
/public. Hugo will fail to build the website if
/data/manifest.json is not present.
The website will deploy automatically when a commit is pushed to
gadgetlunatic.com is hosted as a static website using Netlify.
Make sure that all Linters pass before making a commit.
yarn lint # or to fix automatically, yarn lint:fix