From 9866053f0ce44721c11990c9f9407e7428757c99 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Fri, 10 May 2019 14:21:36 +0200 Subject: update bootstrap to version 4.3.1 --- vendor/twbs/bootstrap/site/_includes/example.html | 48 ++++++++++++++++++----- 1 file changed, 38 insertions(+), 10 deletions(-) (limited to 'vendor/twbs/bootstrap/site/_includes/example.html') diff --git a/vendor/twbs/bootstrap/site/_includes/example.html b/vendor/twbs/bootstrap/site/_includes/example.html index 24d12626b..dcd148b02 100644 --- a/vendor/twbs/bootstrap/site/_includes/example.html +++ b/vendor/twbs/bootstrap/site/_includes/example.html @@ -1,23 +1,51 @@ {%- comment -%} -Usage: {% include example.html content=markup %}, -where content is a capture with the HTML content -id - null (default) -class - "bd-example" (default) -optional: hide_preview - disabled (default) -optional: hide_markup - disabled (default) + Usage: include example.html content=markup [args], + where content is a capture with the HTML content + + args can be one of the following: + id - null (default) + class - "bd-example" (default) + optional: hide_preview - disabled (default) + optional: hide_markup - disabled (default) {%- endcomment -%} -{%- assign preview_id = include.id -%} -{%- assign preview_class = include.class -%} +{%- assign id = include.id -%} +{%- assign class = include.class -%} {%- if include.hide_preview == null -%} - + {{- include.content -}} {%- endif -%} {%- if include.hide_markup == null -%} {%- highlight html -%} - {{- include.content | replace: 'data-src="holder.js', 'src="...' -}} + {%- if include.content contains ' + {%- endcapture -%} + {{- img_placeholder -}} + {%- else -%} + {{- content_chunk -}} + {%- endif -%} + {%- endfor -%} + {%- else -%} + {{- include.content -}} + {%- endif -%} {%- endhighlight -%} {%- endif -%} -- cgit v1.2.3