'max_nesting_level' => INF,
'heading_offset' => 1,
- 'hading_max' => 6
+ 'heading_max' => 6
];
@section('content')
<content class="pb-3v">
- <text-block :title="$page->page_heading" />
+ <text-block :title="$page->page_heading" title-tag="h1" />
<div v-if="cartItemCount > 0">
<div class="mobile-bg"
style="background-image: url({{$page->getImageURLByCollection($slide['image'])}})"></div>
- <text-block :title="$slide['title']" title-class="h1 text-inherit">
+ <text-block :title="$slide['title']" title-tag="h1" title-class="h1 text-inherit">
<p>
{!! nl2br($slide['text']) !!}
</p>
</section>
{{-- Intro text --}}
- @intro(['padding' => 'pt-5v pb-4v'])
+ @intro(['title_tag' => 'h2', 'padding' => 'pt-5v pb-4v'])
{{-- Our products --}}
<full-width class="bg-grey-100">
</full-width>
{{-- Services & Support --}}
- @intro(['name' => 'services_support', 'class' => 'bg-grey-100'])
+ @intro(['name' => 'services_support', 'title_tag' => 'h2', 'class' => 'bg-grey-100'])
@if(config('features.news') && count($news) > 0)
{{-- News --}}
@section('content')
-
<full-width padding="pb-4v">
<content>
@markdown($page->get('content'))
</content>
-
</full-width>
+
@endsection
$name = $name ?? 'intro';
$title = \Illuminate\Support\Str::ucfirst($page->get("$name.title", $page->get("name")));
+ $title_tag = $title_tag ?? 'h1';
$image = $page->getImageURL("$name.image",'',asset('storage/uploads/images/products-intro.jpg'));
$class = $class ?? '';
$padding = $padding ?? null; // Pass null so it doesn't override default padding
</column>
<column>
- <text-block class="pt-2v" title-class="h1 overlap-left" :title="$title">
+ <text-block class="pt-2v" title-class="h1 overlap-left" :title="$title" :title-tag="$title_tag">
<p>@markdown($page->get("$name.text"))</p>
@if ($button)