Skip to content

Commit 9a5101a

Browse files
committed
Fix fallback for 'Visit site' link when repo.website is missing
1 parent 9d53a12 commit 9a5101a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

themes/vocabulary_theme/templates/blocks/featured-projects.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ <h2 class="is-paddingless level-left">
1515
<article class="card entry-post vertical project-index">
1616
<div class="card-content">
1717
<h4 class="card-title b-header"><a href="{{ repo.url }}">{{ repo.english_name }}</a></h4>
18-
<a class="button is-text tiny site-link" href="{{ repo.website }}">
18+
<a class="button is-text tiny site-link" href="{{ repo.website or repo.url}}">
1919
<span>Visit site</span>
2020
<i class="icon external-link"></i>
2121
</a>

themes/vocabulary_theme/templates/project_list.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ <h2 class="is-paddingless level-left">
2323
<article class="card entry-post vertical project-index">
2424
<div class="card-content">
2525
<h4 class="card-title b-header"><a href="{{ repo.url }}">{{ repo.english_name }}</a></h4>
26-
<a class="button is-text tiny site-link" href="{{ repo.website }}">
26+
<a class="button is-text tiny site-link" href="{{ repo.website or repo.url}}">
2727
<span>Visit site</span>
2828
<i class="icon external-link"></i>
2929
</a>

0 commit comments

Comments
 (0)