From 4086784bc73e7fef0171c92abb5b7ebbaddeae35 Mon Sep 17 00:00:00 2001 From: Riasat Sheikh Date: Mon, 17 Nov 2025 10:31:18 +0900 Subject: [PATCH] add: arXiv social (#3191) addresses the question #3176 and issue #3190 --------- Co-authored-by: George <31376482+george-gca@users.noreply.github.com> --- README.md | 2 +- _data/socials.yml | 1 + _includes/metadata.liquid | 3 +++ _includes/social.liquid | 2 ++ _scripts/search.liquid.js | 4 ++++ 5 files changed, 11 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 4a8d708..ebe877a 100644 --- a/README.md +++ b/README.md @@ -145,7 +145,7 @@ Feel free to add your own page(s) by sending a PR. - + diff --git a/_data/socials.yml b/_data/socials.yml index 7011e9c..83b92a8 100644 --- a/_data/socials.yml +++ b/_data/socials.yml @@ -6,6 +6,7 @@ # organization: princeton # your organization as appears in the subdomain # username: AlbertEinstein # your username # acm_id: # your dl.acm.org/profile/id +# arxiv_id: # your arXiv author ID # blogger_url: # your blogger URL # bluesky_url: # your bluesky URL # dblp_url: # your DBLP profile url diff --git a/_includes/metadata.liquid b/_includes/metadata.liquid index b1155b6..e12e394 100644 --- a/_includes/metadata.liquid +++ b/_includes/metadata.liquid @@ -85,6 +85,9 @@ {% when 'acm_id' %} {% capture link %}https://dl.acm.org/profile/{{ social[1] }}/{% endcapture %} {% assign sameaslinks = sameaslinks | push: link %} + {% when 'arxiv_id' %} + {% capture link %}https://arxiv.org/a/{{ social[1] }}.html{% endcapture %} + {% assign sameaslinks = sameaslinks | push: link %} {% when 'blogger_url' %} {% capture link %}{{ social[1] }}{% endcapture %} {% assign sameaslinks = sameaslinks | push: link %} diff --git a/_includes/social.liquid b/_includes/social.liquid index 51907a4..d76d54e 100644 --- a/_includes/social.liquid +++ b/_includes/social.liquid @@ -4,6 +4,8 @@ {% when 'acm_id' %} + {% when 'arxiv_id' %} + {% when 'blogger_url' %} {% when 'bluesky_url' %} diff --git a/_scripts/search.liquid.js b/_scripts/search.liquid.js index 4d22315..8fcbaa7 100644 --- a/_scripts/search.liquid.js +++ b/_scripts/search.liquid.js @@ -107,6 +107,10 @@ ninja.data = [ {%- assign social_id = "social-acm" -%} {%- assign social_title = "ACM DL" -%} {%- capture social_url %}"https://dl.acm.org/profile/{{ social[1] }}/"{% endcapture -%} + {%- when "arxiv_id" -%} + {%- assign social_id = "social-arxiv" -%} + {%- assign social_title = "arXiv" -%} + {%- capture social_url %}"https://arxiv.org/a/{{ social[1] }}.html"{% endcapture -%} {%- when "blogger_url" -%} {%- assign social_id = "social-blogger" -%} {%- assign social_title = "Blogger" -%}