From ff7d1be0b73dc6a6c28df133607d8300c14b55aa Mon Sep 17 00:00:00 2001 From: Christian Oliff Date: Tue, 10 Dec 2024 21:03:18 +0900 Subject: [PATCH] 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 --- site/layouts/partials/examples/main.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/site/layouts/partials/examples/main.html b/site/layouts/partials/examples/main.html index 636cd7e2e8cd..59f35d7cb11b 100644 --- a/site/layouts/partials/examples/main.html +++ b/site/layouts/partials/examples/main.html @@ -14,7 +14,7 @@

{{ $entry.category }}

{{- $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 -}}