Skip to content

Commit

Permalink
Support for Resume/CV Links (#2826)
Browse files Browse the repository at this point in the history
Solves #2825
  • Loading branch information
pranjalagg authored Dec 3, 2024
1 parent b37758a commit c5d484e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
11 changes: 8 additions & 3 deletions _layouts/cv.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
Expand Down
2 changes: 1 addition & 1 deletion _pages/cv.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c5d484e

Please sign in to comment.