{% set grid_size = theme_var('grid-size') %}
{% set image = page.media.images|first %}
{% macro pageLinkName(text) %}{{ text|lower|replace({' ':'_'}) }}{% endmacro %}

{% block body %}
    {% for module in page.collection %}
      <div id="{{ _self.pageLinkName(module.folder)|replace({"0":"", "1":"", "2":"", "3":"", "4":"", "5":"", "6":"", "7":"", "8":"", "9":"", ".":"","_":"" }) }}">
          {{ module.content }}
          <canvas id="canvas" resize hidpi="on" style="background:white"></canvas>
      </div>
    {% endfor %}
  {% endblock %}
