Support for Resume/CV Links (#2826)

Solves #2825
This commit is contained in:
Pranjal Aggarwal 2024-12-02 20:35:59 -07:00 committed by GitHub
parent b37758a55c
commit c5d484ec9f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 9 additions and 4 deletions

View File

@ -54,12 +54,17 @@ layout: default
{{ page.title }}
{% if page.cv_pdf %}
<a
href="{{ page.cv_pdf | prepend: 'assets/pdf/' | relative_url}}"
{% if page.cv_pdf contains '://' %}
href="{{ page.cv_pdf }}"
{% else %}
href="{{ page.cv_pdf | prepend: 'assets/pdf/' | relative_url }}"
{% endif %}
target="_blank"
rel="noopener noreferrer"
class="float-right"
><i class="fa-solid fa-file-pdf"></i
></a>
>
<i class="fa-solid fa-file-pdf"></i>
</a>
{% endif %}
</h1>
{% if page.description %}

View File

@ -4,7 +4,7 @@ permalink: /cv/
title: cv
nav: true
nav_order: 5
cv_pdf: example_pdf.pdf
cv_pdf: example_pdf.pdf # you can also use external links here
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