Skip to content

Commit

Permalink
Merge pull request #87 from byuccl/fix_http_papers
Browse files Browse the repository at this point in the history
Support http links in papers
  • Loading branch information
jgoeders authored Aug 18, 2023
2 parents 32be7dd + c65c405 commit 04ec125
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 04ec125

Please sign in to comment.