diff options
| author | XhmikosR <[email protected]> | 2019-01-08 18:33:28 +0200 |
|---|---|---|
| committer | XhmikosR <[email protected]> | 2019-03-13 19:22:59 +0200 |
| commit | d95d30029f8d63190eb242c9914cee16b6b90627 (patch) | |
| tree | 06fbab510fa94ac092606eb04b37d061e64d8fbc /site/_includes/example.html | |
| parent | 6aa475c82e69a02882e87da7067e522806d6579c (diff) | |
| download | bootstrap-d95d30029f8d63190eb242c9914cee16b6b90627.tar.xz bootstrap-d95d30029f8d63190eb242c9914cee16b6b90627.zip | |
Switch to Hugo.
No more Ruby dependency and most important more than 10 times less build time (at least on Windows)!
Diffstat (limited to 'site/_includes/example.html')
| -rw-r--r-- | site/_includes/example.html | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/site/_includes/example.html b/site/_includes/example.html deleted file mode 100644 index dcd148b02..000000000 --- a/site/_includes/example.html +++ /dev/null @@ -1,51 +0,0 @@ -{%- comment -%} - 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 id = include.id -%} -{%- assign class = include.class -%} - -{%- if include.hide_preview == null -%} -<div{% if id %} id="{{ id }}"{% endif %} class="bd-example{% if class %} {{ class }}{% endif %}"> - {{- include.content -}} -</div> -{%- endif -%} - -{%- if include.hide_markup == null -%} - {%- highlight html -%} - {%- if include.content contains '<svg class="bd-placeholder-img' -%} - {%- assign modified_content = include.content - | replace: '<svg class="bd-placeholder-img', '✂️<svg class="bd-placeholder-img' - | replace: '</svg>', '</svg>✂️' - | split: '✂️' -%} - - {%- if include.content contains 'bd-placeholder-img ' -%} - {%- assign image_class = include.content - | replace_first: 'bd-placeholder-img', 'bd-placeholder-img ✂️' - | replace: '" width="', '✂️" width="' - | split: '✂️' -%} - {%- assign image_class = image_class[1] | replace: 'bd-placeholder-img-lg', '' | strip -%} - {%- endif -%} - - {%- for content_chunk in modified_content -%} - {%- if content_chunk contains '<svg class="bd-placeholder-img' -%} - {%- capture img_placeholder -%} - <img src="..." {% if image_class %}class="{{ image_class }}" {% endif %}alt="..."> - {%- endcapture -%} - {{- img_placeholder -}} - {%- else -%} - {{- content_chunk -}} - {%- endif -%} - {%- endfor -%} - {%- else -%} - {{- include.content -}} - {%- endif -%} - {%- endhighlight -%} -{%- endif -%} |
