Skip to content

Commit 34390f3

Browse files
committed
separate script for mastodon setup
1 parent f096ec0 commit 34390f3

2 files changed

Lines changed: 12 additions & 13 deletions

File tree

mastodon-timeline-setup.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
const myTimeline = new MastodonTimeline.Init({
2+
mtContainerId: 'mt-container',
3+
instanceUrl: 'https://hachyderm.io', // Change this to your preferred instance
4+
timelineType: 'profile', // or 'hashtag' or 'profile'
5+
userId: '109858074080091787',
6+
profileName: '@R_Forwards',
7+
maxNbPostShow: '10',
8+
maxNbPostFetch: '10',
9+
insistSearchContainer: true, // This helps with timing issues
10+
insistSearchContainerTime: '5000' // Wait up to 5 seconds for container
11+
});

mastodon-widget.qmd

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,4 @@
77
</div>
88
</div>
99

10-
<script>
11-
const myTimeline = new MastodonTimeline.Init({
12-
mtContainerId: 'mt-container',
13-
instanceUrl: 'https://hachyderm.io', // Change this to your preferred instance
14-
timelineType: 'profile', // or 'hashtag' or 'profile'
15-
userId: '109858074080091787',
16-
profileName: '@R_Forwards',
17-
maxNbPostShow: '10',
18-
maxNbPostFetch: '10',
19-
insistSearchContainer: true, // This helps with timing issues
20-
insistSearchContainerTime: '5000' // Wait up to 5 seconds for container
21-
});
22-
</script>
10+
<script src="mastodon-timeline-setup.js"></script>

0 commit comments

Comments
 (0)