diff options
| author | Dawid Rycerz <dawid@rycerz.xyz> | 2026-01-13 20:06:15 +0100 |
|---|---|---|
| committer | Dawid Rycerz <dawid@rycerz.xyz> | 2026-01-13 20:06:15 +0100 |
| commit | b6e440699e9fca474869bf74ce09f2310f05c620 (patch) | |
| tree | a089f456a0e9ebb6f9f6b72370deb7eeb8a3e308 /src/components/blog/webmentions/index.astro | |
| parent | f8a4e00f89913b0c57ca016965f49efc26f4bff9 (diff) | |
Cleanup unused functionalities
Diffstat (limited to 'src/components/blog/webmentions/index.astro')
| -rw-r--r-- | src/components/blog/webmentions/index.astro | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/src/components/blog/webmentions/index.astro b/src/components/blog/webmentions/index.astro deleted file mode 100644 index 80376f0..0000000 --- a/src/components/blog/webmentions/index.astro +++ /dev/null @@ -1,29 +0,0 @@ ---- -import { t } from "@/i18n/translations"; -import { getWebmentionsForUrl } from "@/utils/webmentions"; -import Comments from "./Comments.astro"; -import Likes from "./Likes.astro"; - -interface Props { - language?: string | undefined; -} - -const { language } = Astro.props; -const url = new URL(Astro.url.pathname, Astro.site); - -const webMentions = await getWebmentionsForUrl(`${url}`); - -// Return if no webmentions -if (!webMentions.length) return; ---- - -<hr class="border-solid" /> -<h2 class="mb-8 before:hidden">{t(language, "webmentionsTitle")}</h2> -<div class="space-y-10"> - <Likes mentions={webMentions} language={language} /> - <Comments mentions={webMentions} language={language} /> -</div> -<p class="mt-8"> - {t(language, "responsesPoweredBy")}{" "} - <a href="https://webmention.io" rel="noreferrer" target="_blank">Webmentions</a> -</p> |
