Skip to content

Commit

Permalink
fix(icon-grid): fix URL parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
razonyang committed Jul 3, 2023
1 parent 14f61be commit 2a270f0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion layouts/partials/bootstrap/icon-grid.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,10 @@
{{- $link := .url }}
{{- $url := urls.Parse .url }}
{{- if not $url.Scheme }}
{{- with .Page.GetPage .url }}
{{- with site.GetPage .url }}
{{- $link = .RelPermalink }}
{{- else }}
{{- $link = relURL .url }}
{{- end }}
{{- end }}
<p class="mt-auto pt-3 mb-0">
Expand Down

0 comments on commit 2a270f0

Please sign in to comment.