Follow

So its done! I finally released a fairly easy to install (from scratch) Hugo based Static Site generator with full ActivityPub support.

It has step-by-step instructions on how to set it up for your own blog or static website.

One of the coolest features for me, other than having your static site blog posts show up as posts in the Fediverse is the support for interacting with those posts. Any replies you leave, likes, or boosts will show up in the "comments" section of the website on the page associated with the post. How cool is that!

ยท ยท 14 ยท 84 ยท 128

@freemo That's great! Congratulations!

Did you use the plugin by @pfefferle? ๐ŸŒŸ

@MariaLiv

I dont think so, a plugin for what exactly? You mean the older wordpress plugin?

@pfefferle

@freemo interesting! How complicated would it be to deploy elsewhere than Vercel? Just curious, as I donโ€™t typically use Vercel myself.

Great to see more AP-compatible code.

@andypiper

I dont use vercel normally either. I used vercel for the first time for this project and liked it.

To answer your question it depends if you want full features or not.

Witout vercel you wont have the serverless functions. They handle things like accepting new followers. So without vercel (or something to take its place) then people can see your account via the fediverse but following it wouldnt really work (you wouldnt see new posts in your feed and your follow request will never get accepted)... but otherwise it will "work" with limited functionality.

That said the serverless functions can be moved to any platform.

You could in theory get rid of the serverless functions and make it all truely static. If you did that (which would take a bit of coding) then theonly time followers would get confirmed would be when you push a new version of the site.. but otherwise you could, in theory, get the full functionality out of it. with some creativity.

@freemo congrats!!... and thanks, thanks, thanks for this gem

I'll give it a try :-)

@andypiper

@jla

If you feel like it please let me know how it goes.

You are welcome.

@andypiper

@freemo I love hugo. Probably should try new version, not the 5y old one currently using.
On the other side it's a beauty of static hugo binary - even 10y old could still generate web.

@ephemeromorph Let me know if you have any questions about it or any feedback or even help if you decide to install it.

@freemo Please can you point out where I can see the 'step by step instructions'? I don't see them on the link you posted.

@ephemeromorph They are in the readme on the repo. Did you not find it, need a link?

@ephemeromorph Wonderful, let me know if you need any help going through it. I think i am the only one to deploy it so far, though I've done it 3 times.

@freemo@qoto.org just noted a bug here regarding the visibility of your post on the *keys: the link to fedipage does not show up for some reason > screenshot from blahaj.zone > same result on firefish, misskey etc

@testing Not a bug.. i changed some things about how the site renders its pages so it broke old boosts knowingly.. but it continues to work properly.. thats just a "ghost"

@freemo@qoto.org congrats for fedipage btw โฃ๏ธ

following
@fedipage@fedipage.com is recommended โ™ฅ๏ธ

@testing Thank you. Let me know if i can help at all..

Keep in mind being a bit new if you follow it you may get occasional repeat notifications... I try to keep it minimal though. This only happens when i need to change the way AP renders and it needs to resend all the pages out... should be fairly rare but might happen once or twice as i improve the system.

So your welcome to follow but please do so at your own risk :)

@freemo
Does it support CSS customization for the iframe?

@mur2501 You mean the microblogging feed that sits on the right hand side near the menu in the blog?

@freemo
yeah on your blog, isn't that your Mastofeed github project?

@mur2501 no i didnt write mastofeed I just consume it.

But yes mastofeed is fully customizable with css as far as I can tell. Havent tested it though beyond the basic settings.

@freemo Ahh didn't saw the creator of the repo properly.
Anyway that reminds, what projects are you working on currently?

@mur2501

The following are some im particularly active on:

git.qoto.org/digipex
hub.digipex.io
flear.com
fedipage.com
aparapi.com

I am also just received funding for one of my companies, but that info isnt public yet.

@freemo
actually I would like to work on it, seems very interesting

@mur2501 Aparapi is one of my most challenging projects to contribute to. but also very rewarding.

It is also relatively active with a few devs and with my main company getting funding it will likely funnel some resources into Aparapi. So its a great project to get involved in especially right now.

