Skip to content

Commit

Permalink
Update info.html
Browse files Browse the repository at this point in the history
better handle website and website_card
  • Loading branch information
JediLin committed Apr 29, 2023
1 parent 3e659cb commit 22b047e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions _layouts/info.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,16 @@ <h2>
<div lang="en">{{ user.description_en }}</div>
</h2>
<div class="row">
{% if user.website %}
<a href="{{ user.website_card | default: user.website }}" title="web" class="btn-social black-text white btn-flat waves-effect">
{% if user.website_card %}
<a href="{{ user.website_card }}" title="web" class="btn-social black-text white btn-flat waves-effect">
<i class="left teal-text fa fa-home"></i>
<span>聯絡網頁 Web</span>
</a>
{% elsif user.website %}
<a href="{{ user.website }}" title="website" class="btn-social black-text white btn-flat waves-effect">
<i class="left teal-text fa fa-home"></i>
<span>網站 Website</span>
</a>
{% endif %}
{% if user.email %}
<a href="mailto:{{ user.email }}" title="email" class="btn-social black-text white btn-flat waves-effect">
Expand Down

0 comments on commit 22b047e

Please sign in to comment.