include-fedi/README.md

17 lines
452 B
Markdown
Raw Permalink Normal View History

2023-11-26 21:00:42 +00:00
# Include Fedi
2023-11-26 21:14:52 +00:00
Include Fedi allows you to embed a fediverse accounts post into a sites.
2023-11-26 21:00:42 +00:00
2023-11-26 21:14:52 +00:00
# Quickstart
In the head of your site include the css and javascript
2023-11-26 21:00:42 +00:00
```html
2023-11-26 21:14:52 +00:00
<script src="script.js"></script>
<link rel='stylesheet' id='include-fedi-css' href='style.css'/>
2023-11-26 21:00:42 +00:00
```
2023-11-26 21:14:52 +00:00
In the body you should add a div with the id `fedi-feed` at the location you want the feed to be
```html
<div class="include-mastodon-feed dark" id="fedi-feed">Loading...</div>
```