Issue #11: Use variables

This commit is contained in:
Oliver Davies 2015-08-10 02:15:34 +01:00
parent 9a5e00c842
commit 217f64b133

View file

@ -1,19 +1,20 @@
<div class="availability"> <div class="availability">
<h2>Availability</h2> <h2>Availability</h2>
<div class="content"> <div class="content">
{% if (site.availability.day.available == 'no') %} {% set day_available = site.availability.day.available %}
{% if (day_available == 'no') %}
<p>Not available for day contract work.</p> <p>Not available for day contract work.</p>
{% else %} {% else %}
<p>Available for day contract work.</p> <p>Available for day contract work.</p>
{% endif %} {% endif %}
{% if (site.availability.evenings.available == 'yes') %} {% set evenings_available = site.availability.evenings.available %}
{% if (evenings_available == 'yes') %}
<p>Available for weekend/evening freelance work.</p> <p>Available for weekend/evening freelance work.</p>
{% elseif (site.availability.evenings.available == 'limited') %} {% elseif (evenings_available == 'limited') %}
<p>Limited availability for weekend/evening freelance work.</p> <p>Limited availability for weekend/evening freelance work.</p>
{% else %} {% else %}
<p>Not available for weekend/evening freelance work.</p> <p>Not available for weekend/evening freelance work.</p>
{% endif %} {% endif %}
</div> </div>
</div> </div>