Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(docs): Use component_kind rather than kind in templates #20063

Merged
merged 1 commit into from
Mar 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading