mojoaxel / bitcoinhackers.org-mojoaxel

Mastodon backup of @mojoaxel@bitcoinhackers.org

Home Page:https://mojoaxel.github.io/bitcoinhackers.org-mojoaxel

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tootback

Host your own Mastodon archive.

Usage

  1. Clone or download this repository,
  2. In your terminal cd to the folders of the project.
  3. Download your mastodon archive and put the resulting archive-xxxxxx.tar.gz in the projects archive folder. You can have multiple archives in that folder, we will always use the newest.
  4. Adopt settings in _data/meta.json.
  5. Make sure you have Node.js installed on your system.
  6. Install all dependencies by running npm ci.
  7. Build the website by calling npm run build.
  8. Copy everything from the _site folder to a static webserver or simply enable GitHub Pages for the gh-pages branch.

FAQs

Why?

Like everything in this universe Mastodon servers are ephemeral. They often come to life in a highly energetic moment, glow for some time and than vanish out of existence again because some update goes wrong or human things happen. If you want your toots to be hosted after your server is long gone you could use this repository to generate a static website with your content.

How?

I used the wonderful static page generator 11ty for this. Eleventy was a perfect fit for this! Not only does it support multiple templating languages and other nice features, it also supports dynamic JS data files so the content can directly get pulled out of the zipped archive.

Related Projects?

License

Copyright 2022 by Alexander Wunschik.

Licensed under a AGPL-3.0-or-later license.

If you change the code you are legally required to publish it!
This is the idea of #OpenSource, please respect it!

About

Mastodon backup of @mojoaxel@bitcoinhackers.org

https://mojoaxel.github.io/bitcoinhackers.org-mojoaxel

License:GNU Affero General Public License v3.0


Languages

Language:Nunjucks 52.2%Language:JavaScript 42.6%Language:CSS 5.3%