Commit 3950665f authored by Michael Iseard's avatar Michael Iseard
Browse files

FAQ results without content now do not show up as a link

parent 845c5939
<a href="{{ get_permalink() }}" class="d-block p-4 col-12 col-md-6 faq-search-result">
<article @php post_class('position-relative') @endphp>
<div class="d-block p-4 col-12 col-md-6 faq-search-result">
<article @php post_class('position-relative') @endphp>
<header>
@if(get_the_content())
<a href="{{get_permalink()}}" >
<h4>{!! get_the_title() !!}</h4>
</a>
@else
<h4>{!! get_the_title() !!}</h4>
@endif
</header>
<header>
<h4 class="">{!! get_the_title() !!}</h4>
</header>
<div class="entry-summary text-dark">
@php echo get_the_excerpt() @endphp
</div>
</article>
</a>
<div class="entry-summary text-dark">
@php echo get_the_excerpt() @endphp
</div>
</article>
</div>
......@@ -31,9 +31,11 @@
@section('content')
{{-- FAQ CONTENT --}}
<div class="row faq-content alignwide container">
<div class="faq-content row">
@while($questions->have_posts()) @php $questions->the_post() @endphp
@include('partials.content-faq')
@include('partials.content-faq')
@endwhile
</div>
@endsection
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment