Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 32 additions & 1 deletion frontend/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const inter = Inter({
display: 'swap',
});

const SITE_URL = 'https://policyengine.org/us/keep-your-pay-act';
const SITE_URL = 'https://www.policyengine.org/us/keep-your-pay-act';

export const metadata: Metadata = {
title: 'Keep Your Pay Act Calculator',
Expand All @@ -30,12 +30,22 @@ export const metadata: Metadata = {
siteName: 'PolicyEngine',
type: 'website',
locale: 'en_US',
images: [
{
url: 'https://www.policyengine.org/assets/posts/keep-your-pay-act-calculator.png',
width: 1200,
height: 630,
},
],
},
twitter: {
card: 'summary_large_image',
title: 'Keep Your Pay Act Calculator',
description:
'Calculate your personal and national tax impact under the Keep Your Pay Act.',
images: [
'https://www.policyengine.org/assets/posts/keep-your-pay-act-calculator.png',
],
},
other: {
'theme-color': '#2C7A7B',
Expand All @@ -57,6 +67,27 @@ export default function RootLayout({
return (
<html lang="en" className={inter.className}>
<head>
<script
type="application/ld+json"
dangerouslySetInnerHTML={{
__html: JSON.stringify({
'@context': 'https://schema.org',
'@type': 'WebApplication',
name: 'Keep Your Pay Act Calculator',
description:
"Calculate your personal and national tax impact under the Keep Your Pay Act.",
url: SITE_URL,
applicationCategory: 'FinanceApplication',
operatingSystem: 'Any',
offers: { '@type': 'Offer', price: '0', priceCurrency: 'USD' },
provider: {
'@type': 'Organization',
name: 'PolicyEngine',
url: 'https://www.policyengine.org',
},
}),
}}
/>
<Script
src={`https://www.googletagmanager.com/gtag/js?id=${GA_ID}`}
strategy="afterInteractive"
Expand Down
2 changes: 1 addition & 1 deletion frontend/app/robots.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ export default function robots(): MetadataRoute.Robots {
userAgent: '*',
allow: '/',
},
sitemap: 'https://policyengine.org/us/keep-your-pay-act/sitemap.xml',
sitemap: 'https://www.policyengine.org/us/keep-your-pay-act/sitemap.xml',
};
}
4 changes: 2 additions & 2 deletions frontend/app/sitemap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import type { MetadataRoute } from 'next';
export default function sitemap(): MetadataRoute.Sitemap {
return [
{
url: 'https://policyengine.org/us/keep-your-pay-act',
lastModified: new Date(),
url: 'https://www.policyengine.org/us/keep-your-pay-act',
lastModified: '2026-03-10',
changeFrequency: 'weekly',
priority: 1,
},
Expand Down