Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Michael Iseard
Kudos-Website
Commits
3950665f
Commit
3950665f
authored
Oct 08, 2020
by
Michael Iseard
Browse files
FAQ results without content now do not show up as a link
parent
845c5939
Changes
2
Hide whitespace changes
Inline
Side-by-side
resources/views/partials/content-faq.blade.php
View file @
3950665f
<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>
resources/views/template-faq.blade.php
View file @
3950665f
...
...
@@ -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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment