docs site from main 021df711
This commit is contained in:
commit
3118c37e08
73 files changed
+39682
No files matched your search
@@ -0,0 +1,55 @@
|
||||
{%- macro has_caption( tile ) -%}
|
||||
{%- if tile.caption is defined and tile.caption|string|length -%}
|
||||
true
|
||||
{%- else -%}
|
||||
false
|
||||
{%- endif -%}
|
||||
{%- endmacro -%}
|
||||
|
||||
{%- macro has_image( tile ) -%}
|
||||
{%- if tile.img_src is defined and tile.img_src|string|length -%}
|
||||
true
|
||||
{%- else -%}
|
||||
false
|
||||
{%- endif -%}
|
||||
{%- endmacro -%}
|
||||
|
||||
{%- macro has_link( tile ) -%}
|
||||
{%- if tile.link_href is defined and tile.link_href|string|length -%}
|
||||
true
|
||||
{%- else -%}
|
||||
false
|
||||
{%- endif -%}
|
||||
{%- endmacro -%}
|
||||
|
||||
{%- macro is_image_only( tile ) -%}
|
||||
{%- if has_image(tile) == "true" and has_link(tile) != "true" -%}
|
||||
true
|
||||
{%- else -%}
|
||||
false
|
||||
{%- endif -%}
|
||||
{%- endmacro -%}
|
||||
|
||||
{%- macro is_link_only( tile ) -%}
|
||||
{%- if has_link(tile) == "true" and has_image(tile) != "true" -%}
|
||||
true
|
||||
{%- else -%}
|
||||
false
|
||||
{%- endif -%}
|
||||
{%- endmacro -%}
|
||||
|
||||
{%- macro is_linked_image( tile ) -%}
|
||||
{%- if has_image(tile) == "true" and has_link(tile) == "true" -%}
|
||||
true
|
||||
{%- else -%}
|
||||
false
|
||||
{%- endif -%}
|
||||
{%- endmacro -%}
|
||||
|
||||
{%- macro is_valid( tile ) -%}
|
||||
{%- if is_image_only(tile) == "true" or is_link_only(tile) == "true" or is_linked_image(tile) == "true" -%}
|
||||
true
|
||||
{%- else -%}
|
||||
false
|
||||
{%- endif -%}
|
||||
{%- endmacro -%}
|
||||
Reference in new issue
Block a user