Render your Subsocial spaces as static sites so you can self-host them on your own domain.
This script is a plugin for the Nikola static-site generator that imports the posts from a Subsocial space.
- Start an IPFS daemon so the script can access the content.
- Create and edit a new Nikola configuration with
nikola init
. - Copy the files in
#/plugins
to your new Nikola site directory. - Run
nikola import_subsocial --space=YOUR_SPACE_ID
. - Build your static site using
nikola build
and preview!
You should see log output from step 4 that looks as follows:
[2020-12-31 11:11:11] INFO: import_subsocial: POST_ID: POST_TITLE
In case your post does not have a title, it won't be imported into Nikola:
[2020-12-31 12:12:12] WARNING: import_subsocial: POST_ID: Ignoring post without title.
There's no support for this plugin — use at your own discretion!