From 562051bc0d562e3567cb829669019fcefdabe9ec Mon Sep 17 00:00:00 2001 From: beyzanurdeniz Date: Sat, 16 Nov 2024 17:43:36 +0300 Subject: [PATCH 1/4] initial --- layouts/shortcodes/people.html | 144 ++++++++++++++++++++++----------- static/icons/linkedin.svg | 3 + 2 files changed, 100 insertions(+), 47 deletions(-) create mode 100644 static/icons/linkedin.svg diff --git a/layouts/shortcodes/people.html b/layouts/shortcodes/people.html index 72fc524..32d5fb2 100644 --- a/layouts/shortcodes/people.html +++ b/layouts/shortcodes/people.html @@ -12,52 +12,102 @@ {{ end }} {{ $members := $ctx.Get "members" }} -
-{{ range $members }} -
- {{ $thumbnail := .thumbnail | default "images/person.png" }} - {{ $image_settings := site.Params.people.image_settings | default "500x500 webp q90 smart" }} - - {{ $image_resource := resources.Get $thumbnail }} - - {{ if $image_resource }} - {{ $retouched := $image_resource.Fill $image_settings }} - {{ $thumbnail = $retouched.RelPermalink }} - {{ end }} -
-
-
- {{ .name | anchorize }}-thumbnail -
-
-
-
{{ .name | title }}
- {{ with .position }} -

- {{ . | i18n | title }} -

- {{ end }} -

- {{ with .email }} - - - - {{ end }} - {{ with .homepage }} - - - - {{ end }} - {{ with .github }} - - - - {{ end }} -

-
-
-
+
+ {{ range $members }} +
+
+ {{ $thumbnail := .thumbnail | default "images/person.png" }} + {{ $image_settings := site.Params.people.image_settings | default "500x500 webp q90 smart" }} + {{ $image_resource := resources.Get $thumbnail }} + {{ if $image_resource }} + {{ $retouched := $image_resource.Fill $image_settings }} + {{ $thumbnail = $retouched.RelPermalink }} + {{ end }} + {{ .name | anchorize }}-thumbnail +
+
+
{{ .name | title }}
+ {{ with .position }} +

{{ . | i18n | title }}

+ {{ end }} +
+ {{ with .email }} + Email + {{ end }} + {{ with .linkedin }} + LinkedIn + {{ end }} + {{ with .github }} + GitHub + {{ end }}
+
+
+ {{ end }}
-{{ end }} -
+ + diff --git a/static/icons/linkedin.svg b/static/icons/linkedin.svg new file mode 100644 index 0000000..30fc0e3 --- /dev/null +++ b/static/icons/linkedin.svg @@ -0,0 +1,3 @@ + + + \ No newline at end of file From 22cce34e4a43f6821ed5d77d747404b53640bdcd Mon Sep 17 00:00:00 2001 From: beyzanurdeniz Date: Sat, 16 Nov 2024 17:51:14 +0300 Subject: [PATCH 2/4] linkedin link issu --- layouts/shortcodes/people.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/shortcodes/people.html b/layouts/shortcodes/people.html index 32d5fb2..2e1ead0 100644 --- a/layouts/shortcodes/people.html +++ b/layouts/shortcodes/people.html @@ -35,7 +35,7 @@
{{ .name | title }}
Email {{ end }} {{ with .linkedin }} - LinkedIn + LinkedIn {{ end }} {{ with .github }} GitHub From 61aead516c0ae1c72726f8ea0270facdbab31b81 Mon Sep 17 00:00:00 2001 From: beyzanurdeniz Date: Sat, 16 Nov 2024 17:53:31 +0300 Subject: [PATCH 3/4] linkedin link issue --- layouts/shortcodes/people.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/shortcodes/people.html b/layouts/shortcodes/people.html index 2e1ead0..db783e5 100644 --- a/layouts/shortcodes/people.html +++ b/layouts/shortcodes/people.html @@ -35,7 +35,7 @@
{{ .name | title }}
Email {{ end }} {{ with .linkedin }} - LinkedIn + LinkedIn {{ end }} {{ with .github }} GitHub From 362ec5647d70100171910cc2e507d95435171ab2 Mon Sep 17 00:00:00 2001 From: beyzanurdeniz Date: Tue, 19 Nov 2024 10:04:13 +0300 Subject: [PATCH 4/4] little style change --- layouts/shortcodes/people.html | 4 ---- 1 file changed, 4 deletions(-) diff --git a/layouts/shortcodes/people.html b/layouts/shortcodes/people.html index db783e5..437a893 100644 --- a/layouts/shortcodes/people.html +++ b/layouts/shortcodes/people.html @@ -64,10 +64,6 @@
{{ .name | title }}
transition: transform 0.3s; } -.side-profile-card:hover { - transform: scale(1.05); -} - .side-image { width: 120px; height: 120px;