News for hackers. Stuff that matters.
Re:Using static websites for tiny archives by egeozcan on Friday October 18, 2024 @04:44AM (#41877482)
I copy the images in my clipboard and save them in an HTML file to have single-file galleries:

https://gist.github.com/egeozcan/b27e11a7e776972d18603222fa5...

Live:

https://gistpreview.github.io/?b27e11a7e776972d18603222fa523...

Selecting via file-picker works too. Dragging usually does not. When all works, images are inserted inline as blobs.

After adding images, if you save the page (literally file->save), the blobs are saved together. don't want a part when saving (for example, removing images)? inspect element, remove, save page.

throw the page on some server or just double click on your computer/mobile.

Re:Using static websites for tiny archives by mikae1 on Friday October 18, 2024 @06:00AM (#41877827)
Love it! True to the original vision of the WWW. Tim Berners-Lee's WorldWideWeb browser was also an editor.

https://github.com/cadars/john-doe gives me the same feels.

Re:Using static websites for tiny archives by _giorgio_ on Tuesday October 22, 2024 @09:51AM (#41914266)
LOL
Re:Using static websites for tiny archives by joncfoo on Friday October 18, 2024 @05:08AM (#41877598)
That is slick. Offline first in the truest sense.
Re:Using static websites for tiny archives by freetonik on Friday October 18, 2024 @05:13AM (#41877626)
This is very cool, thank you for sharing.
Re:Using static websites for tiny archives by thatcat on Friday October 18, 2024 @10:57AM (#41880026)
Very cool design! note if you can't get it to work, make sure you set file type to complete webpage when saving.
Re:Using static websites for tiny archives by simonw on Friday October 18, 2024 @12:20PM (#41880857)
That's really neat!

You could add a "Download this page" button on the page which does some tricks to produce an HTML file with the images baked in that the user can download, which could work on mobile.

Here's a quick prototype: https://gistpreview.github.io/?14a2c3ef508839f26377707dbf5dd... - code here: https://gist.github.com/simonw/14a2c3ef508839f26377707dbf5dd...

Re:Using static websites for tiny archives by egeozcan on Friday October 18, 2024 @01:17PM (#41881462)
Thank you! Great idea, I'll give it a try :)
Re:Using static websites for tiny archives by DemocracyFTW2 on Saturday October 19, 2024 @03:32AM (#41886272)
Can also recommend Single File browser extension https://github.com/gildas-lormeau/SingleFile-MV3
Re:Using static websites for tiny archives by dmje on Saturday October 19, 2024 @08:58AM (#41887514)
Thanks for sharing! Mind: expanded