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
1y
@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
1y
@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
1y
@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
1y
@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
1y
@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
1y
@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
1y
@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
1y
@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
1y
@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
1y
@xogium Should work
0
0
0
0