diff options
author | mertbakir <2335694-mertbakir@users.noreply.gitlab.com> | 2023-12-24 15:22:13 +0300 |
---|---|---|
committer | mertbakir <2335694-mertbakir@users.noreply.gitlab.com> | 2023-12-24 15:22:13 +0300 |
commit | 0341cded78f2f4e5a313fab07fb927dcc042d22f (patch) | |
tree | 093e817ea85cd33adc7ffc43b5843ae6580450d5 /layouts/partials/section-details-list.html | |
parent | 37e648c1d03444308adeb8b8f1b921a27d18446a (diff) |
Enable/disable usage of external-link icon from config.yml
Diffstat (limited to 'layouts/partials/section-details-list.html')
-rw-r--r-- | layouts/partials/section-details-list.html | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/layouts/partials/section-details-list.html b/layouts/partials/section-details-list.html index 8d529f2..f50fbdc 100644 --- a/layouts/partials/section-details-list.html +++ b/layouts/partials/section-details-list.html @@ -2,8 +2,15 @@ {{ range (index $collection .Feature.feature) }} <div class="item"> <h2 class="item-title"> + {{ $useFontAwesome := $.Params.itemTitle.useFontAwesome | default $.Params.useFontAwesome }} + {{ $noExternalIcon := not ($.Params.itemTitle.externalLinkIcon | default $.Params.externalLinkIcon) }} + {{- if .link -}} - <a href="{{ .link }}">{{ .title }}</a> + {{- if $useFontAwesome -}} + <i class="fas fa-link"></i> <a class="no-external-icon" href="{{ .link }}">{{ .title }}</a> + {{- else -}} + <a class="{{ if $noExternalIcon }}no-external-icon{{ end }}" href="{{ .link }}">{{ .title }}</a> + {{- end -}} {{- else -}} {{ .title }} {{- end -}} |