{% comment %} Preload CSS Packages {% endcomment %} {% if page.css-package %} {% capture css-package %}/assets/css/main-{{page.css-package}}.css{% endcapture %} {% elsif layout.css-package %} {% capture css-package %}/assets/css/main-{{layout.css-package}}.css{% endcapture %} {% elsif layout.css-package == "main" or page.css-package == "main" %} {% else %} {% endif %} {% comment %} Preload JS Packages {% endcomment %} {% if page.js-package %} {% capture js-package %}package-{{page.js-package}}{% endcapture %} {% elsif layout.js-package %} {% capture js-package %}package-{{layout.js-package}}{% endcapture %} {% else %} {% endif %} {% comment %} Site Wide Http2 resources {% endcomment %} {% if site.data.settings.http2_resources %} {% for resource in site.data.settings.http2_resources %} {% if resource.href_list %} {% for resource_href in resource.href_list %} {% endfor %} {% else %} {% endif %} {% endfor %} {% endif %} {% comment %} The following liquid checks the pages frontmatter for http2_resources list. Add all non-theme resources that you'd like to preload here. {% endcomment %} {% if page.http2_resources %} {% for resource in page.http2_resources %} {% if resource.href_list %} {% for resource_href in resource.href_list %} {% endfor %} {% else %} {% endif %} {% endfor %} {% endif %} {% comment %} Jumbotron Background Image {% endcomment %} {% if page.jumbotron.background-image %} {% for resource in page.http2_resources %} {% endfor %} {% endif %} {% comment %} Jumbotron Carousel Images {% endcomment %} {% if page.jumbotron.carousel-images %} {% for image in page.jumbotron.carousel-images %} {% endfor %} {% endif %} {% comment %} Jumbotron Carousel Images {% endcomment %} {% if page.jumbotron.carousel-images %} {% for image in page.jumbotron.carousel-images %} {% endfor %} {% endif %} {% comment %} Jumbotron Video {% endcomment %} {% if page.jumbotron.video.poster %} {% endif %} {% if page.jumbotron.video.source.mp4 %} {% endif %} {% comment %} Blog Images {% endcomment %} {% if page.image.featured %} {% if page.image.path %} {% endif %} {% endif %}