diff options
| author | XhmikosR <[email protected]> | 2019-09-01 13:37:24 +0300 |
|---|---|---|
| committer | XhmikosR <[email protected]> | 2019-09-06 11:57:50 +0300 |
| commit | d6945d5e8fa66a84cf363d9ff710684971bdea85 (patch) | |
| tree | 3328dc2dcf33124ec2b91015c27cdf7c65fdf894 /site/content/docs/4.3/examples | |
| parent | 2c9e22ef889b1b88df7b956d705a1069c10d5e68 (diff) | |
| download | bootstrap-d6945d5e8fa66a84cf363d9ff710684971bdea85.tar.xz bootstrap-d6945d5e8fa66a84cf363d9ff710684971bdea85.zip | |
Move shortcodes used only once where they are needed.
Diffstat (limited to 'site/content/docs/4.3/examples')
| -rw-r--r-- | site/content/docs/4.3/examples/_index.md | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/site/content/docs/4.3/examples/_index.md b/site/content/docs/4.3/examples/_index.md index e063c7a8a..e166a7bc0 100644 --- a/site/content/docs/4.3/examples/_index.md +++ b/site/content/docs/4.3/examples/_index.md @@ -5,4 +5,24 @@ description: Quickly get a project started with any of our examples ranging from aliases: "/examples/" --- -{{< list-examples >}} +{{< list-examples.inline >}} +{{ range $entry := $.Site.Data.examples -}} + <h2>{{ $entry.category }}</h2> + <p>{{ $entry.description }}</p> + + {{ range $i, $example := $entry.examples -}} + {{- $len := len $entry.examples -}} + {{ if (eq $i 0) }}<div class="row">{{ end }} + <div class="col-sm-6 col-md-4 col-xl-3 mb-3"> + <a href="/docs/{{ $.Site.Params.docs_version }}/examples/{{ $example.name | urlize }}/"> + <img class="img-thumbnail mb-3" srcset="/docs/{{ $.Site.Params.docs_version }}/assets/img/examples/{{ $example.name | urlize }}.png, + /docs/{{ $.Site.Params.docs_version }}/assets/img/examples/{{ $example.name | urlize }}@2x.png 2x" + src="/docs/{{ $.Site.Params.docs_version }}/assets/img/examples/{{ $example.name | urlize }}.png" alt="{{ $example.name }} screenshot" width="480" height="300"> + <h5 class="mb-1">{{ $example.name }}</h5> + </a> + <p class="text-muted">{{ $example.description }}</p> + </div> + {{ if (eq (add $i 1) $len) }}</div>{{ end }} + {{ end -}} +{{ end -}} +{{< /list-examples.inline >}} |
