aboutsummaryrefslogtreecommitdiff
path: root/site/content/docs/5.3/examples
diff options
context:
space:
mode:
authorJulien Déramond <[email protected]>2023-04-05 08:10:47 +0200
committerGitHub <[email protected]>2023-04-05 09:10:47 +0300
commitd0cc42c009c2f680e2fdfd3df4cf06b90d0bfd09 (patch)
treedf87e51483f2260d5278805e4f4eef32438e2636 /site/content/docs/5.3/examples
parentb62fd60a6dd3e5171bf045e7dc0750fdd45a0b27 (diff)
downloadbootstrap-d0cc42c009c2f680e2fdfd3df4cf06b90d0bfd09.tar.xz
bootstrap-d0cc42c009c2f680e2fdfd3df4cf06b90d0bfd09.zip
Docs: add missing `twbs/examples` and change sorting (#38407)
* Docs: add missing twbs/examples * Change sorting of examples.yml --------- Co-authored-by: XhmikosR <[email protected]>
Diffstat (limited to 'site/content/docs/5.3/examples')
-rw-r--r--site/content/docs/5.3/examples/_index.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/site/content/docs/5.3/examples/_index.md b/site/content/docs/5.3/examples/_index.md
index 2fa9a4528..c3c242312 100644
--- a/site/content/docs/5.3/examples/_index.md
+++ b/site/content/docs/5.3/examples/_index.md
@@ -32,11 +32,11 @@ aliases: "/examples/"
</h3>
<p class="text-body-secondary">{{ $example.description }}</p>
<p>
- {{- $htmlIndexLocation := "index.html" -}}
- {{- if $example.htmlIndexLocation -}}
- {{- $htmlIndexLocation = printf "%s/index.html" $example.htmlIndexLocation -}}
+ {{- $indexPath := "index.html" -}}
+ {{- if $example.indexPath -}}
+ {{- $indexPath = $example.indexPath -}}
{{- end }}
- <a class="icon-link small link-secondary link-offset-1" href="https://stackblitz.com/github/twbs{{ $example.url }}?file={{ $htmlIndexLocation | urlquery }}" target="_blank" rel="noopener">
+ <a class="icon-link small link-secondary link-offset-1" href="https://stackblitz.com/github/twbs{{ $example.url }}?file={{ $indexPath | urlquery }}" target="_blank" rel="noopener">
<svg class="bi flex-shrink-0"><use xlink:href="#lightning-charge-fill"></use></svg>
Edit in StackBlitz
</a>