]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Reindent.
authorXhmikosR <xhmikosr@gmail.com>
Fri, 16 Nov 2018 15:52:02 +0000 (17:52 +0200)
committerXhmikosR <xhmikosr@gmail.com>
Tue, 20 Nov 2018 19:31:28 +0000 (21:31 +0200)
site/_includes/bugify.html
site/_includes/callout.html
site/_includes/example.html

index cd8ab79a5027fc14c892ba995a6934502524fc4c..7f3340421a89975d023f96d9bdd10fb0515d99a4 100644 (file)
@@ -1,7 +1,7 @@
 {%- comment -%}
-Usage: {% include bugify.html content=text %},
-where content is a string that contains a bug reference name and id.
-e.g. Bootstrap#19984
+  Usage: include bugify.html content=text,
+  where content is a string that contains a bug reference name and id.
+  e.g. Bootstrap#19984
 {%- endcomment -%}
 
 {%- assign words = include.content | split: " " -%}
index 067e49f19845cb4a80911b05bcc69a13ce36770b..2b446b0abcf697a97370529d03ff91109f106709 100644 (file)
@@ -1,7 +1,7 @@
 {%- comment -%}
-Usage: {% include callout.html content=callout type="type" %},
-where content is a capture with the content
-and type is one of: info (default), danger, warning
+  Usage: include callout.html content=callout type="type",
+  where content is a capture with the content
+  and type is one of: info (default), danger, warning
 {%- endcomment -%}
 {%- assign css_class = include.type | default: "info" -%}
 <div class="bd-callout bd-callout-{{ css_class }} no_toc_section">
index 308d2850b24066117210eab333e8034da40f6911..dd1cc63823bff521e5f27ba127531cf013db5c16 100644 (file)
@@ -1,17 +1,19 @@
 {%- 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 -%}
-<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 -}}
 </div>
 {%- endif -%}