1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-28 07:39:57 +02:00

Add StackBlitz edit button for examples

This commit is contained in:
Julien Déramond
2022-10-01 12:21:47 +02:00
committed by GeoSot
parent 3377ca49a1
commit 5267ef5e08
2 changed files with 104 additions and 0 deletions

View File

@@ -35,6 +35,9 @@ aliases: "/examples/"
loading="lazy">
<h3 class="h5 mb-1">{{ $example.name }}</h3>
</a>
<button type="button" class="btn-edit text-nowrap float-end" title="Try it on StackBlitz" style="margin-top: -30px" data-sb-js-snippet="{{ $example.name | urlize }}">
<svg class="bi" role="img" aria-label="Try it"><use xlink:href="#lightning-charge-fill"/></svg>
</button>
<p class="text-muted">{{ $example.description }}</p>
</div>
{{ if (eq (add $i 1) $len) }}</div>{{ end }}