Skip to content

Commit

Permalink
Fixed bug when displaying localized cv pdf
Browse files Browse the repository at this point in the history
Signed-off-by: George Araújo <[email protected]>
  • Loading branch information
george-gca committed Dec 15, 2023
1 parent ded748d commit 426b0b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _layouts/cv.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<!-- use data from _data/LANG/cv.yml -->
<div class="post">
<header class="post-header">
<h1 class="post-title">{% t page.title %} {% if page.cv_pdf %}<a href="{{ page.cv_pdf | prepend: '/' | prepend: site.lang | prepend: 'assets/pdf/' | relative_url}}" target="_blank" rel="noopener noreferrer" class="float-right"><i class="fas fa-file-pdf"></i></a>{% endif %}</h1>
<h1 class="post-title">{% t page.title %} {% if page.cv_pdf %}<a href="{{ page.cv_pdf | prepend: '/' | prepend: site.lang | prepend: '/assets/pdf/' | prepend: site.baseurl_root }}" target="_blank" rel="noopener noreferrer" class="float-right"><i class="fas fa-file-pdf"></i></a>{% endif %}</h1>
{% if page.description %}<p class="post-description">{% t page.description %}</p>{% endif %}
</header>

Expand Down Expand Up @@ -41,7 +41,7 @@ <h3 class="card-title font-weight-medium">{{ entry.title }}</h3>
<!-- use data from assets/json/resume_LANG.json -->
<div class="post">
<header class="post-header">
<h1 class="post-title">{% t page.title %} {% if page.cv_pdf %}<a href="{{ page.cv_pdf | prepend: '/' | prepend: site.lang | prepend: 'assets/pdf/' | relative_url}}" target="_blank" rel="noopener noreferrer" class="float-right"><i class="fas fa-file-pdf"></i></a>{% endif %}</h1>
<h1 class="post-title">{% t page.title %} {% if page.cv_pdf %}<a href="{{ page.cv_pdf | prepend: '/' | prepend: site.lang | prepend: '/assets/pdf/' | prepend: site.baseurl_root}}" target="_blank" rel="noopener noreferrer" class="float-right"><i class="fas fa-file-pdf"></i></a>{% endif %}</h1>
{% if page.description %}<p class="post-description">{% t page.description %}</p>{% endif %}
</header>

Expand Down

0 comments on commit 426b0b9

Please sign in to comment.