Verified Commit e1b907df authored by Toby Hodges's avatar Toby Hodges

use an assign to capture platform string

parent 0005aad4
Pipeline #9891 passed with stages
in 1 minute and 47 seconds
...@@ -85,20 +85,21 @@ Open an image and binarize it by applying a threshold. ...@@ -85,20 +85,21 @@ Open an image and binarize it by applying a threshold.
{% assign first = true %} {% assign first = true %}
{% endif %} {% endif %}
{% for platform in page.platforms %} {% for platform in page.platforms %}
{% assign platstring = platform[0] %}
{% if first %} {% if first %}
<option value="{{platform[0]}}" id="{{platform[0]}}" selected="selected"> {{platform[0]}} </option> <option value="{{platstring}}" id="{{platstring}}" selected="selected"> {{platstring}} </option>
{% assign first = false %} {% assign first = false %}
{% else %} {% else %}
<option value="{{platform[0]}}" id="{{platform[0]}}"> {{platform[0]}} </option> <option value="{{platstring}}" id="{{platstring}}"> {{platstring}} </option>
{% endif %} {% endif %}
{% endfor %} {% endfor %}
{% if page.platforms %} {% if page.platforms %}
</select> </select>
{% endif %} {% endif %}
{% for platform in page.platforms %} {% for platform in page.platforms %}
<div id="{{platform[0]}}"> <div id="{{platstring}}">
<h4>{{platform[0]}}</h4> <h4>{{platstring]}}</h4>
{% assign includefile = platform[1] %} {% assign includefile = platform[1] %}
{% capture my_include %}{% include {{includefile}} %}{% endcapture %} {% capture my_include %}{% include {{includefile}} %}{% endcapture %}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment