freemo,
@freemo@qoto.org avatar

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!


QT: https://fedipage.com/news/fedipage-v1-0-1-released/

box464,
@box464@mastodon.social avatar

@freemo Can’t wait to try this out!

freemo,
@freemo@qoto.org avatar

@box464 I'd love to hear what you think once you do.

ephemeromorph,
@ephemeromorph@topspicy.social avatar

@freemo What?! Holy crap! 💜

freemo,
@freemo@qoto.org avatar

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

ephemeromorph,
@ephemeromorph@topspicy.social avatar

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

freemo,
@freemo@qoto.org avatar

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

ephemeromorph,
@ephemeromorph@topspicy.social avatar

@freemo Ohh, I see. Found it, thanks!

freemo,
@freemo@qoto.org avatar

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

18+ freeschool,
@freeschool@qoto.org avatar

@freemo and all from this page -

2 questions please:

1❓Do you know anyone willing to set up a website to do this (for money or not setup basically a Hugo static site + Fedi interaction while being privacy-minded / reduce using google type stuff / building it with less wanting it for mass-scraping so easily).

2 ❓Did you manage to replicate / get your own static site going with Fedi stuff added?

Thanks:
@MariaLiv
@andypiper
fenix @jla
@Rado1
@ephemeromorph
@testing
@mur2501
@youronlyone
@paul
@box464
@aj
@yogthos
@sandwich
@kevin
@mandaris
@gabriel

or minded progressive people for each other

philip,
@philip@mallegolhansen.com avatar

@freemo Sorry if I’m being blind, where are these instructions accessible?

freemo,
@freemo@qoto.org avatar

@philip

Its on the readme for the project: https://git.qoto.org/fedipage/fedipage

mandaris,
@mandaris@social.lol avatar

@philip @freemo I had the same question

freemo,
@freemo@qoto.org avatar
sandwich,
@sandwich@social.archworks.co avatar

@freemo
This is amazing!!!

freemo,
@freemo@qoto.org avatar

@sandwich

Thanks if you use it please feel free to give me any feedback you have.

yogthos,
@yogthos@mas.to avatar

@freemo @@nasser I recall we chatted about this a little while back :)

freemo,
@freemo@qoto.org avatar

@yogthos

Its a post from oct 11 so it may have been when I made the post? :) "

For some strange reason the last two days its getting boosted despite being a bit old.

@nasser

yogthos,
@yogthos@mas.to avatar

@freemo @nasser might've been boosted by a big account and got lots of visibility :)

freemo,
@freemo@qoto.org avatar

@yogthos

I guess so... I wonder who.

@nasser

rapha3l,

@freemo
Where can I download it?

freemo,
@freemo@qoto.org avatar
aj,
@aj@home.ajacks.net avatar

@freemo Damn this is cool!

freemo,
@freemo@qoto.org avatar

@aj Thanks, enjoy. Reach out if you have any questions or need help.

admin,
@admin@mastodon.ai8w.ddns.net avatar

@freemo

And here I am trying to figure out the easiest way to flush my server's block list without destroying the server's database...

I could do it via SQL query, but I'm not certain that's ALL that the server software needs done...

Been messed up before like that... Cleared the addresses, but there were other references and that software never worked the same. Ended up wiping and starting over.

It'd be nice if we had clear documentation for using the cli and scripting it... I just haven't found it yet.

freemo,
@freemo@qoto.org avatar

@admin Sorry didnt realize this post was on my Fedipage post when I first responded.

Fedipage doesnt really institute server block lists yet. But it would be an easy addition to keep certain servers out of the comments.

paul,
@paul@fedi.nlpagan.net avatar

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

freemo,
@freemo@qoto.org avatar

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

paul,
@paul@fedi.nlpagan.net avatar

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

paul,
@paul@fedi.nlpagan.net avatar

@freemo Ahhh, the code on the quickstart page is wrong.
$ hugo new content/post/filename.md

works a lot better.

freemo,
@freemo@qoto.org avatar

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

paul,
@paul@fedi.nlpagan.net avatar

@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,
@freemo@qoto.org avatar

@paul You doing this in a new project or as part of fedipage?

paul,
@paul@fedi.nlpagan.net avatar

@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. 😉

freemo,
@freemo@qoto.org avatar

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

paul,
@paul@fedi.nlpagan.net avatar

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

freemo,
@freemo@qoto.org avatar

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

paul,
@paul@fedi.nlpagan.net avatar

@freemo No Markup language.

See image of Publii's post editor:
You will probably start crying now. Sorry.

freemo,
@freemo@qoto.org avatar

@paul Ohhh its a wysiwig... yea sadly unless you can find a way to convert it you may be in for some trouble. Personally this is why i dont use blogging tools that dont use open standard formats like markdown to begin with.

Hugo does support html markup but you'd likely have to heavily edit that format since it would have to be an html fragment without all the header and styling stuff.

paul,
@paul@fedi.nlpagan.net avatar

@freemo Using pandoc it's nearly no work to create markdown files from the exported static site. That's good.

freemo,
@freemo@qoto.org avatar

@paul Wonderful to hear that!

paul,
@paul@fedi.nlpagan.net avatar

@freemo Done messing for now. I have 2 posts in the posts directory and the localhost:1313 only shows an empty page, with source
<pre>
</pre>
So that's very Zen but not what I am looking for. 🤣

