@php
    if (is_home()) {
        $posts_page_id = get_option('page_for_posts');
        $page = $posts_page_id ? get_post($posts_page_id) : null;
    } else {
        $page = get_post();
    }
    $title = $page ? $page->post_title : '';
@endphp

@if($title)
<section class="intro-title">
    <div class="row">
        <div class="col-xs-12">
            <h2 class="intro-title__heading">{!! $title !!}</h2>
        </div>
    </div>
</section>
@endif
