From 4e2ec9b631e8f5681bb941ec857db34c8ba64390 Mon Sep 17 00:00:00 2001 From: Jalil Arfaoui Date: Thu, 27 Mar 2025 01:19:55 +0100 Subject: [PATCH] =?UTF-8?q?feat:=20am=C3=A9lioration=20SEO?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Meta.astro | 1 + src/data_files/constants.ts | 13 ++-- src/pages/index.astro | 119 ++++++++++++++++++++++++++++-- src/pages/manifest.json.ts | 2 +- src/pages/quartier-cantepau.astro | 1 - src/pages/robots.txt.ts | 15 +++- 6 files changed, 134 insertions(+), 17 deletions(-) diff --git a/src/components/Meta.astro b/src/components/Meta.astro index 7a6b17b..793da41 100644 --- a/src/components/Meta.astro +++ b/src/components/Meta.astro @@ -50,6 +50,7 @@ const appleTouchIcon = await getImage({ + + "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 --- diff --git a/src/pages/manifest.json.ts b/src/pages/manifest.json.ts index b355c73..5182382 100644 --- a/src/pages/manifest.json.ts +++ b/src/pages/manifest.json.ts @@ -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: "/", diff --git a/src/pages/quartier-cantepau.astro b/src/pages/quartier-cantepau.astro index 07343b6..48cb597 100644 --- a/src/pages/quartier-cantepau.astro +++ b/src/pages/quartier-cantepau.astro @@ -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", diff --git a/src/pages/robots.txt.ts b/src/pages/robots.txt.ts index 90aca7c..135cf9b 100644 --- a/src/pages/robots.txt.ts +++ b/src/pages/robots.txt.ts @@ -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}