diff --git a/src/content/seo/home.yaml b/src/content/seo/home.yaml index 484ab00..1ec4261 100644 --- a/src/content/seo/home.yaml +++ b/src/content/seo/home.yaml @@ -1,16 +1,17 @@ -title: "FUZ – Internet i telewizja w Twojej okolicy" -description: "Lokalny operator internetu i telewizji. Nowoczesny światłowód i radio, realny serwis i szybkie wsparcie." -canonical: "/" -image: "/og/fuz-home.png" -keywords: - - internet - - światłowód - - telewizja - - lokalny operator -schema: - "@context": "https://schema.org" - "@type": "Organization" - name: "FUZ" +site: + name: "FUZ – Internet światłowodowy i radiowy w Wyszkowie" + description: "Stabilny i szybki internet" url: "https://www.fuz.pl" - sameAs: - - "https://www.facebook.com" + lang: "pl" + +company: + name: "FUZ Adam Rojek" + phone: "+48 (29) 643 80 55" + email: "biuro@fuz.pl" + street: "ul. Świętojańska 46" + city: "Wyszków" + postal: "07-200" + country: "PL" + lat: 52.597385 + lon: 21.456797 + logo: "/images/logo-fuz.webp" diff --git a/src/content/site/site.section.yaml b/src/content/site/site.section.yaml new file mode 100644 index 0000000..4dde582 --- /dev/null +++ b/src/content/site/site.section.yaml @@ -0,0 +1,22 @@ +sections: + - title: "Internet Światłowodowy" + image: "/images/section-fiber.jpg" + dimmed: true + button: + text: "Zobacz ofertę →" + url: "/internet-swiatlowod/" + content: | + Z naszym światłowodem zyskujesz nie tylko internet, ale przewagę — najwyższą jakość połączenia, która nigdy nie zwalnia. + + Odkryj komfort technologii stworzonej do pracy, rozrywki i życia bez ograniczeń. + + - title: "Internet Radiowy" + image: "/images/section-radiowy.jpg" + dimmed: true + button: + text: "Zobacz ofertę →" + url: "/internet-radiowy/" + content: | + Nowoczesna technologia radiowa gwarantuje stabilny internet o wysokiej wydajności tam, gdzie inne łącza nie mają szans. + + To szybki start w świat cyfrowej pracy i rozrywki — bez konieczności instalacji kabli. \ No newline at end of file diff --git a/src/layouts/BaseHead.astro b/src/layouts/BaseHead.astro index be02f6e..1fb9eac 100644 --- a/src/layouts/BaseHead.astro +++ b/src/layouts/BaseHead.astro @@ -1,42 +1,104 @@ --- +import yaml from "js-yaml"; +import fs from "fs"; + const { seo } = Astro.props; +// Load global SEO config +const globalSeo = yaml.load( + fs.readFileSync("./src/content/seo/home.yaml", "utf8") +); + +const { site, company } = globalSeo; + const { - title = "FUZ", - description = "Lokalny operator internetu i telewizji.", - canonical = "/", - image = "/og/default.png", + title = site.name, + description = site.description, + url = "/", + image = site.logo, keywords = [], schema = {} } = seo ?? {}; ---- +const canonical = site.url + url; + +/* PREPARE JSON-LD AS SAFE STRINGS */ + +const schemaWebsite = JSON.stringify({ + "@context": "https://schema.org", + "@type": "WebSite", + "url": site.url, + "name": site.name, + "potentialAction": { + "@type": "SearchAction", + "target": site.url + "/wyszukiwarka?query={search_term_string}", + "query-input": "required name=search_term_string" + } +}); + +const schemaLocalBusiness = JSON.stringify({ + "@context": "https://schema.org", + "@type": "LocalBusiness", + "name": company.name, + "image": site.url + company.logo, + "telephone": company.phone, + "email": company.email, + "address": { + "@type": "PostalAddress", + "streetAddress": company.street, + "addressLocality": company.city, + "postalCode": company.postal, + "addressCountry": company.country + }, + "geo": { + "@type": "GeoCoordinates", + "latitude": company.lat, + "longitude": company.lon + }, + "url": site.url +}); + +/* Extra schema if passed from page */ +const schemaExtra = Object.keys(schema).length > 0 + ? JSON.stringify(schema) + : null; +--- {title} + {keywords.length > 0 && ( )} + + + + - {Object.keys(schema).length > 0 && ( - + + + + + + + + {schemaExtra && ( + )}