Skip to content
This repository has been archived by the owner on Jun 13, 2023. It is now read-only.

Idea: Habla as personal blog in github pages #10

Open
Giszmo opened this issue Apr 6, 2023 · 3 comments
Open

Idea: Habla as personal blog in github pages #10

Giszmo opened this issue Apr 6, 2023 · 3 comments

Comments

@Giszmo
Copy link
Contributor

Giszmo commented Apr 6, 2023

Apparently it is possible to host single page apps on GitHub Pages and installing Habla on my instance was easy enough. That got me thinking: Why not have a personal blog backed by nostr using Habla with a tiny tiny tweak: Allow me to configure in the instance to set a list of pubkeys that may publish there. Boom, you have a personal blog where only I may publish but my posts can be intereacted with by all Nostriches on all Habla instances. With GitHub pages it couldn't be easier to deploy, right?

  • Fork repo
  • set npub using the github editor
  • save
@Giszmo
Copy link
Contributor Author

Giszmo commented Apr 10, 2023

https://github.com/verbiricha/habla/compare/master...Giszmo:habla:personalBlog?expand=1

This is not finished as for a personal blog, one would probably want to define the relays and not show all these bells and whistles.

@verbiricha
Copy link
Owner

Hey Giszmo, I've experimented with this idea but prerendering all the content since the pubkeys you are interested in are known, have an example at https://nosutora.vercel.app/ Is not open source but the nblog project https://github.com/jacany/nblog does a similar thing. I want to keep Habla more like a platform for discovering other authors/relays.

@Giszmo
Copy link
Contributor Author

Giszmo commented Apr 10, 2023

I replied to that objection on nostr already. There is some problems with that:

You have to either re-render your static site on new events of the authors or provide a dynamic caching backend of sorts. I agree this allows for a more performant and consistent user experience as centralized services always do but would be more demanding on the blogger to setup.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants