diff options
Diffstat (limited to 'layouts/partials/section-education.html')
-rw-r--r-- | layouts/partials/section-education.html | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/layouts/partials/section-education.html b/layouts/partials/section-education.html index 12b1440..44c6283 100644 --- a/layouts/partials/section-education.html +++ b/layouts/partials/section-education.html @@ -25,9 +25,16 @@ <span>{{ .name }}</span><br> + {{ $useFontAwesome := $.Params.education.useFontAwesome | default $.Params.useFontAwesome }} + {{ $noExternalIcon := not ($.Params.education.externalLinkIcon | default $.Params.externalLinkIcon) }} {{- if .more -}} {{- if .link -}} - <span><a href="{{ .link }}">{{ .more }}</a></span><br> + {{- if $useFontAwesome -}} + <span><a class="no-external-icon" href="{{ .link }}">{{ .more }}</a></span> + <i class="fas fa-link"></i><br> + {{- else -}} + <span><a class="{{ if $noExternalIcon }}no-external-icon{{ end }}" href="{{ .link }}">{{ .more }}</a></span><br> + {{- end -}} {{- else -}} <span>{{ .more }}</span><br> {{- end -}} |