diff options
| author | XhmikosR <[email protected]> | 2018-11-11 14:45:48 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2018-11-11 14:45:48 +0200 |
| commit | 110c7f4cc0c5693583e0e69bdde3465c934b6e58 (patch) | |
| tree | 99eee27905889777826a19beafb0756b45c51d83 /site/_includes/example.html | |
| parent | e6a356a3aed5e69b347cd680d8d7b2e1ede9c20e (diff) | |
| download | bootstrap-110c7f4cc0c5693583e0e69bdde3465c934b6e58.tar.xz bootstrap-110c7f4cc0c5693583e0e69bdde3465c934b6e58.zip | |
Replace `data-src` with `src="..."` in docs. (#27649)
Diffstat (limited to 'site/_includes/example.html')
| -rw-r--r-- | site/_includes/example.html | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/site/_includes/example.html b/site/_includes/example.html index 24d12626b..63621c64b 100644 --- a/site/_includes/example.html +++ b/site/_includes/example.html @@ -18,6 +18,21 @@ optional: hide_markup - disabled (default) {%- if include.hide_markup == null -%} {%- highlight html -%} - {{- include.content | replace: 'data-src="holder.js', 'src="...' -}} + {%- if include.content contains 'data-src="holder.js' -%} + {%- assign modified_content = include.content + | replace: 'data-src="holder.js', 'src="✂️holder.js' + | replace: '" ', '✂️" ' + | split: '✂️' -%} + + {%- for content_chunk in modified_content -%} + {%- if content_chunk contains 'holder.js' -%} + {{- "..." -}} + {%- else -%} + {{- content_chunk -}} + {%- endif -%} + {%- endfor -%} + {%- else -%} + {{- include.content -}} + {%- endif -%} {%- endhighlight -%} {%- endif -%} |
