Skip to content

Commit 21df466

Browse files
committed
embed cv
1 parent cb813a7 commit 21df466

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

_layouts/cv.liquid

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,17 @@ layout: default
2222
</header>
2323

2424
<article>
25+
{% if page.cv_pdf %}
26+
<div class="cv-pdf-container mb-4">
27+
<embed
28+
src="{{ page.cv_pdf | prepend: 'assets/pdf/' | relative_url}}"
29+
type="application/pdf"
30+
width="100%"
31+
height="800px"
32+
class="border border-secondary rounded"
33+
/>
34+
</div>
35+
{% endif %}
2536
<div class="cv">
2637
{% for entry in site.data.cv %}
2738
<a class="anchor" id="{{ entry.title }}"></a>
@@ -68,6 +79,17 @@ layout: default
6879
</header>
6980

7081
<article>
82+
{% if page.cv_pdf %}
83+
<div class="cv-pdf-container mb-4">
84+
<embed
85+
src="{{ page.cv_pdf | prepend: 'assets/pdf/' | relative_url}}"
86+
type="application/pdf"
87+
width="100%"
88+
height="800px"
89+
class="border border-secondary rounded"
90+
/>
91+
</div>
92+
{% endif %}
7193
<div class="cv">
7294
{% for data in site.data.resume %}
7395
{% if site.jsonresume and site.jsonresume.size > 0 %}

0 commit comments

Comments
 (0)