diff --git a/src/components/shortcodes/FediStatuses.astro b/src/components/shortcodes/FediStatuses.astro index e5618f4..919a242 100644 --- a/src/components/shortcodes/FediStatuses.astro +++ b/src/components/shortcodes/FediStatuses.astro @@ -1,10 +1,13 @@ --- - +// instanceDomain: the domain of the fediverse instance (e.g., "example.com") +// userId: the user ID (could be the username when the instance uses software other than mastodon) of the account whose statuses you want to fetch +// extraParams: any additional parameters to pass to the API (optional), in object format +const { instanceDomain, userId, extraParams = '' } = Astro.props; --- -{/* WIP: a Fediverse Statuses Component*/}} +{/* WIP: a Fediverse Statuses Component*/} {/* mainly made for Hugo, src code https://github.com/BlockG-ws/hugo-theme-laboratory/blob/master/layouts/_default/statuses.html */} -{/* reworked some parts to make it work in astro */}} -

My Status

+{/* reworked some parts to make it work in astro */} +

My Statuses

Loading...
@@ -286,7 +289,7 @@ font-style: italic; } - \ No newline at end of file diff --git a/src/content/pages/test.mdx b/src/content/pages/test.mdx index f2df1b8..196fd35 100644 --- a/src/content/pages/test.mdx +++ b/src/content/pages/test.mdx @@ -8,4 +8,5 @@ import FediStatuses from "../../components/shortcodes/FediStatuses.astro" testestestest - \ No newline at end of file + + \ No newline at end of file