Skip to content

Commit

Permalink
More M2 considerations
Browse files Browse the repository at this point in the history
  • Loading branch information
mcongrove committed Jan 11, 2025
1 parent d6960ab commit 13babfc
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
14 changes: 7 additions & 7 deletions public/sitemap.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,43 +2,43 @@
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://miataregistry.com</loc>
<lastmod>2025-01-10</lastmod>
<lastmod>2025-01-11</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://miataregistry.com/registry</loc>
<lastmod>2025-01-10</lastmod>
<lastmod>2025-01-11</lastmod>
<changefreq>daily</changefreq>
<priority>0.9</priority>
</url>
<url>
<loc>https://miataregistry.com/registry/editions</loc>
<lastmod>2025-01-10</lastmod>
<lastmod>2025-01-11</lastmod>
<changefreq>weekly</changefreq>
<priority>0.8</priority>
</url>
<url>
<loc>https://miataregistry.com/news</loc>
<lastmod>2025-01-10</lastmod>
<lastmod>2025-01-11</lastmod>
<changefreq>weekly</changefreq>
<priority>0.7</priority>
</url>
<url>
<loc>https://miataregistry.com/rarity</loc>
<lastmod>2025-01-10</lastmod>
<lastmod>2025-01-11</lastmod>
<changefreq>monthly</changefreq>
<priority>0.7</priority>
</url>
<url>
<loc>https://miataregistry.com/about</loc>
<lastmod>2025-01-10</lastmod>
<lastmod>2025-01-11</lastmod>
<changefreq>monthly</changefreq>
<priority>0.6</priority>
</url>
<url>
<loc>https://miataregistry.com/legal</loc>
<lastmod>2025-01-10</lastmod>
<lastmod>2025-01-11</lastmod>
<changefreq>monthly</changefreq>
<priority>0.3</priority>
</url>
Expand Down
11 changes: 6 additions & 5 deletions src/pages/Car.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,11 @@ export const CarProfile = () => {
dateRange: car.manufacture_date
? toPrettyDate(car.manufacture_date)
: car.edition?.year.toString(),
location: manufactureLocation || 'JP',
location: manufactureLocation
? manufactureLocation
: car.edition?.name.includes('M2-')
? 'Tokyo, JP'
: 'JP',
});
} else if (event.key === 'shipping') {
items.push({
Expand Down Expand Up @@ -326,12 +330,9 @@ export const CarProfile = () => {
if (!car && !vinDetails) return [];

return [
vinDetails?.VIN?.startsWith('JM1') ? country('JP') : null,
vinDetails?.PlantCountry
? country(vinDetails.PlantCountry)
: vinDetails?.VIN?.startsWith('JM1')
? country('JP')
: null,
: country('JP'),
car?.shipping_state
? state(car.shipping_state)
: car?.shipping_country
Expand Down

0 comments on commit 13babfc

Please sign in to comment.