v1.31 Better handling of dates and post titles! Plus small but important bugfix!


First off, I fixed a small but significant bug where I missed one link in the version 1.1 update. If you're following the default workflow, then the bug should not have been noticeable. One of the "previous" links was still pointing to the root, so if you try to test it offline on your computer or if you put your whole Zonelet in a subdomain of your site, then that link will break. I'd recommend updating in case you end up wanting to do one of those things with your site in the future!

Next, I made it so that the "special characters alternate titles" would appear in the post lists, not just on the post pages themselves (as seen below). I also made it so that if you don't have to put the date in the file name, the post title will still appear correctly formatted (also seen below).

Finally, I made it so that the date appears (in a nice, readable format!) below the title of your default blog post:

Updating from previous versions:

If you installed a previous version, but would like to add these features, it's easy! Simply open up your script file, and replace sections 3 and 4 with the new sections 3 and 4, leaving your sections 1 (Basic Info) and 2 (Posts Array) intact. This will update the function of your blog, without deleting the important customization that you've done so far! (This is of course assuming that you have not edited your sections 3 and 4, but if you're a more advanced user, you know that!)

NOTE to get the date to appear, you must also place an h4 tag with the id "postDate" below your post title so it looks like this:

<h1 id="postTitleH1"></h1>
<h4 id="postDate"></h4>

Add this to your post template so that you will always have the date showing by default!

IMPORTANT:

If you started out with version 1.0, I STRONGLY recommend that you look at the new HTML cheat sheet and CSS files. Basically, for the images in your posts, set the links to "../images/image.png" instead of "/images/image.png" (the difference is the two dots in front). This will save you from having to fix the links later, again, if you want to use your site offline or in a subdomain.

If you have any questions or run into problems, please email me at zonelets.blogs@gmail.com!

Files

zonelet_starter_01_31.zip 135 kB
Nov 16, 2020

Get Zonelets (Starter Files)

Leave a comment

Log in with itch.io to leave a comment.