0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-12-04 16:24:22 +01:00
Bootstrap/site/content/docs/5.0/examples/_index.md
Mark Otto a3ad7327f2
Update examples (#33214)
* Add updated Jumbotron example made from utilities

* Update starter template example with new design and links

* Update some existing examples and their screenshots

* Add four new snippet-based examples

* Update layout to improve things a bit

* WIP

* Add d-block to images

* Fix horizontal scroll

* move d-block to the anchor

Co-authored-by: XhmikosR <xhmikosr@gmail.com>
2021-03-22 13:59:14 -07:00

1.9 KiB

layout title description aliases
single Examples Quickly get a project started with any of our examples ranging from using parts of the framework to custom components and layouts. /examples/

{{< list-examples.inline >}} {{ range entry := .Site.Data.examples -}}

{{ $entry.category }}

{{ $entry.description }}

{{ if eq $entry.category "RTL" -}}

The RTL feature is still experimental and will probably evolve according to user feedback. Spotted something or have an improvement to suggest? Open an issue, we'd love to get your insights.

{{ end -}}

{{ range $i, $example := $entry.examples -}} {{- $len := len $entry.examples -}} {{ if (eq $i 0) }}

{{ end }}
<a class="d-block" href="/docs/{{ $.Site.Params.docs_version }}/examples/{{ $example.name | urlize }}/"{{ if in $example.name "RTL" }} hreflang="ar"{{ end }}>

{{ $example.name }}

{{ $example.description }}

{{ if (eq (add $i 1) $len) }}
{{ end }} {{ end -}} {{ end -}} {{< /list-examples.inline >}}