{{- /* Usage: `callout "type"`, where `type` is one of "note" (default), "info", "danger", or "warning" Based on: https://github.com/twbs/bootstrap/blob/283cbd902669732943885e94115a0e29a952baf6/site/layouts/shortcodes/callout.html */ -}} {{- $css_class := "" -}} {{- if .IsNamedParams -}} {{- $css_class = .Get "context" | default "tip" -}} {{- else -}} {{- $css_class = .Get 0 | default "tip" -}} {{- end -}} {{- $icon := .Get "icon" | default "info-circle" -}} {{- $title := .Get "title" | default "Information" -}} {{- $service := partial "portails/get_service" (.Get "service") -}} {{ if ne $service.services_link false }}
{{ with $icon -}} {{ partial "inline-svg" (dict "src" $icon "class" "callout-icon me-2 mb-3") }} {{- end }}
{{ with $title -}}
{{ . | $.Page.RenderString (dict "display" "block") }}
{{- end }}
{{- with $service -}} {{ $url := partial "portails/get_service_url" $service }} {{- end -}}
{{- end -}}