Skip to content

Commit

Permalink
conditional render syntax field for array type
Browse files Browse the repository at this point in the history
  • Loading branch information
titaneric committed Jan 9, 2025
1 parent 350e141 commit 303b12c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions website/layouts/partials/data.html
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,9 @@

<span class="flex items-center space-x-1">
{{ partial "badge.html" (dict "word" $k "color" "gray") }}
{{ if $v.syntax }}
{{ partial "badge.html" (dict "word" $v.syntax "color" "gray") }}
{{ end }}
</span>
</span>

Expand Down

0 comments on commit 303b12c

Please sign in to comment.