Vendor pig images locally
This commit is contained in:
parent
915bee04ef
commit
43e6ec26ba
3 changed files with 8 additions and 2 deletions
10
serp.py
10
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 = """
|
|||
<p class="narrative">
|
||||
<em>We are adding the ability to backup entire codebases.</em> Neopig grows hungrier.
|
||||
</p>
|
||||
<img src="https://make-post-sell-files.nyc3.cdn.digitaloceanspaces.com/27ba3c78-432e-11ec-9349-257a83652528/fbc48bff-e895-11f0-8d29-02dfe05770ee/thumbnail1" alt="Neopig grows hungrier" style="width:42%">
|
||||
<img src="/static/images/hungry-pig.jpg" alt="Neopig grows hungrier" style="width:42%">
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
|
@ -3897,7 +3903,7 @@ ABOUT_CONTENT = """
|
|||
<p class="narrative">
|
||||
The archives become self-extracting executables. <code>.run</code> files that contain their own server, their own search engine, their own reality. Drop one on a machine with Python, and it <em>wakes up</em>. A sleeping pig, carrying an entire website in its belly, ready to serve it to anyone who asks.
|
||||
</p>
|
||||
<img src="https://make-post-sell-files.nyc3.cdn.digitaloceanspaces.com/27ba3c78-432e-11ec-9349-257a83652528/fcddf99d-a2da-11f0-af1d-02dfe05770ee/product?ts=1761405992910" alt="A sleeping pig" style="width:42%">
|
||||
<img src="/static/images/sleeping-pig.gif" alt="A sleeping pig" style="width:42%">
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
|
|
|||
BIN
static/images/hungry-pig.jpg
Normal file
BIN
static/images/hungry-pig.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 89 KiB |
BIN
static/images/sleeping-pig.gif
Normal file
BIN
static/images/sleeping-pig.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 5.9 MiB |
Loading…
Add table
Add a link
Reference in a new issue