Skip to content

Commit

Permalink
fix(docs): Use component_kind rather than kind in templates (#20063)
Browse files Browse the repository at this point in the history
I missed a few spots in #20058

Signed-off-by: Jesse Szwedko <jesse.szwedko@datadoghq.com>
  • Loading branch information
jszwedko authored Mar 11, 2024
1 parent 38acf37 commit 4804e17
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions website/layouts/_default/component-card-selectable.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<a href="{{ .RelPermalink }}">
<div class="component-card is-hoverable" x-data="{ tags: {{ $tags | jsonify }} }">
<header class="component-card-header">
{{ .Title }} {{ .Params.kind }}
{{ .Title }} {{ .Params.component_kind }}
</header>

{{ with $desc }}
Expand All @@ -27,4 +27,4 @@
</div>
{{ end }}
</div>
</a>
</a>
2 changes: 1 addition & 1 deletion website/layouts/_default/component-card.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{{ $title := .Params.short | default .Title }}
{{ $componentTag := .File.BaseFileName }}
{{ $kind := .Params.kind }}
{{ $kind := .Params.component_kind }}
<div>
<a href="{{ .RelPermalink }}">
<div class="no-prose border hover:border-4 rounded dark:border-gray-700 p-4 shadow-sm hover:border-secondary dark:hover:border-primary">
Expand Down
2 changes: 1 addition & 1 deletion website/layouts/partials/meta.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{{ $img := site.Params.site_logo | absURL }}
{{ $imgAlt := printf "Logo for %s" site.Title }}
{{ $twitter := printf "@%s" site.Params.social.twitter_handle }}
{{ $title := cond (eq .Layout "component") (printf "%s %s" .Title .Params.kind) .Title }}
{{ $title := cond (eq .Layout "component") (printf "%s %s" .Title .Params.component_kind) .Title }}
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no">
<meta http-equiv="x-ua-compatible" content="id=edge">
Expand Down

0 comments on commit 4804e17

Please sign in to comment.