No description
Find a file
2023-06-04 09:45:05 +02:00
css use template 2023-04-21 16:25:17 +02:00
dist add documentation 2023-06-04 09:10:21 +02:00
images change pictures and add files 2023-05-29 14:57:14 +02:00
js use template 2023-04-21 16:25:17 +02:00
lib automatically handle static files 2023-06-04 09:45:05 +02:00
templates add documentation 2023-06-04 09:10:21 +02:00
webfonts use template 2023-04-21 16:25:17 +02:00
.gitignore use config 2023-05-28 12:49:03 +02:00
article.html use template 2023-04-21 16:25:17 +02:00
config.json automatically handle static files 2023-06-04 09:45:05 +02:00
Makefile use config 2023-05-28 12:49:03 +02:00
Pipfile use config 2023-05-28 12:49:03 +02:00
Pipfile.lock use config 2023-05-28 12:49:03 +02:00
pyproject.toml success page 2023-05-28 14:03:49 +02:00
README.md automatically handle static files 2023-06-04 09:45:05 +02:00

VillaFleurie rental site

Netlify Status

Static Site Generator

The entry point is located in the main file. It should not be modified.

The templates files must be located in the templates directory. You can use template inheritance but not yet data injection.

Configuration

The configuration file (config.json) is mandatory and should resemble:

{
  "name": "VillaFleurie",
  "templates": [
    "index.html",
    "t2-corail.html",
    "t3-azur.html",
    "contact.html",
    "reservation.html"
  ],
  "staticFiles": [],
  "outDir": "dist"
}

Site Generation

You can generate the site by running:

python -m lib.main

How to run the website

It will generate the final files in the dist folder. You can run the output files using a simple python server:

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

  • Create a base template for the header and footer
  • Build index page
  • Build room pages
    • T2
    • T3
  • Build contact pages
  • Use netlify form for the contact form
  • Deploy to VillaFleurie's domain
  • Find attractions for landing page
  • Pick real reviews from AirBnB and Booking
  • Optimize images
  • Automate the file search
  • 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 - fast, expressive, extensible templating engine
  • Netlify - Develop and deploy websites and apps in record time