If you offer hosting service then you need to have some page that shows if a website does not exist on your hosting. It was deleted, suspended, expired or because of invalid DNS configuration. It's like a 404 page, but for the whole domain.
This projects allows to generate a simple page for that 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 user has 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/layours/partials/styles.css
- Optionally run tests with Jest if you modify the JS code:
npm test
- Build the page with Hugo, run
hugo --minify
in/src/
directory. 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.