From d01b4eb02560ba67b61b1b2c0496e9f8281c154d Mon Sep 17 00:00:00 2001 From: m5o Date: Wed, 14 Mar 2018 16:44:38 +0100 Subject: Remove custom example plugin. (#25784) --- _includes/example.html | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 _includes/example.html (limited to '_includes/example.html') diff --git a/_includes/example.html b/_includes/example.html new file mode 100644 index 000000000..24d12626b --- /dev/null +++ b/_includes/example.html @@ -0,0 +1,23 @@ +{%- 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) +{%- endcomment -%} + +{%- assign preview_id = include.id -%} +{%- assign preview_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="...' -}} + {%- endhighlight -%} +{%- endif -%} -- cgit v1.2.3