diff --git a/serp.py b/serp.py index 5e67b19..1d6046b 100644 --- a/serp.py +++ b/serp.py @@ -632,6 +632,12 @@ if STATIC_VENDOR_PATH.exists(): app.mount("/static/vendor", StaticFiles(directory=STATIC_VENDOR_PATH), name="vendor") logger.info(f"Static vendor files mounted from {STATIC_VENDOR_PATH}") +# Mount static images +STATIC_IMAGES_PATH = Path(__file__).parent / "static" / "images" +if STATIC_IMAGES_PATH.exists(): + app.mount("/static/images", StaticFiles(directory=STATIC_IMAGES_PATH), name="images") + logger.info(f"Static images mounted from {STATIC_IMAGES_PATH}") + # Config - set via startup DB_PATH = "data/neopig.db" VAULT_PATH = Path("data/vault") @@ -3864,7 +3870,7 @@ ABOUT_CONTENT = """

We are adding the ability to backup entire codebases. Neopig grows hungrier.

- Neopig grows hungrier + Neopig grows hungrier @@ -3897,7 +3903,7 @@ ABOUT_CONTENT = """

The archives become self-extracting executables. .run files that contain their own server, their own search engine, their own reality. Drop one on a machine with Python, and it wakes up. A sleeping pig, carrying an entire website in its belly, ready to serve it to anyone who asks.

- A sleeping pig + A sleeping pig diff --git a/static/images/hungry-pig.jpg b/static/images/hungry-pig.jpg new file mode 100644 index 0000000..a165f54 Binary files /dev/null and b/static/images/hungry-pig.jpg differ diff --git a/static/images/sleeping-pig.gif b/static/images/sleeping-pig.gif new file mode 100644 index 0000000..ff61e4b Binary files /dev/null and b/static/images/sleeping-pig.gif differ