mirror of
https://github.com/seigler/dash-docs
synced 2025-07-27 09:46:12 +00:00
Fixes an issue with URLs like /web/web/
This commit is contained in:
parent
b33eaa0133
commit
444d4cf4d7
4 changed files with 21 additions and 3 deletions
|
@ -9,8 +9,13 @@ http://opensource.org/licenses/MIT.
|
|||
{% assign os = page.os['name'] %}
|
||||
{% if wallet.compat contains platform and wallet.compat contains os %}
|
||||
<div class="wallet-list-item" data-walletlevel="{{ wallet.level }}">
|
||||
{% if platform == os %}
|
||||
<a class="wallet-list-item-link"
|
||||
href="/{{ page.lang}}/wallets/{{ platform }}/{{ wallet.id }}/">
|
||||
{% else %}
|
||||
<a class="wallet-list-item-link"
|
||||
href="/{{ page.lang}}/wallets/{{ platform }}/{{ os }}/{{ wallet.id }}/">
|
||||
{% endif %}
|
||||
<img src="/img/wallet/{{ wallet.id }}.png" alt="{{ wallet.title }}" />
|
||||
{{ wallet.titleshort }}
|
||||
</a>
|
||||
|
|
|
@ -27,7 +27,7 @@ http://opensource.org/licenses/MIT.
|
|||
{% endif %}
|
||||
<li class="{{ platformClass }}">
|
||||
{% if platformName == 'hardware' or platformName == 'web' %}
|
||||
{% assign platformHref = "/" | append: page.lang | append: "/wallets/" | append: platformName | append: "/" | append: platformName | append: "/" %}
|
||||
{% assign platformHref = "/" | append: page.lang | append: "/wallets/" | append: platformName | append: "/" %}
|
||||
<a href="{{ platformHref }}">{% translate walletcat{{platformName}} choose-your-wallet %}</a>
|
||||
{% else %}
|
||||
<a>{% translate walletcat{{platformName}} choose-your-wallet %}</a>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue