mirror of
https://github.com/twbs/bootstrap.git
synced 2022-11-09 12:25:43 -05:00
Docs: simplify a few Hugo range
s. (#29333)
This commit is contained in:
parent
edf7923c8f
commit
6f1eb110e7
3 changed files with 11 additions and 11 deletions
|
@ -770,10 +770,10 @@ Use `.table-responsive{-sm|-md|-lg|-xl}` as needed to create responsive tables u
|
||||||
**These tables may appear broken until their responsive styles apply at specific viewport widths.**
|
**These tables may appear broken until their responsive styles apply at specific viewport widths.**
|
||||||
|
|
||||||
{{< tables.inline >}}
|
{{< tables.inline >}}
|
||||||
{{ range $bp := $.Site.Data.breakpoints }}
|
{{ range $.Site.Data.breakpoints }}
|
||||||
{{ if not (eq $bp "xs") }}
|
{{ if not (eq . "xs") }}
|
||||||
<div class="bd-example">
|
<div class="bd-example">
|
||||||
<div class="table-responsive{{ $bp.abbr }}">
|
<div class="table-responsive{{ .abbr }}">
|
||||||
<table class="table">
|
<table class="table">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -832,9 +832,9 @@ Use `.table-responsive{-sm|-md|-lg|-xl}` as needed to create responsive tables u
|
||||||
|
|
||||||
{{< highlight html >}}
|
{{< highlight html >}}
|
||||||
{{< tables.inline >}}
|
{{< tables.inline >}}
|
||||||
{{- range $bp := $.Site.Data.breakpoints -}}
|
{{- range $.Site.Data.breakpoints -}}
|
||||||
{{- if not (eq $bp "xs") }}
|
{{- if not (eq . "xs") }}
|
||||||
<div class="table-responsive{{ $bp.abbr }}">
|
<div class="table-responsive{{ .abbr }}">
|
||||||
<table class="table">
|
<table class="table">
|
||||||
...
|
...
|
||||||
</table>
|
</table>
|
||||||
|
|
|
@ -438,8 +438,8 @@ Responsive variations also exist for `order`.
|
||||||
{{< markdown >}}
|
{{< markdown >}}
|
||||||
{{< flex.inline >}}
|
{{< flex.inline >}}
|
||||||
{{- range $bp := $.Site.Data.breakpoints -}}
|
{{- range $bp := $.Site.Data.breakpoints -}}
|
||||||
{{- range $i, $num := seq 0 5 }}
|
{{- range (seq 0 5) }}
|
||||||
- `.order{{ $bp.abbr }}-{{ $i }}`
|
- `.order{{ $bp.abbr }}-{{ . }}`
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{< /flex.inline >}}
|
{{< /flex.inline >}}
|
||||||
|
@ -450,8 +450,8 @@ Additionally there are also responsive `.order-first` and `.order-last` classes
|
||||||
{{< markdown >}}
|
{{< markdown >}}
|
||||||
{{< flex.inline >}}
|
{{< flex.inline >}}
|
||||||
{{- range $bp := $.Site.Data.breakpoints -}}
|
{{- range $bp := $.Site.Data.breakpoints -}}
|
||||||
{{- range $i := slice "first" "last" }}
|
{{- range (slice "first" "last") }}
|
||||||
- `.order{{ $bp.abbr }}-{{ $i }}`
|
- `.order{{ $bp.abbr }}-{{ . }}`
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{< /flex.inline >}}
|
{{< /flex.inline >}}
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
{{- $modified_content = replace $modified_content "</svg>\n" "</svg>✂️" -}}
|
{{- $modified_content = replace $modified_content "</svg>\n" "</svg>✂️" -}}
|
||||||
{{- $modified_content = split $modified_content "✂️" -}}
|
{{- $modified_content = split $modified_content "✂️" -}}
|
||||||
|
|
||||||
{{- range $i, $content_chunk := $modified_content -}}
|
{{- range $content_chunk := $modified_content -}}
|
||||||
{{- $image_class := "" -}}
|
{{- $image_class := "" -}}
|
||||||
|
|
||||||
{{- if (strings.Contains $content_chunk `<svg class="bd-placeholder-img `) -}}
|
{{- if (strings.Contains $content_chunk `<svg class="bd-placeholder-img `) -}}
|
||||||
|
|
Loading…
Add table
Reference in a new issue