Overview
If you’re looking to showcase your own public posts from Mastodon on your personal website, the eleventy-plugin-mastoarchive is a fantastic tool. This plugin enables seamless integration of your social media content into your Eleventy project, allowing you to maintain a cohesive online presence. By fetching and caching your posts, it ensures that you can display an up-to-date reflection of your activity on Mastodon without the hassle of manual updates.
Setting up this plugin is straightforward and user-friendly. Once installed and configured, it fetches your public posts and retains them using a caching system, so you only need to pull in new content as you create it. This level of automation helps keep your site dynamic and engaging for your visitors.
Features
- Easy Setup: Simple installation process for quick integration into your Eleventy project.
- Automatic Caching: Fetches all public posts on the first run and subsequently only retrieves new posts, optimizing performance.
- Global Data Object: Exposes a global
mastodonobject for easy access to your fetched data throughout your site. - Customizable Cache Location: Allows you to specify where cached data is stored, providing flexibility in file management.
- User ID Retrieval: Offers guidance on how to find your Mastodon user ID efficiently, ensuring that setup is accessible for all users.
- Clear Config Options: Includes clear configuration options for host, user ID, and cache settings, which ensures proper functioning of the plugin.
- Rich Post Details: Each fetched post includes a timestamp, internal ID, and HTML content, allowing for detailed display options on your site.