freemo,
@freemo@qoto.org avatar

@paul haha its fairly automatic if you have the right directory structure and settings. Can be hard to do from scratch though if you dont know the right settings.

hankg,

deleted_by_author

  • Loading...
  • freemo,
    @freemo@qoto.org avatar

    @hankg The current writeup for vercel is detailed and works across all three of my sites.

    hankg,

    deleted_by_author

  • Loading...
  • freemo,
    @freemo@qoto.org avatar

    @hankg Actually you are seeing it, my blog is an example of it and it is linked at the bottom of my blog page: https://git.qoto.org/fedipage/fedipage

    youronlyone,
    @youronlyone@c.im avatar

    @freemo I only saw this now.

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

    @gohugoio

    freemo,
    @freemo@qoto.org avatar

    @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

    youronlyone,
    @youronlyone@c.im avatar

    @freemo I will! Thank you as always. ^_^

    @gohugoio

    mur2501,
    @mur2501@qoto.org avatar

    @freemo
    Does it support CSS customization for the iframe?

    freemo,
    @freemo@qoto.org avatar

    @mur2501 which iframe?

    mur2501,
    @mur2501@qoto.org avatar

    @freemo
    The iframe for the feed

    freemo,
    @freemo@qoto.org avatar

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

    mur2501,
    @mur2501@qoto.org avatar

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

    freemo,
    @freemo@qoto.org avatar

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

    mur2501,
    @mur2501@qoto.org avatar

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

    freemo,
    @freemo@qoto.org avatar

    @mur2501

    The following are some im particularly active on:

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

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

    mur2501,
    @mur2501@qoto.org avatar

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

    freemo,
    @freemo@qoto.org avatar
    mur2501,
    @mur2501@qoto.org avatar

    @freemo That aparapi website has something going on it seems.

    freemo,
    @freemo@qoto.org avatar

    @mur2501 yes i know, thats why im working on it :)

    mur2501,
    @mur2501@qoto.org avatar

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

    freemo,
    @freemo@qoto.org avatar

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

    mur2501,
    @mur2501@qoto.org avatar

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

    https://beginners.re/RE4B-EN.pdf

    freemo,
    @freemo@qoto.org avatar

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

    mur2501,
    @mur2501@qoto.org avatar

    @freemo That's a nice suggestion. :ablobcatneon:

    mur2501,
    @mur2501@qoto.org avatar

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

    freemo,
    @freemo@qoto.org avatar

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

    mur2501,
    @mur2501@qoto.org avatar

    @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

    freemo,
    @freemo@qoto.org avatar

    @mur2501 does it specify which CC license specifically?

    mur2501,
    @mur2501@qoto.org avatar
    freemo,
    @freemo@qoto.org avatar

    @mur2501 Ok then he cant paywall it.. as long as you keep the CC license attached to his work, AND you use the same license on any derrivative works then you are free to share it and legally bypass his paywall.. he is allowed to charge, but you are allowed to give away for free.

    mur2501,
    @mur2501@qoto.org avatar

    @freemo
    what you suggest,
    shall I just link this pdf directly?

    (though in the longterm I was thinking to refactor and rewrite the docs in a more simpler and better way. but that ofcourse will take it's time

    freemo,
    @freemo@qoto.org avatar

    @mur2501 I wouldnt link it no... I would copy it to our server and link to it on our own domain. This way they cant paywall it or cut off access (which they cant legally do once they open source it)

    mur2501,
    @mur2501@qoto.org avatar

    @freemo
    ok, will put the pdf in the site source code

    mur2501,
    @mur2501@qoto.org avatar

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

    freemo,
    @freemo@qoto.org avatar

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

    mur2501,
    @mur2501@qoto.org avatar

    @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

    testing,

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

    freemo,
    @freemo@qoto.org avatar

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

    testing,

    @freemo congrats for fedipage btw ❣️

    following @fedipage is recommended ♥️

    freemo,
    @freemo@qoto.org avatar

    @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 :)

    Rado1,
    @Rado1@qoto.org avatar

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

    andypiper,
    @andypiper@macaw.social avatar

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

    freemo,
    @freemo@qoto.org avatar

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

    jla,
    @jla@fosstodon.org avatar

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

    I'll give it a try :-)

    @andypiper

    freemo,
    @freemo@qoto.org avatar

    @jla

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

    You are welcome.

    @andypiper

    MariaLiv,
    @MariaLiv@toot.io avatar

    @freemo That's great! Congratulations!

    Did you use the plugin by @pfefferle? 🌟

    freemo,
    @freemo@qoto.org avatar

    @MariaLiv

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

    @pfefferle

  • All
  • Subscribed
  • Moderated
  • Favorites
  • fediverse
  • ngwrru68w68
  • DreamBathrooms
  • tacticalgear
  • mdbf
  • InstantRegret
  • magazineikmin
  • Youngstown
  • thenastyranch
  • rosin
  • slotface
  • Durango
  • cubers
  • kavyap
  • cisconetworking
  • JUstTest
  • GTA5RPClips
  • modclub
  • tester
  • khanakhh
  • everett
  • provamag3
  • osvaldo12
  • Leos
  • normalnudes
  • ethstaker
  • megavids
  • anitta
  • lostlight
  • All magazines