Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added logic to set href for service link #7524

Merged
merged 7 commits into from
May 20, 2024
4 changes: 2 additions & 2 deletions themes/digital.gov/layouts/services/card-service.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div class="card-service">
{{/* set the href as a variable */}}
{{- $href := "" -}}
{{- $href := or .Params.source_url .Permalink -}}

{{/* Logos
Get the "source" in the file and looks up the icon that is used there.
Expand All @@ -25,7 +25,7 @@

<div class="copy">
<h2 class="card__title">
<a href="{{- $href -}}" title="{{- .Params.title -}}"
<a href="{{- $href | relURL -}}" title="{{- .Params.title -}}"
>{{- .Params.title -}}</a
>
</h2>
Expand Down
Loading