From c68f7ed7b5aa87adbc5842944210b0b09d69cab1 Mon Sep 17 00:00:00 2001 From: Igor Kuzmenko Date: Tue, 18 Jul 2017 14:26:33 +0200 Subject: [PATCH] Updating wallet layouts to allow page generation --- _includes/layout/base/wallets-list.html | 8 +++--- _includes/layout/base/wallets-menu.html | 36 +++++++++++++++++-------- _layouts/wallet-container.html | 30 +++++++++------------ _sass/_wallets.scss | 2 +- 4 files changed, 44 insertions(+), 32 deletions(-) diff --git a/_includes/layout/base/wallets-list.html b/_includes/layout/base/wallets-list.html index ce9d01f5..d48430c1 100644 --- a/_includes/layout/base/wallets-list.html +++ b/_includes/layout/base/wallets-list.html @@ -1,17 +1,19 @@ {% comment %} This file is licensed under the MIT License (MIT) available on http://opensource.org/licenses/MIT. -{% if wallet.compat contains page.platform and wallet.compat contains page.os %} -{% endif %} {% endcomment %}
{% for wallet in site.wallets %} + {% assign platform = page.platform['name'] %} + {% assign os = page.os['name'] %} + {% if wallet.compat contains platform and wallet.compat contains os %}
- + {{ wallet.title }} {{ wallet.titleshort }}
+ {% endif %} {% endfor %}
diff --git a/_includes/layout/base/wallets-menu.html b/_includes/layout/base/wallets-menu.html index 965b27dd..89603f4f 100644 --- a/_includes/layout/base/wallets-menu.html +++ b/_includes/layout/base/wallets-menu.html @@ -7,22 +7,36 @@ http://opensource.org/licenses/MIT. {% assign platformsByPlatform = site.platforms | group_by: "platform" %}