fix: hero contact ottimizzata senza override, mapsQuery da tag
This commit is contained in:
@@ -2,15 +2,14 @@
|
||||
import Base from '../layouts/Base.astro';
|
||||
import PageHero from '../components/PageHero.astro';
|
||||
import ContactForm from '../components/ContactForm.astro';
|
||||
import { site } from '../data/site';
|
||||
import contactHero from '../assets/img/contact-hero.jpg';
|
||||
import T from '../components/content/T.astro';
|
||||
import { t, contentImageUrl } from '../lib/content';
|
||||
import { t, getImageOverride } from '../lib/content';
|
||||
export const prerender = true;
|
||||
const mapsQuery = encodeURIComponent(`${site.address}, ${site.cityLine}`);
|
||||
const mapsQuery = encodeURIComponent(`${t('global.contact.address')}, ${t('global.contact.city-line')}`);
|
||||
---
|
||||
<Base title={t('contact.meta.title')} description={t('contact.meta.description')}>
|
||||
<PageHero title={t('contact.hero.title')} bgImage={contentImageUrl('contact.hero.image', contactHero.src)} />
|
||||
<PageHero title={t('contact.hero.title')} bgImage={getImageOverride('contact.hero.image') ?? contactHero} />
|
||||
<section class="section">
|
||||
<div class="container cgrid">
|
||||
<div class="cmap" id="map-box">
|
||||
|
||||
Reference in New Issue
Block a user