diff --git a/src/components/shortcodes/FediStatuses.astro b/src/components/shortcodes/FediStatuses.astro index e5618f4..2bb4105 100644 --- a/src/components/shortcodes/FediStatuses.astro +++ b/src/components/shortcodes/FediStatuses.astro @@ -1,10 +1,12 @@ --- - +// 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*/}} {/* 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 +288,7 @@ font-style: italic; } - \ No newline at end of file diff --git a/src/components/shortcodes/Spoiler.astro b/src/components/shortcodes/Spoiler.astro new file mode 100644 index 0000000..7a7dcff --- /dev/null +++ b/src/components/shortcodes/Spoiler.astro @@ -0,0 +1,47 @@ +--- +const { tip = '' } = Astro.props +--- +{/* TODO: make it work in paragraph wrapped elements */} + + + + \ No newline at end of file diff --git a/src/content/pages/test.mdx b/src/content/pages/test.mdx index f2df1b8..fd9f7a8 100644 --- a/src/content/pages/test.mdx +++ b/src/content/pages/test.mdx @@ -4,8 +4,14 @@ description: 'This is a test page' --- import BlogRoll from "../../components/shortcodes/BlogRoll.astro" import FediStatuses from "../../components/shortcodes/FediStatuses.astro" +import Spoiler from "../../components/shortcodes/Spoiler.astro" testestestest - \ No newline at end of file + + + ~~This is the content of the spoiler.~~ + + + \ No newline at end of file