From 33017e7952180da4d868a7e754623c53fe7f4f0c Mon Sep 17 00:00:00 2001 From: Lukas Schirren Date: Mon, 17 Nov 2025 01:39:18 +0000 Subject: [PATCH] Add cv PDF link to social icons (#3240) Fixes issue #3243 Add CV PDF link to social icons - Added CV icon to social media links section - CV appears after LinkedIn icon in the contact section - Uses academicons CV symbol for consistent academic styling - Links to `/assets/pdf/CV_Schirren.pdf` and opens in new tab - Updated `_includes/social.liquid` to handle `cv_pdf` field - Updated `_data/socials.yml` with CV configuration - Updated `_scripts/search.liquid.js` with cv search functionality --- _data/socials.yml | 1 + _includes/social.liquid | 2 ++ _scripts/search.liquid.js | 4 ++++ 3 files changed, 7 insertions(+) diff --git a/_data/socials.yml b/_data/socials.yml index 83b92a8..c410d72 100644 --- a/_data/socials.yml +++ b/_data/socials.yml @@ -9,6 +9,7 @@ # arxiv_id: # your arXiv author ID # blogger_url: # your blogger URL # bluesky_url: # your bluesky URL +cv_pdf: /assets/pdf/example_pdf.pdf # path to your CV PDF file # dblp_url: # your DBLP profile url # discord_id: # your discord id (18-digit unique numerical identifier) email: you@example.com # your email address diff --git a/_includes/social.liquid b/_includes/social.liquid index d76d54e..b901739 100644 --- a/_includes/social.liquid +++ b/_includes/social.liquid @@ -10,6 +10,8 @@ {% when 'bluesky_url' %} + {% when 'cv_pdf' %} + {% when 'dblp_url' %} {% when 'discord_id' %} diff --git a/_scripts/search.liquid.js b/_scripts/search.liquid.js index 8fcbaa7..e43540c 100644 --- a/_scripts/search.liquid.js +++ b/_scripts/search.liquid.js @@ -119,6 +119,10 @@ ninja.data = [ {%- assign social_id = "social-bluesky" -%} {%- assign social_title = "Bluesky" -%} {%- capture social_url %}"{{ social[1] }}"{% endcapture -%} + {%- when "cv_pdf" -%} + {%- assign social_id = "social-cv" -%} + {%- assign social_title = "CV" -%} + {%- capture social_url %}"{{ social[1] | relative_url }}"{% endcapture -%} {%- when "dblp_url" -%} {%- assign social_id = "social-dblp" -%} {%- assign social_title = "DBLP" -%}