feat: amélioration SEO
This commit is contained in:
parent
ebc426840f
commit
4e2ec9b631
6 changed files with 134 additions and 17 deletions
|
|
@ -50,6 +50,7 @@ const appleTouchIcon = await getImage({
|
|||
<meta charset="utf-8" />
|
||||
<meta content={meta} name="description" />
|
||||
<meta name="web_author" content={author} />
|
||||
<meta name="keywords" content={SITE.keywords} />
|
||||
<meta
|
||||
name="viewport"
|
||||
content="width=device-width, initial-scale=1.0, maximum-scale=5.0, minimum-scale=1.0"
|
||||
|
|
|
|||
|
|
@ -2,22 +2,23 @@ import ogImageSrc from "@images/vue-de-la-piscine.jpg";
|
|||
import type { WebPage, WebSite, WithContext } from "schema-dts";
|
||||
|
||||
export const SITE = {
|
||||
title: "Maison à vendre à Albi",
|
||||
title: "Maison 183m² avec piscine à vendre à Albi",
|
||||
tagline: "La maison familiale par excellence",
|
||||
description:
|
||||
"Belle maison individuelle de 177 m2 dans un écrin de verdure sur un terrain de 980 m2, non-mitoyenne, avec piscine, grande terrasse et garage. Sans vis-à-vis.",
|
||||
"Belle maison individuelle de 183 m2 dans un écrin de verdure à vendre à Albi. Terrain 980 m2 sans vis-à-vis, non-mitoyenne, avec piscine, grande terrasse et garage, proche centre-ville.",
|
||||
description_short:
|
||||
"Belle maison individuelle de 177 m2 dans un écrin de verdure sur un terrain de 980 m2.",
|
||||
"Maison 183m² dans un écrin de verdure avec piscine, 5 chambres sur terrain 980m² sans vis-à-vis à Albi.",
|
||||
url: "https://achat-maison-albi.fr",
|
||||
author: "Jalil Arfaoui",
|
||||
keywords: "maison à vendre Albi, achat maison piscine Albi, villa 5 chambres Albi, propriété avec jardin Albi, maison avec terrasse Albi, achat-maison-albi",
|
||||
};
|
||||
|
||||
export const websiteStructuredDescription = {
|
||||
"@type": "WebSite",
|
||||
url: "https://achat-maison-albi.fr",
|
||||
name: "Maison indiduelle de 177m2 à vendre à Albi",
|
||||
name: "Maison individuelle de 183m² avec piscine à vendre à Albi",
|
||||
description:
|
||||
"Situation idéale : Au calme au fond d’une impasse, à moins de 2 km du centre historique, accès rocade à 1 km, tous les commerces, médiathèque et maison de quartier à 500 mètres.",
|
||||
"Situation idéale : Au calme au fond d'une impasse, dans un écrin de verdure, à moins de 2 km du centre historique, accès rocade à 1 km, tous les commerces à proximité.",
|
||||
} satisfies WebSite;
|
||||
|
||||
const defaultStructuredData = {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
import { websiteStructuredDescription } from "../data_files/constants";
|
||||
import type {WebPage, WithContext } from "schema-dts";
|
||||
import type { RealEstateListing, WithContext } from "schema-dts";
|
||||
import MainLayout from "@/layouts/MainLayout.astro";
|
||||
import HeroSection from "@components/sections/landing/HeroSection.astro";
|
||||
import HeroSectionAlt from "@components/sections/landing/HeroSectionAlt.astro";
|
||||
|
|
@ -21,16 +21,123 @@ import PrimaryCTA from "../components/ui/buttons/PrimaryCTA.astro";
|
|||
|
||||
const structuredDescription = {
|
||||
"@context": "https://schema.org",
|
||||
"@type": "WebPage",
|
||||
"@type": "RealEstateListing",
|
||||
"@id": "https://achat-maison-albi.fr/",
|
||||
"url": "https://achat-maison-albi.fr/",
|
||||
"name": "Belle maison individuelle de 183 m2 à vendre à Albi",
|
||||
"name": "Belle maison individuelle de 183 m2 avec piscine à vendre à Albi",
|
||||
"description":
|
||||
"Belle maison individuelle de 183 m2 dans un écrin de verdure sur un terrain de 980 m2, non-mitoyenne, avec piscine, grande terrasse et garage. Sans vis-à-vis.",
|
||||
image: photoVuePiscine as unknown as string,
|
||||
"image": photoVuePiscine as unknown as string,
|
||||
"isPartOf": websiteStructuredDescription,
|
||||
"inLanguage": "fr-FR"
|
||||
} satisfies WithContext<WebPage>
|
||||
"inLanguage": "fr-FR",
|
||||
"author": {
|
||||
"@type": "Person",
|
||||
"name": "Jalil Arfaoui"
|
||||
},
|
||||
"datePosted": "2024-03-27",
|
||||
"about": {
|
||||
"@type": "House",
|
||||
"name": "Maison individuelle",
|
||||
"description": "Belle maison individuelle de 183 m2 dans un écrin de verdure sur un terrain de 980 m2, non-mitoyenne, avec piscine, grande terrasse et garage. Sans vis-à-vis.",
|
||||
"floorSize": {
|
||||
"@type": "QuantitativeValue",
|
||||
"value": 183,
|
||||
"unitCode": "MTK"
|
||||
},
|
||||
"numberOfRooms": 8,
|
||||
"numberOfBedrooms": 5,
|
||||
"numberOfBathroomsTotal": 3,
|
||||
"yearBuilt": "1977",
|
||||
"accommodationCategory": "Maison",
|
||||
"additionalProperty": [
|
||||
{
|
||||
"@type": "PropertyValue",
|
||||
"name": "Surface du terrain",
|
||||
"value": "980 m²"
|
||||
},
|
||||
{
|
||||
"@type": "PropertyValue",
|
||||
"name": "Type de chauffage",
|
||||
"value": "Électrique et cheminée"
|
||||
},
|
||||
{
|
||||
"@type": "PropertyValue",
|
||||
"name": "Exposition",
|
||||
"value": "Sud"
|
||||
},
|
||||
{
|
||||
"@type": "PropertyValue",
|
||||
"name": "Non-mitoyenne",
|
||||
"value": "Oui"
|
||||
},
|
||||
{
|
||||
"@type": "PropertyValue",
|
||||
"name": "Taille de la piscine",
|
||||
"value": "4m x 8m (50m³)"
|
||||
}
|
||||
],
|
||||
"amenityFeature": [
|
||||
{
|
||||
"@type": "LocationFeatureSpecification",
|
||||
"name": "Piscine",
|
||||
"value": true,
|
||||
"description": "Piscine de 4m x 8m (50m³)"
|
||||
},
|
||||
{
|
||||
"@type": "LocationFeatureSpecification",
|
||||
"name": "Terrasse",
|
||||
"value": true,
|
||||
"description": "Grande terrasse exposée plein sud sans vis-à-vis"
|
||||
},
|
||||
{
|
||||
"@type": "LocationFeatureSpecification",
|
||||
"name": "Garage",
|
||||
"value": true,
|
||||
"description": "Grand garage pour 2 voitures avec espace de rangement"
|
||||
},
|
||||
{
|
||||
"@type": "LocationFeatureSpecification",
|
||||
"name": "Jardin",
|
||||
"value": true,
|
||||
"description": "Jardin arboré de 980m² permettant de faire le tour de la maison"
|
||||
},
|
||||
{
|
||||
"@type": "LocationFeatureSpecification",
|
||||
"name": "Cheminée",
|
||||
"value": true,
|
||||
"description": "Cheminée fonctionnelle dans le salon"
|
||||
},
|
||||
{
|
||||
"@type": "LocationFeatureSpecification",
|
||||
"name": "Bureau équipé",
|
||||
"value": true,
|
||||
"description": "Grand bureau équipé, connecté et sécurisé"
|
||||
},
|
||||
{
|
||||
"@type": "LocationFeatureSpecification",
|
||||
"name": "Salle de jeux",
|
||||
"value": true
|
||||
},
|
||||
{
|
||||
"@type": "LocationFeatureSpecification",
|
||||
"name": "Suite indépendante",
|
||||
"value": true,
|
||||
"description": "Suite avec salle d'eau, conçue pour héberger un couple avec enfants"
|
||||
},
|
||||
{
|
||||
"@type": "LocationFeatureSpecification",
|
||||
"name": "Buanderie",
|
||||
"value": true
|
||||
}
|
||||
]
|
||||
},
|
||||
"offers": {
|
||||
"@type": "Offer",
|
||||
"price": "365000",
|
||||
"priceCurrency": "EUR",
|
||||
"availability": "https://schema.org/InStock"
|
||||
}
|
||||
} satisfies WithContext<RealEstateListing>
|
||||
|
||||
---
|
||||
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ export const GET: APIRoute = async () => {
|
|||
|
||||
const manifest = {
|
||||
short_name: "Achat maison Albi",
|
||||
name: "Maison indiduelle de 177m2 à vendre à Albi",
|
||||
name: "Maison 183m² avec piscine à vendre à Albi",
|
||||
icons,
|
||||
display: "minimal-ui",
|
||||
id: "/",
|
||||
|
|
|
|||
|
|
@ -6,7 +6,6 @@ import MainSection from "../components/ui/blocks/MainSection.astro";
|
|||
import GrandePhotoCentrale from "../components/GrandePhotoCentrale.astro";
|
||||
import vueCathedrale from "@images/vue-albi-cathedrale-sainte-cecile.jpg";
|
||||
import PrimaryCTA from "../components/ui/buttons/PrimaryCTA.astro";
|
||||
import TestimonialsSection from "@components/sections/testimonials/TestimonialsSection.astro";
|
||||
|
||||
const structuredDescription = {
|
||||
"@context": "https://schema.org",
|
||||
|
|
|
|||
|
|
@ -2,16 +2,25 @@
|
|||
import type { APIRoute } from "astro";
|
||||
|
||||
const robotsTxt = `
|
||||
User-agent: *
|
||||
Allow: /
|
||||
|
||||
User-agent: Googlebot
|
||||
Disallow:
|
||||
Allow: /
|
||||
|
||||
User-agent: Bingbot
|
||||
Allow: /
|
||||
|
||||
User-agent: DuckDuckBot
|
||||
Allow: /
|
||||
|
||||
User-agent: Yandex
|
||||
Disallow:
|
||||
Allow: /
|
||||
|
||||
User-agent: Baiduspider
|
||||
Allow: /
|
||||
|
||||
User-agent: archive.org_bot
|
||||
Disallow:
|
||||
Allow: /
|
||||
|
||||
Sitemap: ${new URL("sitemap-index.xml", import.meta.env.SITE).href}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue