eleventy-plugin-mastoarchive

Eleventy plugin to expose your Mastodon posts as a global data object.

Downloads
102
Stars
11
Committers
1

Bot releases are visible (Hide)

eleventy-plugin-mastoarchive - 0.2.0 Latest Release

Published by declanbyrd over 1 year ago

For any new users, they would only get their 40 most recent posts since this is the limit set by the Mastodon status API.

Not anymore.

If the plugin detects a cache file, it will continue to fetch posts that were published after the most recently cached post.

If the plugin can't find a cache file, it will keep calling the Mastodon status API until it has fetched all your posts. It uses the max_id query parameter to fetch posts before a specific post, and then keeps calling the API until the status API returns no posts.

Any users that installed versions < 0.2.0 will need to run their build without a cache so that the plugin can fetch all their posts.

If a post is deleted in Mastodon, you will need to run a build without the cache.

eleventy-plugin-mastoarchive - 0.1.5

Published by declanbyrd over 1 year ago

If a post contains custom emoji, the post data will now include the shortcode and static URL for that emoji.

The shortcode in the post can then be replaced with the image in the template that renders the posts.