1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-27 15:19:52 +02:00

Docs: add missing twbs/examples and change sorting (#38407)

* Docs: add missing twbs/examples

* Change sorting of examples.yml

---------

Co-authored-by: XhmikosR <xhmikosr@gmail.com>
This commit is contained in:
Julien Déramond
2023-04-05 08:10:47 +02:00
committed by GitHub
parent b62fd60a6d
commit d0cc42c009
4 changed files with 33 additions and 16 deletions

View File

@@ -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>