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