Mirror of github.com/nicolabs/mastodon-timeline-widget
Go to file
2017-05-01 16:40:19 +09:00
mastodon.widget.css Basic first setup (JS and CSS - 2 themes) 2017-05-01 16:40:19 +09:00
mastodon.widget.js Basic first setup (JS and CSS - 2 themes) 2017-05-01 16:40:19 +09:00
README.md Basic first setup (JS and CSS - 2 themes) 2017-05-01 16:40:19 +09:00

Mastodon.widget

The idea of this little script is to allow users to display their Mastodon timeline on their blog/website.

Requirements

  • jQuery
  • access token from the mastodon instance you want to display the timeline from

To help you create a token, we'll soon provide a page on our website that will guide you through the requiered steps.

Installation

  1. Download the required files (only one JS and one CSS).

  2. Simply paste the code bellow in you website:

In the sample above, you have to replace the folowing:

  • [MASTODON INSTANCE] => i.e : https://mastodon.technology
  • [ACCESS TOKEN] => token you created for your app and linked with your Mastodon instance account
  • [ACCOUNT ID] => your user ID on Mastodon instance
  1. Add a container for your timeline where you want in the body of your website:

Customization

You have the choice between 2 basic themes:

  • mastodon-timeline-light
  • mastodon-timeline-dark

Or you can create your own. Please have a look in the CSS file for more details.