{%- capture html_banner %} {%- comment %} Usage: {% include base/banner.html %} Optional Parameters: * name (string) : "" * image (string) : "" * image_height (string) : "92" * icon (string) : "" * description (string) : "" * actions (list) : [{"name":"","url":""}] * resources (list) : [{"name":"","url":"","icon":""}] Output: Page banner. {%- endcomment %} {%- assign image = page.with_banner.image | default: include.image %} {%- assign image_height = page.with_banner.image_height | default: include.image_height | default: '92' %} {%- assign icon = page.with_banner.icon | default: include.icon %} {%- assign name = page.with_banner.name | default: include.name %} {%- assign description = page.with_banner.description | default: include.description %} {%- assign actions = page.with_banner.actions | default: include.actions %} {%- assign resources = page.with_banner.resources | default: include.resources %} {%- capture html_banner_image -%} {%- if name == nil and description == nil and actions == nil and resources == nil %} {%- assign mb = "1" %} {%- else %} {%- assign mb = "5" %} {%- endif %}
{%- endcapture %} {%- capture html_banner_icon -%} {%- if name == nil and description == nil and actions == nil and resources == nil %} {%- assign mb = "1" %} {%- else %} {%- assign mb = "5" %} {%- endif %}