New, more versatile link format

This commit is contained in:
Robbe Van Herck 2019-12-01 10:24:07 +01:00
parent 77c5525dff
commit 7487a763b1
No known key found for this signature in database
GPG key ID: A66F76F7B81BD784
2 changed files with 22 additions and 22 deletions

View file

@ -36,24 +36,20 @@ narrow_page: true
</div>
</div>
<div class="columns links">
<% if member[:github] %>
<a style="padding: 5px" class="social-icon" href="https://github.com/<%= member[:github] %>" target="_blank">
<span class="icon">
<%= fa :github, {:size => "2x"} %>
</span>
</a>
<% end %>
<% if member[:twitter] %>
<a style="padding: 5px" class="social-icon" href="https://twitter.com/<%= member[:twitter] %>" target="_blank">
<span class="icon">
<%= fa :twitter, {:size => "2x"} %>
</span>
</a>
<% end %>
<% if member[:blog] %>
<a style="padding: 5px" href="<%= member[:blog] %>">
<%= member[:blog] %>
</a>
<% member[:links].each do |link| %>
<% if link[:icon] %>
<a style="padding: 5px" class="social-icon" href="<%= link[:url] %>" target="_blank">
<span class="icon">
<%= fa link[:icon], {:size => "2x"} %>
</span>
</a>
<% else %>
<a style="padding: 5px" class="social-icon" href="<%= link[:url] %>" target="_blank">
<span class="icon">
<%= fa :globe, {:size => "2x"} %>
</span>
</a>
<% end %>
<% end %>
</div>
</div>

View file

@ -5,11 +5,15 @@ data:
nickname: FlashYoshi
photo: https://zeus.ugent.be/zeuswpi/0U6neVQP.jpg
quote: Ansible is af!
description: >
description: |
Puns, weeb, Sigasi, klimt, taart.
Houdt écht van Java.
Gebruikt tabs én spaces.
twitter: tivervack
github: tivervac
gitlab: FlashYoshi
links:
- icon: twitter
url: https://twitter.com/tivervac
- icon: github
url: https://github.com/tivervac
- icon: gitlab
url: https://gitlab.com/FlashYoshi