Sha256: e431d78b343d4da38e85dd2e593b2f46921c840e336ed5c4ee7f9c9906ab6fea

Contents?: true

Size: 2 KB

Versions: 26

Compression:

Stored size: 2 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) 2020 Juergen Adams
 #
 # J1 Template is licensed under the MIT License.
 # See: https://github.com/jekyll-one-org/J1 Template/blob/master/LICENSE
 # -----------------------------------------------------------------------------
 # 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

26 entries across 26 versions & 1 rubygems

Version Path
j1-template-2021.0.0 _includes/themes/j1/layouts/layout_module_generator.html
j1-template-2020.0.25 _includes/themes/j1/layouts/layout_module_generator.html
j1-template-2020.0.24 _includes/themes/j1/layouts/layout_module_generator.html
j1-template-2020.0.22 _includes/themes/j1/layouts/layout_module_generator.html
j1-template-2020.0.21 _includes/themes/j1/layouts/layout_module_generator.html
j1-template-2020.0.20 _includes/themes/j1/layouts/layout_module_generator.html
j1-template-2020.0.19 _includes/themes/j1/layouts/layout_module_generator.html
j1-template-2020.0.18 _includes/themes/j1/layouts/layout_module_generator.html
j1-template-2020.0.17 _includes/themes/j1/layouts/layout_module_generator.html
j1-template-2020.0.16 _includes/themes/j1/layouts/layout_module_generator.html
j1-template-2020.0.15 _includes/themes/j1/layouts/layout_module_generator.html
j1-template-2020.0.14 _includes/themes/j1/layouts/layout_module_generator.html
j1-template-2020.0.13 _includes/themes/j1/layouts/layout_module_generator.html
j1-template-2020.0.12 _includes/themes/j1/layouts/layout_module_generator.html
j1-template-2020.0.11 _includes/themes/j1/layouts/layout_module_generator.html
j1-template-2020.0.10 _includes/themes/j1/layouts/layout_module_generator.html
j1-template-2020.0.9 _includes/themes/j1/layouts/layout_module_generator.html
j1-template-2020.0.8 _includes/themes/j1/layouts/layout_module_generator.html
j1-template-2020.0.7 _includes/themes/j1/layouts/layout_module_generator.html
j1-template-2020.0.6 _includes/themes/j1/layouts/layout_module_generator.html