1
0
mirror of https://github.com/bigchaindb/site.git synced 2024-11-22 09:46:57 +01:00

conditional repo url

This commit is contained in:
Matthias Kretschmann 2017-09-13 11:41:22 +02:00
parent d3ff2121f9
commit ec82dd7b02
Signed by: m
GPG Key ID: 606EEEF3C479A91F
2 changed files with 9 additions and 1 deletions

View File

@ -11,6 +11,7 @@ official:
- title: Java
repo: java-bigchaindb-driver
external: authenteq
version: v0.1
icon: logo-java

View File

@ -208,8 +208,15 @@ conn.postTransaction(txSigned)
<div class="grid grid--full grid-small--half grid--gutters">
{% for driver in site.data.drivers.official %}
{% if driver.external %}
{% capture url %}https://github.com/{{ driver.external }}/{{ driver.repo }}{% endcapture %}
{% else %}
{% capture url %}https://github.com/bigchaindb/{{ driver.repo }}{% endcapture %}
{% endif %}
<div class="grid__col">
<a class="driver" href="https://github.com/bigchaindb/{{ driver.repo }}">
<a class="driver" href="{{ url }}">
<h2 class="driver__title">{{ driver.title }}</h2>
<svg class="driver__logo">
<use xlink:href="/assets/img/sprite.svg#{{ driver.icon }}"></use>