Add support for LinkedIn companies

This commit is contained in:
Emil Dabrowski 2023-11-24 19:28:56 +01:00
parent 705c6610d2
commit 83c23014ca
5 changed files with 69 additions and 1 deletions

View File

@ -81,6 +81,7 @@ params:
Gitea: https://git.jilits.se/explore/repos
Telegram: dbrski
Linkedin: dbrski
LinkedinCompany: jilits
footer:
enable: true

View File

@ -1,5 +1,7 @@
#!/bin/bash
set -eu
script_dir=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
tmp_dir="$(mktemp -d --suffix=-web)"
version="$(head -n 1 "$script_dir/VERSION")"
@ -19,9 +21,10 @@ if [[ "$latest_theme_tag_name" != "$previous_theme_tag_name" ]]; then
[ -d "$theme_dir" ] && { rm -Rv "$theme_dir"* || exit 13; }
mv "$tmp_dir/LoveIt"* "$theme_dir" || exit 14
rm -Rv "$theme_dir/exampleSite"
git am "$script_dir/patches/"* || git am --abort
echo "$latest_theme_release_metadata" >"$release_json"
fi
rm -R resources .hugo_build.lock
rm -R resources .hugo_build.lock || true
docker build "$script_dir" -f Containerfile -t jilits/website:latest -t jilits/website:$version -t git.jilits.se/jilits/website:$version

View File

@ -0,0 +1,31 @@
From a190d589d10eb8663bc1b3838a58b6789eed0393 Mon Sep 17 00:00:00 2001
From: Emil Dabrowski <emidab@noreply.git.jilits.se>
Date: Fri, 24 Nov 2023 19:28:56 +0100
Subject: [PATCH] Add support for LinkedIn companies
---
themes/LoveIt/assets/data/social.yml | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/themes/LoveIt/assets/data/social.yml b/themes/LoveIt/assets/data/social.yml
index cb16556..dbb0d69 100644
--- a/themes/LoveIt/assets/data/social.yml
+++ b/themes/LoveIt/assets/data/social.yml
@@ -14,6 +14,14 @@ linkedin:
Icon:
Class: fab fa-linkedin fa-fw
+# 002: LinkedIn
+linkedincompany:
+ Weight: 2
+ Prefix: https://linkedin.com/company/
+ Title: LinkedIn (company)
+ Icon:
+ Class: fab fa-linkedin fa-fw
+
# 003: Twitter
twitter:
Weight: 3
--
2.42.0

View File

@ -0,0 +1,25 @@
From e8f8484526b8566679df070101e1df0a36034267 Mon Sep 17 00:00:00 2001
From: Emil Dabrowski <emidab@noreply.git.jilits.se>
Date: Fri, 24 Nov 2023 19:09:32 +0100
Subject: [PATCH] Adjust LinkedIn prefix to support company URLs
---
themes/LoveIt/assets/data/social.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/themes/LoveIt/assets/data/social.yml b/themes/LoveIt/assets/data/social.yml
index cb16556..d150a4f 100644
--- a/themes/LoveIt/assets/data/social.yml
+++ b/themes/LoveIt/assets/data/social.yml
@@ -9,7 +9,7 @@ github:
# 002: LinkedIn
linkedin:
Weight: 2
- Prefix: https://linkedin.com/in/
+ Prefix: https://linkedin.com/
Title: LinkedIn
Icon:
Class: fab fa-linkedin fa-fw
--
2.42.0

View File

@ -14,6 +14,14 @@ linkedin:
Icon:
Class: fab fa-linkedin fa-fw
# 002: LinkedIn
linkedincompany:
Weight: 2
Prefix: https://linkedin.com/company/
Title: LinkedIn (company)
Icon:
Class: fab fa-linkedin fa-fw
# 003: Twitter
twitter:
Weight: 3