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
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 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