Skip to content

Commit

Permalink
Support http links in papers
Browse files Browse the repository at this point in the history
Signed-off-by: Jeff Goeders <[email protected]>
  • Loading branch information
jgoeders committed Aug 18, 2023
1 parent 32be7dd commit c65c405
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pages/papers.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,14 @@ <h4 class="paper-title">
</div>
{% endif %}
{% if paper.url %}
{% assign url_start = paper.url | slice: 0, 4 %}
<div>
<a href="/assets/{{ paper.url }}" class="">Paper</a>
{% if url_start == "http" %}
<a href="{{ paper.url }}" class="">Paper</a>
{% else %}
<a href="/assets/{{ paper.url }}" class="">Paper</a>
{% endif %}
</div>

{% endif %}
</div>
<hr>
Expand Down

0 comments on commit c65c405

Please sign in to comment.