Skip to content

Commit c5d484e

Browse files
authored
Support for Resume/CV Links (#2826)
Solves #2825
1 parent b37758a commit c5d484e

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

_layouts/cv.liquid

+8-3
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,17 @@ layout: default
5454
{{ page.title }}
5555
{% if page.cv_pdf %}
5656
<a
57-
href="{{ page.cv_pdf | prepend: 'assets/pdf/' | relative_url}}"
57+
{% if page.cv_pdf contains '://' %}
58+
href="{{ page.cv_pdf }}"
59+
{% else %}
60+
href="{{ page.cv_pdf | prepend: 'assets/pdf/' | relative_url }}"
61+
{% endif %}
5862
target="_blank"
5963
rel="noopener noreferrer"
6064
class="float-right"
61-
><i class="fa-solid fa-file-pdf"></i
62-
></a>
65+
>
66+
<i class="fa-solid fa-file-pdf"></i>
67+
</a>
6368
{% endif %}
6469
</h1>
6570
{% if page.description %}

_pages/cv.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ permalink: /cv/
44
title: cv
55
nav: true
66
nav_order: 5
7-
cv_pdf: example_pdf.pdf
7+
cv_pdf: example_pdf.pdf # you can also use external links here
88
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.
99
toc:
1010
sidebar: left

0 commit comments

Comments
 (0)