TalAter / UpUp

✈️ Easily create sites that work offline as well as online
https://www.talater.com/upup/
MIT License
4.88k stars 264 forks source link

Using Jekyll - serve first 5 articles / posts if site is offline #90

Closed vilav closed 8 years ago

vilav commented 8 years ago

Hello

I'm learning Jekyll and have some experience with HTML/CSS. Is there a method to, when a Jekyll site is offline, make the latest 5 articles available offline (with assets) dynamically? Any tips would be super helpful.

Also, if specific files are cached offline, does that mean for future visits those files will no longer make HTTP requests?

Thanks!

TalAter commented 8 years ago

You would have to create a page with Jekyll that includes that posts, and cache them with UpUp... The details of the implementation are a Jekyll thing, which I have to admit I am not very familiar with.

Regarding your 2nd question: Those files will still make HTTP connections... UpUp will only serve them if that connection fails.