Skip to content

Commit

Permalink
chore: update seo config
Browse files Browse the repository at this point in the history
  • Loading branch information
jamerrq committed May 23, 2024
1 parent 067f88c commit 3ae6ece
Showing 1 changed file with 29 additions and 16 deletions.
45 changes: 29 additions & 16 deletions src/components/head/seo.astro
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,36 @@
import { SEO } from 'astro-seo'
import RichResults from './richResults.astro'
const url = Astro.url
const isInDeno = url.toString().includes('.deno.dev')
const prod = import.meta.env.PROD
---

<!-- Metadata -->
<meta charset='UTF-8' />
<meta name='description' content='Jamer José: Software Development' />
<meta
name='viewport'
content='width=device-width,initial-scale=1,viewport-fit=cover'
/>
<link rel='icon' type='image/png' href='/favicon.png' />
<!-- Go to cannonical if needed -->
<script is:inline define:vars={{ isInDeno }}>
if (isInDeno) window.location.href = 'https://jamerrq.dev'
</script>

<!-- Production Only -->
{
prod && (
<>
<link rel='canonical' href='https://jamerrq.dev' />
<link rel='alternate' href='https://jamerrq.dev/es' hreflang='es' />
<link rel='alternate' href='https://jamerrq.dev' hreflang='x-default' />
</>
)
}

<!-- Open Graph && Additional Metadata -->
<meta name='generator' content={Astro.generator} />
<!-- Open Graph -->
<meta name='author' content='Jamer José' />
<meta
name='keywords'
content='software, development, backend, nodejs, python, c#, .net, typescript'
/>
<meta name='twitter:card' content='summary_large_image' />
<meta name='twitter:site' content='@jamerrq' />
<meta name='twitter:title' content='jamerrq.dev' />
Expand All @@ -31,6 +44,12 @@ const isInDeno = url.toString().includes('.deno.dev')
<meta property='og:description' content='Jamer José: Software Development' />
<meta property='og:site_name' content='jamerrq.dev' />
<meta name='theme-color' content='#10B981' />
<meta
name='apple-mobile-web-app-status-bar-style'
content='black-translucent'
/>
<meta name='msapplication-TileColor' content='#10B981' />

<!-- Robots -->
<meta name='robots' content='index, follow' />
<meta name='googlebot' content='index, follow' />
Expand Down Expand Up @@ -108,15 +127,8 @@ const isInDeno = url.toString().includes('.deno.dev')
<!-- Sitemap -->
<meta name='msapplication-config' content='/browserconfig.xml' />

<!-- Worker Registration -->
{
!import.meta.env.DEV && (
<>
{/*<script is:inline src='/registerSW.js' />*/}
<link rel='manifest' href='/manifest.webmanifest' />
</>
)
}
<!-- Worker Manifest Registration -->
{!import.meta.env.DEV && <link rel='manifest' href='/manifest.webmanifest' />}

<SEO
title='Jamer José - Software Development'
Expand All @@ -137,5 +149,6 @@ const isInDeno = url.toString().includes('.deno.dev')
site: '@jamerrq',
title: 'jamerrq.dev'
}}
canonical={'https://jamerrq.dev'}
/>
<RichResults />

0 comments on commit 3ae6ece

Please sign in to comment.