From: Christian Oliff Date: Tue, 10 Dec 2024 12:03:18 +0000 (+0900) Subject: Use `
` element for example cards (#40965) X-Git-Tag: v5.3.4~35 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ff7d1be0b73dc6a6c28df133607d8300c14b55aa;p=thirdparty%2Fbootstrap.git Use `
` element for example cards (#40965) This makes semantic sense. REF: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/article Co-authored-by: Patrick H. Lauke --- diff --git a/site/layouts/partials/examples/main.html b/site/layouts/partials/examples/main.html index 636cd7e2e8..59f35d7cb1 100644 --- a/site/layouts/partials/examples/main.html +++ b/site/layouts/partials/examples/main.html @@ -14,7 +14,7 @@ {{- $len := len $entry.examples -}} {{ if (eq $i 0) }}
{{ end }} {{ if $entry.external -}} -
+

@@ -32,9 +32,9 @@

-
+
{{ else -}} -
+
{{- $exampleNameUrlized := $example.name | urlize -}} {{- $exampleUrl := urls.JoinPath "/docs" $.Site.Params.docs_version "/examples" $exampleNameUrlized "/" }} @@ -55,7 +55,7 @@

{{ $example.description }}

-
+
{{- end }} {{ if (eq (add $i 1) $len) }}{{ end -}} {{ end -}}