If you offer a hosting service, then you need to have some page that shows if a website does not exist on your hosting. For example, when the website has been deleted, suspended, expired or because of invalid DNS configuration. It's like a 404 page but for the whole domain.
This project allows generating a simple page with the following features.
- single page only, just use resulting
index.html
. All styles and JS are integrated in page. - multilingual support with automatic preferred user language detection.
Can correctly handle cases when a user has a complex set of preferred
languages with different locales such as
en-GB
,en-US
, etc. - responsive design
- tests cover all major JS code
The project is made with Hugo for website generation, UIkit for UI, Jest for testing.
- Configure the website options in
/src/config.toml
. - Adjust texts to your needs or add translations in
/src/data/
. To order the languages use theweight
parameter. - Optionally add your own CSS in
/src/assets/custom.css
- Optionally run tests with Jest if you modify the JS code:
npm test
- Build the page with Hugo, run
npm run build
. The generated page will be in/src/public/index.html
.
All contributions are welcome. If you have something to add or share, please open an issue or a PR. Code contribution guide is here.