Folder Structure
├── static
│ ├── manifest.json
│ └── sw.js
├── hugo.yaml
└── themes
└── E25DXCreate a New Project
hugo new site newsite
cd newsite
git init
git submodule add https://github.com/dumindu/E25DX.git themes/E25DX
rm hugo.toml && cp themes/E25DX/hugo.yaml .
cp themes/E25DX/static/sw.js ./static/
cp themes/E25DX/static/manifest.json ./static/
Note
We don’t need generated archetypes, assets, i18n, layouts folders in the newsite folder
Update Configuration
Change the following values according to the project you are building.
hugo.yaml- languages:
en:titleanden:params:description - params:
projectandauthor
- languages:
static/sw.js- cacheName prefix: ex.
todo-
- cacheName prefix: ex.
static/manifest.jsonname,short_name,description