docs: Add basic quickstart

This commit is contained in:
moanos [he/him] 2023-11-26 22:14:52 +01:00
parent da407c0772
commit 9e06e672b5

View File

@ -1,9 +1,16 @@
# Include Fedi
Include Fedi allows you to embed a fediverse accounts post into a sites
Include Fedi allows you to embed a fediverse accounts post into a sites.
# Quickstart
In the head of your site include the css and javascript
```html
<script src="script.js"></script>
<link rel='stylesheet' id='include-fedi-css' href='style.css'/>
```
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>
```
[include-mastodon-feed instance="social.queereszentrumtuebingen.de" account="01JFERHG3QG06PQ7QGYEZ6288P" limit=3 excludeReplies=true excludeBoosts=true text-permalinkPre=am date-locale=de-DE]