Use the data variable
This commit is contained in:
parent
444c93e0c1
commit
0f2c83d995
|
@ -5,8 +5,7 @@
|
|||
{% set output, now = '', "now"|date('U') %}
|
||||
|
||||
{% for type, data in site.availability %}
|
||||
{% set text, status, start, end = '', site.availability[type].available, site.availability[type].start,
|
||||
site.availability[type].end %}
|
||||
{% set text, status, start, end = '', data.available, data.start, data.end %}
|
||||
|
||||
{% if type == 'day' %}
|
||||
{% if status == 'yes' %}
|
||||
|
|
Reference in a new issue