SITDIARY: THE RETURN OF CREATE AND EDIT

Feeling: accomplished

Dear Sitdiary,

TLDR: You can create and edit posts!

Caveat: The new post editor is experimental! Use at your own risk!

For context, the reason why it took so long to find the right editor is because Sitdiary's database has gone through many changes over the years and the old content was stored as HTML. The old one I was using is basically dead. All the editors that support HTML on Next.js (the codebase Sitdiary uses now) are janky, so I needed a way to support old entry formats but also introduce the new format, which uses Markdown. I am quite fond of Markdown. In fact, on the top right of the Editor, you'll find a swap button that will let you change between writing in WYSIWYG mode and in straight Markdown mode. I prefer the latter.

Anyway, I've done a bunch of testing with my own entries, and using the new editor works well to that extent. It's certainly not going to be perfect, and I'd appreciate it if you guys would let me know when you encounter errors or weirdness, but I figured it would be best to give you something workable now rather than waiting.

When editing posts, you'll notice that the auto save works every 15 seconds, so keep that in mind while writing. There's also UNDO/REDO in the Editor toolbar, so make sure you use those if you need to get something back that was deleted. However, we still don't have revisions here at Sitdiary so if you save and leave, you can't get anything back that was deleted.

Oh, and you'll also see that the post may re-format after being saved. There was really no way around that and I think I came to a good compromise because I believe the posts are going back to the way they were originally.

The dates/times are being stored in the database as UTC, but displayed in PST. For the time being, they are NOT editable.

All the standard stuff should be available -- bold, italic, underline, link, image (by URL only for now), lists, tables, horizontal dividers, and also code blocks. Code blocks are another experimental thing, so use with caution, but it'd be cool to see some discussion about code around this place.

So that's it for now. Let me know if you run into any problems and I'll do my best to get to it.

Thanks!

Scott

Read 12 comments

Bruh! Wut dahhhh lol

↳ Reply to inyearstocome

Can’t tell if you’re happy or not hah

↳ Reply to scott

lol. Sitdiary 2026 gonna be uhhhmazin

↳ Reply to inyearstocome

Heck yeah it is.

Hey scott, i really want to thank you for giving us back the option of having a diary with new timestamps of life. You are really a good guy.


Be well

↳ Reply to hellboy

That's kind of you. Just glad we're breathing some life back into this thing! 🚀

↳ Reply to scott

while i was logged in since yesterday, the draft didnt save while giving back a 'not authenticated' when I logged in again, it drafted and saved it properly. just fyi :-)

↳ Reply to hellboy

Oh man. I'm sorry. Has that happened since??

↳ Reply to scott

Hey, i didnt try another entry. But no worries, i always copy my written stuff first, before i hit any send button :-D

I'll keep you updated

↳ Reply to hellboy

Well, the system should work well. I hate the idea of weird bugs losing people their work. Please let me know if it happens again. If you can, too, let me know exactly what you did so I can reproduce the issue!

↳ Reply to news

The only thing maybe being akward to the system was, that i was logged in since a while, probably more then 24hours. I expect this to be the problem, because of the idle time my account had and the error msg regarding the Authentication. But its just my guess.


After i logged out and in again, the post could be created. But i'll let you know for sure.


↳ Reply to hellboy

Ahhh okay, that does make sense. Ideally you'd be logged out rather than seeing an authentication error, but that would probably do it.