User avatar
Casey Reeves (it/its) @xogium@tech.lgbt
1y
@fastfinge Hi!

I was wondering, what powers your stuff.interfree.ca blog? This looks better than writefreely, what with having replies from fedi straight up displayed on the website itself, and the possibility of actually replying right from any client.

Does it allow for people to subscribe via emails too?
2
0
0
0
1y
@xogium No. It’s a custom statiq template with lots of JavaScript for comments and betula for the links, updated by rclone and all wrapped up in a powershell script.
1
0
0
0
User avatar
Casey Reeves (it/its) @xogium@tech.lgbt
1y
@fastfinge Holy jeez that sounds like a TON of work. Much respect.
2
0
0
0
1y
@xogium You can get the JavaScript for fediverse comments with a quick view source if that’s all you want.
1
0
0
0

User avatar
Casey Reeves (it/its) @xogium@tech.lgbt
1y
@fastfinge I don't quite know how I'd integrate that into writefreely. You have any idea?
1
0
0
0
@xogium I’ve never used write freely sorry. You’d need to modify the template or theme somehow.
1
0
0
0
User avatar
Casey Reeves (it/its) @xogium@tech.lgbt
1y
@fastfinge I think that can be done, but I'm gonna check the doc to be sure of whatever I'm saying. :D
1
0
0
0
@xogium Basicly you ad some JavaScript in the head section, and a div on every post with the url of a mastodon post to get replies to.
1
0
0
0
User avatar
Casey Reeves (it/its) @xogium@tech.lgbt
1y
@fastfinge Hmmm. It looks like writefreely uses ninja2 for template generation. I believe I could get away with customizing the base.tmpl file, this way.

What would I need as html into the post for example for this to work then?

That does look very much promising.
2
0
0
0
@xogium I’m not at my desk. But view source on an article from my blog and it should be obvious. You’re looking for the fediverse comments js file in the head section and the div in the body that refers to fed.interfree.ca
1
0
0
0
User avatar
Casey Reeves (it/its) @xogium@tech.lgbt
1y
@fastfinge Gotcha. I'll have a look. Thanks!

It looks like you can only customize css and js if you're a pro subscriber of write.as. Too bad I self-host it and can thus do whatever the hell I want anyway. Hah.
0
0
1
0
@xogium We can jump on a call Monday night and I can help if you haven’t figured it out by then
1
0
1
0
User avatar
Casey Reeves (it/its) @xogium@tech.lgbt
1y
@fastfinge I think I've got it... Somewhat. I didn't see the stuff.interfree.ca/js/fediverse-comments.js in the head but I found it later down in the article. Still hunting for the url. :D
1
0
0
0
@xogium Oh! You're absolutely correct. I moved that for...reasons...Yeah. So the full bit you would insert would be everything between lines 128 and 136.
1
0
0
0
User avatar
Casey Reeves (it/its) @xogium@tech.lgbt
1y
@fastfinge Alrighty. I'll check those lines specifically. Is there any other requirement? Like for example is the fediverse post you link to having to be on a server where you store and retrieve comments?

I don't think writefreely even stores or cares about comments this way so if you reply from another fedi client to the post from the blog itself they will just disappear into the void on the writefreely side but be visible in the fedi thread itself, if that makes sense.
1
0
0
0
@xogium Nope. It can be a post on any server that supports the mastodon api. When a visitor loads the page the JavaScript runs and goes to get the comments. It all happens client side. That’s why you have to have the plain html link to the comments. If someone visits with JavaScript off the comments won’t load.
1
0
0
0
User avatar
Casey Reeves (it/its) @xogium@tech.lgbt
1y
@fastfinge Oh, okay, got it. So if I have a blog post lets say for example xogium.me/the-space-between-us, I then could refer to this exact same url in the html body to load comments from?

I think I'm getting this right, but unsure.
2
0
0
0
@xogium No, you have to refer to the url of a post on mastodon. So the workflow is: post to the blog, share on mastodon, then update the blog post with the url of your toot.
1
0
0
0
User avatar
Casey Reeves (it/its) @xogium@tech.lgbt
1y
@fastfinge Oh. I see, yeah.. Hmm. That's not exactly how writefreely works. You basically write a post, and then writefreely itself makes a fedi post that leads users that follow your blog to the new article you've just put up.
2
0
0
0
@xogium You mean write freely posts to your mastodon account for you?
0
0
0
0
@xogium The disadvantage of my approach is if I don’t share a post on this account, it can never have comments. Also people get horrible warnings because error checking is for weaklings, not brilliant men like me.
0
0
0
0
@xogium Then any reply to that toot shows up as a comment.
1
0
0
0
User avatar
Casey Reeves (it/its) @xogium@tech.lgbt
1y
@fastfinge No, writefreely itself is on fedi via my @xogium handle. That gives the whole timeline of my blog. If you were to follow this user, you'd get notified of every new post I put up, with a short headline, plus direct link to the blog post.
1
0
0
0
@xogium @xogium Oh got it. If it supports the mastodon API giving the post url would work. But I doubt it does.
1
0
0
0
User avatar
Casey Reeves (it/its) @xogium@tech.lgbt
1y
@fastfinge @xogium @fastfinge Ha ha ha.

I do like writefreely, but I just wish they actually took accessibility into consideration more... The web ui for writing is a bit, well, erm... Not so great. Usable, but not great.

Having it directly federating on its own is good too, but then that means of course that I have no way of retrieveing comments that were posted. So there are often replies in the fedi posts it created, but they all just silently go nowhere and remain visible only for example if I go and check myself with tweesecake, on this specific user timeline.

I don't know if it supports the mastodon api, although... I mean how could it publish toots otherwise?
3
0
0
0
@xogium @xogium So the mastodon api is what apps like tweesecake use. It’s not part of the activity pub protocol. I looked at write freely and didn’t use it for accessibility reasons. I write my posts in markdown, save them in a special folder, and run my powershell script to update the blog.
0
0
0
0
@xogium @xogium If your on Linux take a look at Hugo. It has ways of doing the same kind of thing.
1
0
1
0
User avatar
Casey Reeves (it/its) @xogium@tech.lgbt
1y
@fastfinge Hah. So I found, you can turn off federation. So in theory I could the do this the manual way. Publish something, get it up on website itself, then write a short toot with my main account mentioning it. This should be making it possible for me to also use your script. Right?
1
0
0
0
@xogium Right.
1
0
0
0
User avatar
Casey Reeves (it/its) @xogium@tech.lgbt
1y
@fastfinge Okay so I figured out where to stuff the js, I'm guessing in the base template should do the trick... Hopefully, at least.
1
0
0
0
@xogium Should work
0
0
0
0