Skip to content

Commit

Permalink
Typo fix isNativ to isNative (#4856)
Browse files Browse the repository at this point in the history
  • Loading branch information
haidong authored Jul 22, 2024
1 parent a2e600f commit abe6c1e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions layouts/partials/ecosystem/registry/entry.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"icon" "fab fa-rust")
-}}

{{ $isNativ := and (eq .registryType "instrumentation") (.isNative) }}
{{ $isNative := and (eq .registryType "instrumentation") (.isNative) }}
{{ $isFirstParty := and (eq .registryType "instrumentation") (.isFirstParty) }}
{{ $currentTime := (time now) -}}
{{ $delta := $currentTime.Sub (time.AsTime .createdAt) -}}
Expand All @@ -64,7 +64,7 @@
{{ if $isNew -}}
{{ $highlightStyle = "border-info" -}}
{{ end -}}
{{ if $isNativ -}}
{{ if $isNative -}}
{{ $highlightStyle = "border-success" -}}
{{ end -}}
{{ if $isFirstParty -}}
Expand All @@ -87,7 +87,7 @@ <h4 class="card-title mb-0 d-flex flex-row">
{{ if $isNew -}}
<span class="badge rounded-pill text-bg-info"><i class="fa-regular fa-star"></i> new</span>
{{ end -}}
{{ if $isNativ -}}
{{ if $isNative -}}
<span class="badge rounded-pill text-bg-success text-white"><i class="fa-solid fa-puzzle-piece"></i> native</span>
{{ end -}}
{{ if $isFirstParty -}}
Expand Down Expand Up @@ -205,4 +205,4 @@ <h6><i class="fa-solid fa-forward"></i> Quick Install</h6>
{{- end -}}
</div>
</li>
{{ end -}}
{{ end -}}

0 comments on commit abe6c1e

Please sign in to comment.