From 72eb0a345de6fb2c3150e322079ac6c18542ad32 Mon Sep 17 00:00:00 2001
From: Guillaume Dalle <22795598+gdalle@users.noreply.github.com>
Date: Wed, 16 Jul 2025 17:24:37 +0200
Subject: [PATCH] Add HAL id to socials (#3206)
Fixes #3205
---
_data/socials.yml | 1 +
_includes/metadata.liquid | 4 ++++
_includes/social.liquid | 2 ++
_scripts/search.liquid.js | 4 ++++
4 files changed, 11 insertions(+)
diff --git a/_data/socials.yml b/_data/socials.yml
index aa3e2b6..5cd5261 100644
--- a/_data/socials.yml
+++ b/_data/socials.yml
@@ -15,6 +15,7 @@ email: you@example.com # your email address
# ieee_id: # your ieeexplore.ieee.org/author/id
inspirehep_id: 1010907 # Inspire HEP author ID
# instagram_id: # your instagram id
+# hal_id: # your HAL id (https://hal.science/)
# kaggle_id: # your kaggle id
# keybase_username: # your keybase user name
# lastfm_id: # your lastfm id
diff --git a/_includes/metadata.liquid b/_includes/metadata.liquid
index 15464ca..c44d64f 100644
--- a/_includes/metadata.liquid
+++ b/_includes/metadata.liquid
@@ -112,6 +112,10 @@
{% capture link %}https://www.scopus.com/authid/detail.uri?authorId={{ site.scopus_id }}{% endcapture %}
{% assign sameaslinks = sameaslinks | push: link %}
{% endif %}
+ {% if site.hal_id %}
+ {% capture link %}https://cv.hal.science/{{ site.hal_id }}{% endcapture %}
+ {% assign sameaslinks = sameaslinks | push: link %}
+ {% endif %}
{% if site.github_username %}
{% capture link %}https://github.com/{{ site.github_username }}{% endcapture %}
{% assign sameaslinks = sameaslinks | push: link %}
diff --git a/_includes/social.liquid b/_includes/social.liquid
index 308a928..91b6ecc 100644
--- a/_includes/social.liquid
+++ b/_includes/social.liquid
@@ -20,6 +20,8 @@
{% when 'gitlab_username' %}
+ {% when 'hal_id' %}
+
{% when 'ieee_id' %}
{% when 'inspirehep_id' %}
diff --git a/_scripts/search.liquid.js b/_scripts/search.liquid.js
index bdb03af..4d22315 100644
--- a/_scripts/search.liquid.js
+++ b/_scripts/search.liquid.js
@@ -143,6 +143,10 @@ ninja.data = [
{%- assign social_id = "social-gitlab" -%}
{%- assign social_title = "GitLab" -%}
{%- capture social_url %}"https://gitlab.com/{{ social[1] }}"{% endcapture -%}
+ {%- when "hal_id" -%}
+ {%- assign social_id = "social-hal" -%}
+ {%- assign social_title = "HAL" -%}
+ {%- capture social_url %}"https://cv.hal.science/{{ social[1] }}"{% endcapture -%}
{%- when "ieee_id" -%}
{%- assign social_id = "social-ieee" -%}
{%- assign social_title = "IEEE Xplore" -%}