Sha256: ae1fbc95c7a0404bf7b66ba47e1885af829ddb746c59a77460e00c64caa3b770
Contents?: true
Size: 1.99 KB
Versions: 45
Compression:
Stored size: 1.99 KB
Contents
{% comment %} # ----------------------------------------------------------------------------- # ~/_includes/themes/j1/layouts/layout_module_generator.html # Liquid template to generate all Javascript init scripts defined # for a layout # # Product/Info: # https://jekyll.one # # Copyright (C) 2023 Juergen Adams # # J1 Theme is licensed under the MIT License. # See: https://github.com/jekyll-one-org/j1-template/blob/main/LICENSE.md # ----------------------------------------------------------------------------- # Test data: # liquid_var: {{ liquid_var | debug }} # ----------------------------------------------------------------------------- {% endcomment %} {% comment %} Liquid procedures -------------------------------------------------------------------------------- {% endcomment %} {% capture module_writer %}themes/{{site.template.name}}/procedures/layouts/module_writer.proc{% endcapture %} {% comment %} Variables -------------------------------------------------------------------------------- {% endcomment %} {% assign region = include.region %} {% assign globals = site.data.resources.globals %} {% assign items = site.data.resources.resources %} {% comment %} Main -------------------------------------------------------------------------------- {% endcomment %} {% if page.debug %} <!-- [INFO ] [j1.layout_module_generator.html ] [ resource DATA to be loaded: {{resources_collate}} ] --> {% endif %} <!-- [INFO ] [j1.layout_module_generator.html ] [ start processing. collect data for region: {{region}}, layout: {{page.layout}} ] --> {% for item in items %} {% for element in item %} {% if element[0] == 'resource' %} {% assign resource = element[1] %} <!-- [INFO ] [j1.layout_module_generator.html ] [ process resource: {{resource.id}} ] --> {% include {{module_writer}} region=region global=globals resource=resource %} {% endif %} {% endfor %} {% endfor %} <!-- [INFO ] [j1.layout_module_generator.html ] [ end processing ] -->
Version data entries
45 entries across 45 versions & 1 rubygems