diff --git a/src/components/shortcodes/FediStatuses.astro b/src/components/shortcodes/FediStatuses.astro new file mode 100644 index 0000000..e5618f4 --- /dev/null +++ b/src/components/shortcodes/FediStatuses.astro @@ -0,0 +1,623 @@ +--- + +--- +{/* 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

+
+
+
Loading...
+
+ +
+ + \ No newline at end of file diff --git a/src/config.ts b/src/config.ts index 653b833..5da6266 100644 --- a/src/config.ts +++ b/src/config.ts @@ -40,8 +40,9 @@ export const siteConfig = { // it will search for the post's link by default renderOnServer: false, // render comments on server-side or client-side, may different from the astro config // the comments are rendered at the client side by default - // but if you want to deploy site on Cloudflare pages or so you can set it to true. - // (but in pure SSG mode, the comments will be rendered at build time, which mean delayed updates,maybe?) + // but if you want to deploy site on Cloudflare pages or other services that supported by astro adapters you can set it to true. + // you may get warning from the console about the project not containing any server rendered page, but it is ok. + // to fix this add a `export const prerender = false` to Comments.astro // a reverse proxy is recommended in pure client-side rendering mode to get the posts from the fediverse instance // that requires to be authorized to use search api the instance useReverseProxy: false, diff --git a/src/content/pages/test.mdx b/src/content/pages/test.mdx index 2f6b370..f2df1b8 100644 --- a/src/content/pages/test.mdx +++ b/src/content/pages/test.mdx @@ -3,7 +3,9 @@ title: 'Test Page' description: 'This is a test page' --- import BlogRoll from "../../components/shortcodes/BlogRoll.astro" +import FediStatuses from "../../components/shortcodes/FediStatuses.astro" testestestest - \ No newline at end of file + + \ No newline at end of file