diff options
| author | Ariel Costas Guerrero <ariel@costas.dev> | 2025-04-29 08:56:04 +0200 |
|---|---|---|
| committer | Ariel Costas Guerrero <ariel@costas.dev> | 2025-04-29 08:57:05 +0200 |
| commit | 8fecbcbba2eef19f4adf3c95573f8330746335b7 (patch) | |
| tree | e5f20895c0bbe1ba85026f2be15894eb622ec49a /src/layouts/Layout.astro | |
| parent | 8cb952f30798d545f5d0f0690ab02df7eb978a74 (diff) | |
Indicate external links
Diffstat (limited to 'src/layouts/Layout.astro')
| -rw-r--r-- | src/layouts/Layout.astro | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index f1c37c9..976e8a3 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -32,7 +32,10 @@ const { title, description, empty } = Astro.props; <meta property="og:title" content={title} /> <meta property="og:description" content={description} /> <meta property="og:type" content="website" /> - <meta property="og:url" content={Astro.url.toString().replace(".html", "")} /> + <meta + property="og:url" + content={Astro.url.toString().replace(".html", "")} + /> <meta property="og:image" content="/favicon.png" /> <meta name="twitter:card" content="summary" /> @@ -86,6 +89,14 @@ const { title, description, empty } = Astro.props; color: $accent; } + a.external::after { + content: "↗"; + font-family: monospace; + font-size: 0.85em; + display: inline-block; + transform: translateY(-1px); + } + *::selection { background-color: color.adjust($accent, $alpha: -0.85); } |
