Skip to content

Commit

Permalink
feat(icon-grid): add the linkText parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
razonyang committed Jul 25, 2023
1 parent 28297ea commit d4e9219
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
@@ -1,6 +1,8 @@
{{- $key := "" }}
{{- $linkText := i18n "learn_more" }}
{{- if .IsNamedParams }}
{{- $key = .Get "data" }}
{{- with .Get "linkText" }}{{ $linkText = . }}{{ end }}
{{- else }}
{{- $key = .Get 0 }}
{{- end }}
Expand Down Expand Up @@ -39,7 +41,7 @@
class="text-decoration-none"
href="{{ $link }}"
{{ if $url.Scheme }}target="_blank" rel="external"{{ end }}>
{{- i18n "learn_more" -}}
{{- $linkText -}}
{{ partial "icons/icon" (dict
"vendor" "bootstrap"
"name" "arrow-right"
Expand Down

0 comments on commit d4e9219

Please sign in to comment.