diff --git a/Dockerfile b/Dockerfile index fe16cfc..b4cc3d3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -33,6 +33,7 @@ RUN pip install -Ur requirements.txt \ COPY manage.py tsconfig.json vite.config.ts ./ COPY jssg/ jssg/ COPY content/ content/ +COPY example-content/ example-content/ # Build RUN ./manage.py migrate diff --git a/content/front/entrypoints/demo.ts b/content/front/entrypoints/demo.ts new file mode 100644 index 0000000..84ad775 --- /dev/null +++ b/content/front/entrypoints/demo.ts @@ -0,0 +1 @@ +(document.getElementById("app")! as HTMLElement).textContent = "Hello, world" \ No newline at end of file diff --git a/exemple-content/pages/en/home.md b/example-content/pages/en/home.md similarity index 100% rename from exemple-content/pages/en/home.md rename to example-content/pages/en/home.md diff --git a/exemple-content/pages/fr/accueil.md b/example-content/pages/fr/accueil.md similarity index 100% rename from exemple-content/pages/fr/accueil.md rename to example-content/pages/fr/accueil.md diff --git a/exemple-content/posts/fifth-post.md b/example-content/posts/fifth-post.md similarity index 100% rename from exemple-content/posts/fifth-post.md rename to example-content/posts/fifth-post.md diff --git a/exemple-content/posts/first-post.md b/example-content/posts/first-post.md similarity index 100% rename from exemple-content/posts/first-post.md rename to example-content/posts/first-post.md diff --git a/exemple-content/posts/fourth-post.md b/example-content/posts/fourth-post.md similarity index 100% rename from exemple-content/posts/fourth-post.md rename to example-content/posts/fourth-post.md diff --git a/exemple-content/posts/second-post.md b/example-content/posts/second-post.md similarity index 100% rename from exemple-content/posts/second-post.md rename to example-content/posts/second-post.md diff --git a/exemple-content/posts/sixth-post.md b/example-content/posts/sixth-post.md similarity index 100% rename from exemple-content/posts/sixth-post.md rename to example-content/posts/sixth-post.md diff --git a/exemple-content/posts/third-post.md b/example-content/posts/third-post.md similarity index 100% rename from exemple-content/posts/third-post.md rename to example-content/posts/third-post.md diff --git a/exemple-content/static/css/styles.css b/example-content/static/css/styles.css similarity index 100% rename from exemple-content/static/css/styles.css rename to example-content/static/css/styles.css diff --git a/exemple-content/static/images/tux.png b/example-content/static/images/tux.png similarity index 100% rename from exemple-content/static/images/tux.png rename to example-content/static/images/tux.png diff --git a/exemple-content/templates/jinja2/base.html b/example-content/templates/jinja2/base.html similarity index 100% rename from exemple-content/templates/jinja2/base.html rename to example-content/templates/jinja2/base.html diff --git a/exemple-content/templates/jinja2/blocks/en/navbar.html b/example-content/templates/jinja2/blocks/en/navbar.html similarity index 100% rename from exemple-content/templates/jinja2/blocks/en/navbar.html rename to example-content/templates/jinja2/blocks/en/navbar.html diff --git a/exemple-content/templates/jinja2/blocks/footer.html b/example-content/templates/jinja2/blocks/footer.html similarity index 100% rename from exemple-content/templates/jinja2/blocks/footer.html rename to example-content/templates/jinja2/blocks/footer.html diff --git a/exemple-content/templates/jinja2/blocks/fr/navbar.html b/example-content/templates/jinja2/blocks/fr/navbar.html similarity index 100% rename from exemple-content/templates/jinja2/blocks/fr/navbar.html rename to example-content/templates/jinja2/blocks/fr/navbar.html diff --git a/exemple-content/templates/jinja2/post-list.html b/example-content/templates/jinja2/post-list.html similarity index 100% rename from exemple-content/templates/jinja2/post-list.html rename to example-content/templates/jinja2/post-list.html diff --git a/exemple-content/templates/jinja2/widgets/page_widgets.html b/example-content/templates/jinja2/widgets/page_widgets.html similarity index 100% rename from exemple-content/templates/jinja2/widgets/page_widgets.html rename to example-content/templates/jinja2/widgets/page_widgets.html diff --git a/jssg/settings.py b/jssg/settings.py index cab77d9..a19f253 100644 --- a/jssg/settings.py +++ b/jssg/settings.py @@ -41,11 +41,11 @@ # SECURITY WARNING: don't run with debug turned on in production! DEBUG = environ.get("DJANGO_DEBUG", "false") == "true" -ALLOWED_HOSTS = ["exemple.org", "localhost"] +ALLOWED_HOSTS = ["example.org", "localhost"] # JSSG JFME_DOMAIN = "www.exemple.com" -JFME_CONTENT_DIRS = [BASE_DIR / "exemple-content"] + [BASE_DIR / "content"] +JFME_CONTENT_DIRS = [BASE_DIR / "example-content"] + [BASE_DIR / "content"] JFME_PAGES_DIRS = [path / "pages" for path in JFME_CONTENT_DIRS] JFME_POSTS_DIRS = [path / "posts" for path in JFME_CONTENT_DIRS] JFME_TEMPLATES_DIRS = [path / "templates" for path in JFME_CONTENT_DIRS]