From 285d5fb2da886d823dc9b65faa3524b59f4fd5ed Mon Sep 17 00:00:00 2001
From: Pranjal Aggarwal <54495980+pranjalagg@users.noreply.github.com>
Date: Sun, 3 Nov 2024 18:03:42 -0700
Subject: [PATCH 1/2] Add Option to add Resume/CV Link
---
_layouts/cv.liquid | 24 +++++++++++++++++-------
_pages/cv.md | 2 +-
2 files changed, 18 insertions(+), 8 deletions(-)
diff --git a/_layouts/cv.liquid b/_layouts/cv.liquid
index 0ce33a0772db..f7825497af7a 100644
--- a/_layouts/cv.liquid
+++ b/_layouts/cv.liquid
@@ -53,13 +53,23 @@ layout: default
{{ page.title }}
{% if page.cv_pdf %}
-
+ {% if page.cv_pdf contains "http" %}
+
+
+
+ {% else %}
+
+
+
+ {% endif %}
{% endif %}
{% if page.description %}
diff --git a/_pages/cv.md b/_pages/cv.md
index ad3e26ddd234..1828d722b087 100644
--- a/_pages/cv.md
+++ b/_pages/cv.md
@@ -4,7 +4,7 @@ permalink: /cv/
title: cv
nav: true
nav_order: 5
-cv_pdf: example_pdf.pdf
+cv_pdf: http://alberteinstein.eurocv.eu/
description: This is a description of the page. You can modify it in '_pages/cv.md'. You can also change or remove the top pdf download button.
toc:
sidebar: left
From 28439f786a78cdf0750b15adf5e25c3b6133300c Mon Sep 17 00:00:00 2001
From: Pranjal Aggarwal <54495980+pranjalagg@users.noreply.github.com>
Date: Sun, 3 Nov 2024 18:04:40 -0700
Subject: [PATCH 2/2] Prettier
---
_layouts/cv.liquid | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/_layouts/cv.liquid b/_layouts/cv.liquid
index f7825497af7a..320892fe6c55 100644
--- a/_layouts/cv.liquid
+++ b/_layouts/cv.liquid
@@ -53,12 +53,13 @@ layout: default
{{ page.title }}
{% if page.cv_pdf %}
- {% if page.cv_pdf contains "http" %}
+ {% if page.cv_pdf contains 'http' %}
+ class="float-right"
+ >
{% else %}
@@ -66,7 +67,8 @@ layout: default
href="{{ page.cv_pdf | prepend: 'assets/pdf/' | relative_url}}"
target="_blank"
rel="noopener noreferrer"
- class="float-right">
+ class="float-right"
+ >
{% endif %}