Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/mertbakir/resume-a4.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/section-details-list.html')
-rw-r--r--layouts/partials/section-details-list.html9
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 -}}