@freemo
for the documentation part where you try to explain JVM Bytecode I think preceding it with Dennis Yurichev's Reverse Engineering Book's Chapter 4 on JVM would be a good idea to make the doc more consumable for people looking at JVM Bytecode for the first time in life.

beginners.re/RE4B-EN.pdf

@mur2501 Please feel free to get your feet wet by submitting pull requests on the documentation itself.

@freemo
Change in plans it looks like Yurichev has paywalled his open source book. I am confused about the legalities of directly copying content (with attribution ofcourse) :blobcatsadlife:

@mur2501 You wont be able to directly copy content unless he has released it to the public domain or under an open source license...

However if he did either in the past, and LATER paywalled it you can still use the earlier version freely.

@freemo Well my pirated pdf copy says CC licensed on the front (which technical means it is not pirated)
It is behind a paywall but the license is still CC

Show more

@freemo
I have looked into the problem it seems the main issue is using http for googleapis rather than https, browsers seem to block all http link by default. I will change them to https links.

@mur2501 Oh nice, did you submit a push for that as well, ill review shortly.

@freemo I have committed but haven't pushed as there are some other errors and stuffs to due the code being 7 years old. Alot of the links are dead. I have removed the Google Plus button as it exists no more.
Twitter works but the handle is it active still?
and yes in the demonstration page many websites seem to exists no more.

PS: Also I think it would better if we use CDN links rather than actual JS files

@freemo
That flear.com one says it is on sale for 15000USD

@freemo I only saw this now.

Going to try this on my #Hugo / #GoHugo sites. ^_^ (Though I'm using CFPages, so I might have to find another way.)

@gohugoio

@youronlyone @gohugoio

If you need any help let me know. It seems fairly stable for me right now. I have 3 sites running it successfully for a little bit now

@freemo Fabulous. I looked at Hugo and it drove me mad. Curious how you made that magic happen.

@paul I found it to be a arelatively simple static site engine overall. But it does take some time to learn the language. If there is something in particular that confuses you just let me know.

@freemo It's been a long while, since I messed with it. I think it was mainly the language which puzzled me. Which is interesting as I've programmed all kinds of crap. Working too many hours in a week probably didn't help much.
@freemo Trying something. It already fails:

$ hugo new content posts/my-first-post.md
Error: failed to resolve "content" to a archetype template

(Just following the first site steps on https://gohugo.io/getting-started/quick-start/ )

Did you run into this as well?
@freemo Ahhh, the code on the quickstart page is wrong.
$ hugo new content/post/filename.md

works a lot better.

@paul I would follow the instructions on the git for fedipage rather than hugo if your trying to setup fedipage: git.qoto.org/fedipage/fedipage

@freemo For now I am trying to get hugo to actually add a new content .md file. Which actually worked in the end, when I found what was wrong.
@freemo I am doing this as a new project without fedipage.

First I want to get a bit of a feel for it. If it's easy enough, I may examine if there is a way to import my various existing (static site) sites into Hugo, through some converter or so. Those have hundreds of articles and pages, so I'm not typing them in again ๐Ÿ˜‰

Also I'm not going to put a lot of time into it every day. My workdays are long enough. ๐Ÿ˜‰

@paul

I moved over from middleman static site generator. The pages moved over without a hitch for me. Any markdown based source should be relatively easy to convert.

Keep in mind Hugo wont give you fediverse/activityPub access on its own. Its just another (nice) static site generator. The ability to integrate with the fediverse is entirely a fedipage thing.

@freemo My sites are in a SQLite database, created by Publii, which creates clean HTML when I output the site. Nothing markdown about it.
This does not sound like an easy transfer, then. Thank you for the information.
I'm not focussing on the Fedipage part for anything at the moment. If I can't make Hugo work for me 'as is' (including importing my existing sites), then that route is not happening.
It might be interesting for a new site I could set up. But that's not in the books yet.

@paul Going from raw html will be more difficult.

You might need some additional effort.

When you write your journal entries then you are writing them in raw HTML? If not what markup language do you write your articles in?

@freemo No Markup language.

See image of Publii's post editor:
You will probably start crying now. Sorry.
Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.