From 0341cded78f2f4e5a313fab07fb927dcc042d22f Mon Sep 17 00:00:00 2001 From: mertbakir <2335694-mertbakir@users.noreply.gitlab.com> Date: Sun, 24 Dec 2023 15:22:13 +0300 Subject: Enable/disable usage of external-link icon from config.yml --- config.yaml | 13 ++++++++++++- layouts/partials/section-details-list.html | 9 ++++++++- layouts/partials/section-education.html | 9 ++++++++- layouts/partials/section-publications.html | 9 ++++++++- 4 files changed, 36 insertions(+), 4 deletions(-) diff --git a/config.yaml b/config.yaml index 94d8749..7fd4265 100644 --- a/config.yaml +++ b/config.yaml @@ -47,6 +47,7 @@ theme: "resume-a4" params: useFontAwesome: true + externalLinkIcon: true css: - custom.scss # - print_urls.scss @@ -87,8 +88,18 @@ params: show: false title: Technologies education: + useFontAwesome: true + externalLinkIcon: false location: - show: true + show: false + details: + show: false + publications: + useFontAwesome: false + externalLinkIcon: false + itemTitle: + useFontAwesome: false + externalLinkIcon: false footer: show: true 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) }}

+ {{ $useFontAwesome := $.Params.itemTitle.useFontAwesome | default $.Params.useFontAwesome }} + {{ $noExternalIcon := not ($.Params.itemTitle.externalLinkIcon | default $.Params.externalLinkIcon) }} + {{- if .link -}} - {{ .title }} + {{- if $useFontAwesome -}} + {{ .title }} + {{- else -}} + {{ .title }} + {{- end -}} {{- else -}} {{ .title }} {{- end -}} 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 @@ {{ .name }}
+ {{ $useFontAwesome := $.Params.education.useFontAwesome | default $.Params.useFontAwesome }} + {{ $noExternalIcon := not ($.Params.education.externalLinkIcon | default $.Params.externalLinkIcon) }} {{- if .more -}} {{- if .link -}} - {{ .more }}
+ {{- if $useFontAwesome -}} + {{ .more }} +
+ {{- else -}} + {{ .more }}
+ {{- end -}} {{- else -}} {{ .more }}
{{- end -}} diff --git a/layouts/partials/section-publications.html b/layouts/partials/section-publications.html index d7c5bdb..1216c06 100644 --- a/layouts/partials/section-publications.html +++ b/layouts/partials/section-publications.html @@ -1,7 +1,14 @@ {{ range .Data.publications }}
+ {{ $useFontAwesome := $.Params.publications.useFontAwesome | default $.Params.useFontAwesome }} + {{ $noExternalIcon := not ($.Params.publications.externalLinkIcon | default $.Params.externalLinkIcon) }} + {{- if .link }} - + {{- if $useFontAwesome}} + + {{- else -}} + + {{- end -}} {{- end -}} {{- if eq $.Feature.style "IEEE" }} -- cgit v1.2.3