From f638b2c7619ea11fe5a073e71f7624f761f7d6f0 Mon Sep 17 00:00:00 2001 From: Filipe Medeiros Date: Sat, 5 Oct 2024 19:31:53 +0200 Subject: [PATCH] small fix and transition --- src/components/mdx/InlineLink.astro | 8 ++++-- ...rso-e-parecido-as-outras-redes-sociais.mdx | 3 +-- ...gital-e-como-democratizar-a-democracia.mdx | 27 ++----------------- src/index.css | 3 +++ src/layouts/Layout.astro | 1 + 5 files changed, 13 insertions(+), 29 deletions(-) create mode 100644 src/index.css diff --git a/src/components/mdx/InlineLink.astro b/src/components/mdx/InlineLink.astro index 305c2e7..6bcb76f 100644 --- a/src/components/mdx/InlineLink.astro +++ b/src/components/mdx/InlineLink.astro @@ -4,12 +4,16 @@ import type { HTMLAttributes } from 'astro/types'; export type Props = HTMLAttributes<'a'>; const isExternal = Astro.props.href?.toString().startsWith('https://'); +const isTheTextTheLink = + Astro.props.href?.toString() === + (await Astro.slots.render('default')).toString(); ---