1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-22 21:22:52 +02:00

Reindent.

This commit is contained in:
XhmikosR
2018-11-16 17:52:02 +02:00
parent 2b9af5e38c
commit d9717d1945
3 changed files with 17 additions and 15 deletions

View File

@@ -1,7 +1,7 @@
{%- comment -%} {%- comment -%}
Usage: {% include bugify.html content=text %}, Usage: include bugify.html content=text,
where content is a string that contains a bug reference name and id. where content is a string that contains a bug reference name and id.
e.g. Bootstrap#19984 e.g. Bootstrap#19984
{%- endcomment -%} {%- endcomment -%}
{%- assign words = include.content | split: " " -%} {%- assign words = include.content | split: " " -%}

View File

@@ -1,7 +1,7 @@
{%- comment -%} {%- comment -%}
Usage: {% include callout.html content=callout type="type" %}, Usage: include callout.html content=callout type="type",
where content is a capture with the content where content is a capture with the content
and type is one of: info (default), danger, warning and type is one of: info (default), danger, warning
{%- endcomment -%} {%- endcomment -%}
{%- assign css_class = include.type | default: "info" -%} {%- assign css_class = include.type | default: "info" -%}
<div class="bd-callout bd-callout-{{ css_class }} no_toc_section"> <div class="bd-callout bd-callout-{{ css_class }} no_toc_section">

View File

@@ -1,17 +1,19 @@
{%- comment -%} {%- comment -%}
Usage: {% include example.html content=markup %}, Usage: include example.html content=markup [args],
where content is a capture with the HTML content where content is a capture with the HTML content
id - null (default)
class - "bd-example" (default) args can be one of the following:
optional: hide_preview - disabled (default) id - null (default)
optional: hide_markup - disabled (default) class - "bd-example" (default)
optional: hide_preview - disabled (default)
optional: hide_markup - disabled (default)
{%- endcomment -%} {%- endcomment -%}
{%- assign preview_id = include.id -%} {%- assign id = include.id -%}
{%- assign preview_class = include.class -%} {%- assign class = include.class -%}
{%- if include.hide_preview == null -%} {%- if include.hide_preview == null -%}
<div{% if preview_id %} id="{{ preview_id }}"{% endif %} class="bd-example{% if preview_class %} {{ preview_class }}{% endif %}"> <div{% if id %} id="{{ id }}"{% endif %} class="bd-example{% if class %} {{ class }}{% endif %}">
{{- include.content -}} {{- include.content -}}
</div> </div>
{%- endif -%} {%- endif -%}