Skip to content

Commit

Permalink
fix: SEO Header title
Browse files Browse the repository at this point in the history
  • Loading branch information
macx committed Mar 31, 2024
1 parent f7217d7 commit 588d5e1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
5 changes: 0 additions & 5 deletions public/.htaccess

This file was deleted.

7 changes: 5 additions & 2 deletions src/components/Metadata.astro
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
---
import AstroFont from '@gamesome/astro-font/AstroFont.astro'
import { SITE_CONST } from '../const.ts'
// Remove trailing slash from URL
// https://noahflk.com/blog/trailing-slashes-astro
function removeTrailingSlash(str: string) {
return str.replace(/\/+$/, '')
}
Expand Down Expand Up @@ -34,7 +37,7 @@ const openGraphImage = Astro.url.pathname.startsWith('/tutorials')
{redirect ? <meta http-equiv='refresh' content='0;url=/404' /> : null}

<!-- Primary Meta -->
<title>{title} | HAWK GT 1191</title>
<title>{title} | {SITE_CONST.title}</title>
<meta name='description' content={description} />
{pubDate && <meta property='article:published_time' content={pubDate} />}

Expand All @@ -60,7 +63,7 @@ const openGraphImage = Astro.url.pathname.startsWith('/tutorials')
<link rel='sitemap' href='/sitemap-index.xml' />

<!-- Open Graph / Facebook -->
<meta property='og:title' content={title} />
<meta property='og:title' content={title + ' | ' + SITE_CONST.title} />
<meta property='og:description' content={description} />
<meta property='og:url' content={canonicalUrl} />
<meta property='og:type' content={type} />
Expand Down

0 comments on commit 588d5e1

Please sign in to comment.