2 hours ago · Tech · hide · 0 comments

Thanks to Brennan Day for pointing out how How the Mysterious ScreenJesus can DDoS You, and the subsequent How to Control Your Neocities Thumbnail tutorial, I can, if all goes to plan, testing with this post here, get Neocities to show only the one single thumbnail for this latest post. This is specific to my use of Zola SSG and hosting on Neocities, and will hopefully result in only a single thumbnail of my newest post entry showing in my Neocities feed, rather than all the pages that get updated due to my website build setup: Unnecessary thumbnails taking the focus away from the latest post Using the guide, I figured I could inject this code into my <head> HTML in /templates/partials/base.html which gets included on every single page generated: <script> if (navigator.userAgent === "Screenjesus") { location.replace("/posts/<LATEST-POST>.html"); } </script> All I need to do is update <LATEST-POST> prior to zola build then it should hopefully do the deeds. I could probably automate…

No comments yet. Log in to reply on the Fediverse. Comments will appear here.