Back to Genai Toolbox

List Prebuilt Configs

.hugo/layouts/shortcodes/list-prebuilt-configs.html

1.1.0589 B
Original Source

{{ $integrations := site.GetPage "section" "integrations" }}

{{/*Loop through all database folders alphabetically */}} {{ range $integrations.Pages.ByTitle }} {{ $db := . }} {{/* Only render a row if this database has a 'prebuilt-configs' folder */}} {{ with $db.GetPage "prebuilt-configs" }} {{ $displayTitle := $db.Title }} {{ $targetLink := .RelPermalink }} {{ $displayDesc := .Description | default (printf "Explore prebuilt configurations for %s." $db.Title) }} [

{{ $displayTitle }}

{{ $displayDesc | plainify | truncate 120 }}

]({{%20$targetLink%20}}) {{ end }} {{ end }}