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:
authormertbakir <2335694-mertbakir@users.noreply.gitlab.com>2023-12-24 15:22:13 +0300
committermertbakir <2335694-mertbakir@users.noreply.gitlab.com>2023-12-24 15:22:13 +0300
commit0341cded78f2f4e5a313fab07fb927dcc042d22f (patch)
tree093e817ea85cd33adc7ffc43b5843ae6580450d5
parent37e648c1d03444308adeb8b8f1b921a27d18446a (diff)
Enable/disable usage of external-link icon from config.yml
-rw-r--r--config.yaml13
-rw-r--r--layouts/partials/section-details-list.html9
-rw-r--r--layouts/partials/section-education.html9
-rw-r--r--layouts/partials/section-publications.html9
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) }}
<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 -}}
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 -}}
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 }}
<div class="item">
+ {{ $useFontAwesome := $.Params.publications.useFontAwesome | default $.Params.useFontAwesome }}
+ {{ $noExternalIcon := not ($.Params.publications.externalLinkIcon | default $.Params.externalLinkIcon) }}
+
{{- if .link }}
- <a href="{{ .link }}">
+ {{- if $useFontAwesome}}
+ <i class="fas fa-link"></i> <a class="no-external-icon" href="{{ .link }}">
+ {{- else -}}
+ <a class="{{ if $noExternalIcon }}no-external-icon{{ end }}" href="{{ .link }}">
+ {{- end -}}
{{- end -}}
{{- if eq $.Feature.style "IEEE" }}
<span>