Took a while to get the archives links on the sidebar right, apparently post.next doesn’t work. I just did it manually, by adding one to the index. If there isn’t one, then it sets the variable to nothing.

Had to write some plugins as well.

Too lazy to convert the old theme to Jekyll.

I had to “fix” the theme, it was showing the site name two times, on some pages. Didn’t exactly fix it a very good way, you can probably fix it without making a plugin. The plugin counts how many times an exact string appears in another string. Then it changes the title, to just “Tom’s Bowels”.

But I suppose it might be useful for something else.

Need to build the site for deployment, and look at the HTML, to see if the links are right. If they aren’t, I need to fix the theme some more.

So you may not see this post today, the 10th.

Yes it builds the site faster then WordPress. I imported my site to Jekyll, the main reason I switched to it. There’s an official import script, that I modified, so it doesn’t include all the data, like my email, that you can get it my other site. If you know how to replace “thisdomain.org” with the right one.

Does irb work for Jekyll? Cause it’s a real pain in the ass, doing it with the server. If you have a shitload of posts. Perhaps move the posts temporally.

Oh and my new_post.py script was broken, something probably got updated. I fixed it, but realized, it can’t create posts in a sub sub folder. Not sure I need to for this site, not even sure that works.

But what if it isn’t a post? I think you can use sub sub folders for that.

post.next might be fine, if you want the actual next post, not the next post in the posts array. No idea how that person’s archive page works. Then again, I don’t have a flying clue to what I’m doing. I used to know more Ruby, but I forgot it all.

And does include? exist with liquid or whatever? For arrays, maybe not, I have a plugin for it anyways. Might not need it though, I’m too lazy to test without that code. And it finally works, so I’m not changing it.

I stayed up till after 4 AM, trying to get it working. Would have been better off going to bed way sooner, and doing it after waking up.

Categories:

Updated: