Skip to content
Snippets Groups Projects
Verified Commit e1b907df authored by Toby Hodges's avatar Toby Hodges
Browse files

use an assign to capture platform string

parent 0005aad4
No related branches found
No related tags found
1 merge request!20More advanced Jekyll setup
Pipeline #9891 passed
......@@ -85,20 +85,21 @@ Open an image and binarize it by applying a threshold.
{% assign first = true %}
{% endif %}
{% for platform in page.platforms %}
{% assign platstring = platform[0] %}
{% 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 %}
{% else %}
<option value="{{platform[0]}}" id="{{platform[0]}}"> {{platform[0]}} </option>
<option value="{{platstring}}" id="{{platstring}}"> {{platstring}} </option>
{% endif %}
{% endfor %}
{% if page.platforms %}
</select>
{% endif %}
{% for platform in page.platforms %}
<div id="{{platform[0]}}">
<h4>{{platform[0]}}</h4>
<div id="{{platstring}}">
<h4>{{platstring]}}</h4>
{% assign includefile = platform[1] %}
{% capture my_include %}{% include {{includefile}} %}{% endcapture %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment