From 69ef1f7a1a4c0507108f130aeeb3e8e274efbfd1 Mon Sep 17 00:00:00 2001 From: Kumi Date: Mon, 1 Jul 2024 10:50:00 +0200 Subject: [PATCH] feat: update README and asset paths for static site generation Switched the project description from a Flask application to a Jinja2 static website generator. Adjusted asset links in the base template to be relative, enhancing portability and simplifying deployments. These changes aim to better reflect the project's current architecture and usage. --- README.md | 8 +++++--- templates/base.html | 6 +++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 1b88198..b65eb20 100644 --- a/README.md +++ b/README.md @@ -5,8 +5,9 @@ This is the source code for the [Private.coffee](https://private.coffee) website. -It is a simple Flask application that generates the HTML for the website based -on the services defined in the `services.json` file. +It is a simple Jinja2 static website generator that compiles the templates in +the `templates` directory in conjunction with the JSON files in the `data` +directory to generate the static HTML files in the `build` directory. ## Development @@ -18,7 +19,8 @@ pip install -r requirements.txt python main.py ``` -The website will be available at `http://localhost:9810`. +The website will be built into the `build` directory, and you can view it by +opening the `index.html` file in your browser. ## License diff --git a/templates/base.html b/templates/base.html index 2b6ce88..81c4d6c 100644 --- a/templates/base.html +++ b/templates/base.html @@ -11,8 +11,8 @@ content="width=device-width, initial-scale=1.0, shrink-to-fit=no" /> {% block title %}{% endblock %} - Private.coffee - - + + @@ -24,7 +24,7 @@