From 50f58ce599afcd5dc9e7e22c1ddd924c8b6dbf6e Mon Sep 17 00:00:00 2001 From: coliff Date: Tue, 22 Oct 2024 21:00:09 +0900 Subject: [PATCH] Use `
` element for example cards This makes semantic sense. REF: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/article --- 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 -}}