Back to Vector

Components

website/layouts/partials/home/components.html

0.55.0751 B
Original Source

{{ $text := .Params.components }} {{ $types := slice "Sources" "Transforms" "Sinks" }}

{{ partial "home/heading.html" (dict "title" $text.title) }}

{{ $text.description }}

{{ range $types }} {{ $moreHref := printf "/docs/reference/configuration/%s" (. | lower) }} {{ $type := . }} {{ $components := where site.RegularPages ".CurrentSection.Params.short" . }} {{ $num := len $components }} {{ $num }} {{ $type | lower }} {{ range first 10 $components }} {{ $title := .Params.short | default .Title }} {{ template "component-chip" (dict "title" $title "href" .RelPermalink) }} {{ end }} {{/* Heroicons: outline/dots-horizontal */}} {{ end }}

{{ define "component-chip" }} {{ .title }} {{ end }}