Skip to content

Commit

Permalink
Conditionally display faqLink
Browse files Browse the repository at this point in the history
  • Loading branch information
jperson1 committed Nov 8, 2024
1 parent 059f5a8 commit 05dc5b4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/_includes/resources_page.njk
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ layout: layout.njk
</ul>

{# Full-width FAQ page button, common to resource pages. #}
<a class="usa-button radius-lg width-full margin-0 margin-bottom-15 padding-y-4 display-flex flex-column flex-align-center" href="{{faqLink}}">
{% if faqLink %}
<a class="usa-button radius-lg width-full margin-0 margin-bottom-15 padding-y-4 display-flex flex-column flex-align-center" href="{{ faqLink }}">
<p class="font-sans-lg text-normal margin-0 display-flex flex-row flex-wrap flex-align-center">
<span class="tablet:margin-right-1 margin-y-1 tablet:margin-y-0">Still have questions?</span>
<strong class="">Visit our FAQ page</strong>
Expand All @@ -45,4 +46,5 @@ layout: layout.njk
</svg>
</p>
</a>
{% endif %}
</div>

0 comments on commit 05dc5b4

Please sign in to comment.