diff --git a/src/components/shortcodes/FediStatuses.astro b/src/components/shortcodes/FediStatuses.astro index 2bb4105..e5618f4 100644 --- a/src/components/shortcodes/FediStatuses.astro +++ b/src/components/shortcodes/FediStatuses.astro @@ -1,12 +1,10 @@ --- -// 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 Statuses

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

My Status

Loading...
@@ -288,7 +286,7 @@ const { instanceDomain, userId, extraParams = '' } = Astro.props; font-style: italic; } - \ No newline at end of file diff --git a/src/components/shortcodes/Spoiler.astro b/src/components/shortcodes/Spoiler.astro deleted file mode 100644 index 7a7dcff..0000000 --- a/src/components/shortcodes/Spoiler.astro +++ /dev/null @@ -1,47 +0,0 @@ ---- -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 fd9f7a8..f2df1b8 100644 --- a/src/content/pages/test.mdx +++ b/src/content/pages/test.mdx @@ -4,14 +4,8 @@ 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 - - - ~~This is the content of the spoiler.~~ - - - \ No newline at end of file + \ No newline at end of file