mirror of
https://github.com/twbs/bootstrap.git
synced 2025-03-15 15:29:22 +01:00
Replace data-src
with src="..."
in docs. (#27649)
This commit is contained in:
parent
e6a356a3ae
commit
110c7f4cc0
@ -18,6 +18,21 @@ optional: hide_markup - disabled (default)
|
|||||||
|
|
||||||
{%- if include.hide_markup == null -%}
|
{%- if include.hide_markup == null -%}
|
||||||
{%- highlight html -%}
|
{%- 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 -%}
|
{%- endhighlight -%}
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user