diff --git a/layouts/partials/bootstrap/icon-grid.html b/layouts/partials/bootstrap/icon-grid.html index 650c552..9c322c9 100644 --- a/layouts/partials/bootstrap/icon-grid.html +++ b/layouts/partials/bootstrap/icon-grid.html @@ -1,8 +1,13 @@ {{- $key := "" }} {{- $linkText := i18n "learn_more" }} +{{- $linkIcon := partial "icons/icon" (dict + "vendor" "bootstrap" + "name" "arrow-right" + "className" "ms-1") +}} {{- if .IsNamedParams }} {{- $key = .Get "data" }} - {{- with .Get "linkText" }}{{ $linkText = . }}{{ end }} + {{- if isset .Params "linkText" }}{{ $linkText = .Get "linkText" }}{{ end }} {{- else }} {{- $key = .Get 0 }} {{- end }} @@ -11,46 +16,60 @@
- {{ .description | markdownify }} -
- {{- if .url }} - {{- $link := .url }} - {{- $url := urls.Parse .url }} - {{- if not $url.Scheme }} - {{- with site.GetPage .url }} - {{- $link = .RelPermalink }} - {{- else }} - {{- $link = relURL .url }} - {{- end }} - {{- end }} - {{- end }} -+ {{ .description | markdownify }} +
+ + {{ else }} ++ {{ .description | markdownify }} +
+ {{- with $link }} + + {{- end }} +