mirror of
https://github.com/rjNemo/vf-site
synced 2026-06-06 01:16:38 +00:00
86 lines
No EOL
2.2 KiB
Markdown
86 lines
No EOL
2.2 KiB
Markdown
# VillaFleurie rental site
|
|
|
|
[](https://app.netlify.com/sites/villafleurie-site/deploys)
|
|
|
|
## How to use
|
|
|
|
You can build the site using the built-in static site generator included.
|
|
|
|
To create a page, create a `toml` file in the `pages` directory. It should contain at least the following fields:
|
|
|
|
```toml
|
|
name = "index"
|
|
template = "index.html"
|
|
```
|
|
|
|
You can add other fields they will become available in the template.
|
|
|
|
The entry point is located in the [main file](./lib/main.py). It should not be modified.
|
|
|
|
By default, the templates files are located in the [templates](./templates) directory.
|
|
You can use template inheritance.
|
|
|
|
### Configuration
|
|
|
|
The configuration file ([config.json](./config.json)) is mandatory and should resemble:
|
|
|
|
```json
|
|
{
|
|
"name": "VillaFleurie",
|
|
"templatesDir": "templates",
|
|
"staticFilesDir": [],
|
|
"outDir": "dist"
|
|
}
|
|
```
|
|
|
|
### Site Generation
|
|
|
|
You can generate the site by running:
|
|
|
|
```shell
|
|
python -m lib.main
|
|
```
|
|
|
|
### How to run the website
|
|
|
|
It will generate the final files in the [dist](./dist) folder.
|
|
You can run the output files using a simple python server:
|
|
|
|
```shell
|
|
cd dist && python -m http.server
|
|
```
|
|
|
|
### Deployment
|
|
|
|
You can then deploy the site on any platform supporting static sites (Netlify,…) or your own VPS.
|
|
|
|
## TODO
|
|
|
|
- [X] Create a base template for the header and footer
|
|
- [X] Build index page
|
|
- [X] Build room pages
|
|
- [x] T2
|
|
- [x] T3
|
|
- [X] Build contact pages
|
|
- [X] Use netlify form for the contact form
|
|
- [x] Deploy to VillaFleurie's domain
|
|
- [ ] Find attractions for landing page
|
|
- [x] Pick real reviews from AirBnB and Booking
|
|
- [ ] Optimize images
|
|
- [ ] Automate the file search
|
|
- [x] Extract data out of the template
|
|
- [ ] Create a 'all' key for data available in all templates
|
|
- [ ] Create a template for the rooms
|
|
- [ ] Build script before commit
|
|
- [ ] Lit parapluie, barbecue et machine à laver
|
|
|
|
## Excluded
|
|
|
|
* The article page
|
|
* The language switcher
|
|
|
|
## Built with
|
|
|
|
- [Jinja](https://jinja.palletsprojects.com/en/3.1.x/) - fast, expressive, extensible templating
|
|
engine
|
|
- [Netlify](https://www.netlify.com/) - Develop and deploy websites and apps in record time |