Skip to content

Commit

Permalink
remove custom alby meta tags
Browse files Browse the repository at this point in the history
  • Loading branch information
secondl1ght committed Jun 7, 2024
1 parent 9b1a5a9 commit 45245da
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 59 deletions.
17 changes: 0 additions & 17 deletions src/components/AreaPage.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -291,23 +291,6 @@
let issues: Issues = [];
</script>

<svelte:head>
{#if type === 'community'}
{#if lightning && lightning.type === 'address'}
<meta name="lightning" content="lnurlp:{lightning.destination}" />
<meta property="alby:image" content={avatar} />
<meta property="alby:name" content={name} />
{:else}
<meta
name="lightning"
content="lnurlp:LNURL1DP68GURN8GHJ7CM0WFJJUCN5VDKKZUPWDAEXWTMVDE6HYMRS9ARKXVN4W5EQPSYZ34"
/>
<meta property="alby:image" content="/images/logo.svg" />
<meta property="alby:name" content="BTC Map" />
{/if}
{/if}
</svelte:head>

<main class="my-10 space-y-16 text-center md:my-20">
<section id="profile" class="space-y-8">
<div class="space-y-2">
Expand Down
8 changes: 0 additions & 8 deletions src/routes/+error.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,6 @@
<meta property="og:image" content="https://btcmap.org/images/og/home.png" />
<meta property="twitter:title" content="BTC Map" />
<meta property="twitter:image" content="https://btcmap.org/images/og/home.png" />
{#if $page.url.pathname.startsWith('/tagger') || $page.url.pathname.startsWith('/community') || $page.url.pathname.startsWith('/merchant')}
<meta
name="lightning"
content="lnurlp:LNURL1DP68GURN8GHJ7CM0WFJJUCN5VDKKZUPWDAEXWTMVDE6HYMRS9ARKXVN4W5EQPSYZ34"
/>
<meta property="alby:image" content="/images/logo.svg" />
<meta property="alby:name" content="BTC Map" />
{/if}
</svelte:head>

<div class="bg-teal dark:bg-dark">
Expand Down
14 changes: 6 additions & 8 deletions src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,12 @@
</script>

<svelte:head>
{#if !$page.url.pathname.startsWith('/tagger') && !$page.url.pathname.startsWith('/community') && !$page.url.pathname.startsWith('/merchant')}
<meta
name="lightning"
content="lnurlp:LNURL1DP68GURN8GHJ7CM0WFJJUCN5VDKKZUPWDAEXWTMVDE6HYMRS9ARKXVN4W5EQPSYZ34"
/>
<meta property="alby:image" content="/images/logo.svg" />
<meta property="alby:name" content="BTC Map" />
{/if}
<meta
name="lightning"
content="lnurlp:LNURL1DP68GURN8GHJ7CM0WFJJUCN5VDKKZUPWDAEXWTMVDE6HYMRS9ARKXVN4W5EQPSYZ34"
/>
<meta property="alby:image" content="/images/logo.svg" />
<meta property="alby:name" content="BTC Map" />
</svelte:head>

<slot />
Expand Down
13 changes: 0 additions & 13 deletions src/routes/merchant/[id]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -361,19 +361,6 @@
<meta property="og:image" content={ogImage} />
<meta property="twitter:title" content="{name ? name + ' - ' : ''}BTC Map Merchant" />
<meta property="twitter:image" content={ogImage} />

{#if payment && payment.type === 'uri' && payment.url?.startsWith('lightning:')}
<meta name="lightning" content="lnurlp:{payment.url.slice(10, payment.url.length)}" />
<meta property="alby:image" content="/images/logo.svg" />
<meta property="alby:name" content={name || 'BTC Map Merchant'} />
{:else}
<meta
name="lightning"
content="lnurlp:LNURL1DP68GURN8GHJ7CM0WFJJUCN5VDKKZUPWDAEXWTMVDE6HYMRS9ARKXVN4W5EQPSYZ34"
/>
<meta property="alby:image" content="/images/logo.svg" />
<meta property="alby:name" content="BTC Map" />
{/if}
</svelte:head>

<div class="bg-teal dark:bg-dark">
Expand Down
13 changes: 0 additions & 13 deletions src/routes/tagger/[id]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -528,19 +528,6 @@
<meta property="og:image" content="https://btcmap.org/images/og/supertagger.png" />
<meta property="twitter:title" content="{username ? username + ' - ' : ''}BTC Map Supertagger" />
<meta property="twitter:image" content="https://btcmap.org/images/og/supertagger.png" />

{#if lightning}
<meta name="lightning" content="lnurlp:{lightning}" />
<meta property="alby:image" content={avatar} />
<meta property="alby:name" content={username} />
{:else}
<meta
name="lightning"
content="lnurlp:LNURL1DP68GURN8GHJ7CM0WFJJUCN5VDKKZUPWDAEXWTMVDE6HYMRS9ARKXVN4W5EQPSYZ34"
/>
<meta property="alby:image" content="/images/logo.svg" />
<meta property="alby:name" content="BTC Map" />
{/if}
</svelte:head>

<div class="bg-teal dark:bg-dark">
Expand Down

0 comments on commit 45245da

Please sign in to comment.