{{- $type := .Get "type" | default "note" -}}
{{- $title := .Get "title" | default (title $type) -}}
{{- $icon := "" -}}

{{- if eq $type "note" -}}
  {{- $icon = "📝" -}}
{{- else if eq $type "tip" -}}
  {{- $icon = "💡" -}}
{{- else if eq $type "info" -}}
  {{- $icon = "ℹ️" -}}
{{- else if eq $type "warning" -}}
  {{- $icon = "⚠️" -}}
{{- else if eq $type "danger" -}}
  {{- $icon = "🚨" -}}
{{- else if eq $type "success" -}}
  {{- $icon = "✅" -}}
{{- else if eq $type "question" -}}
  {{- $icon = "❓" -}}
{{- else if eq $type "quote" -}}
  {{- $icon = "💬" -}}
{{- else if eq $type "example" -}}
  {{- $icon = "📋" -}}
{{- else if eq $type "bug" -}}
  {{- $icon = "🐛" -}}
{{- else -}}
  {{- $icon = "📌" -}}
{{- end -}}

<div class="callout callout-{{ $type }}">
  <div class="callout-title">
    <span class="callout-icon">{{ $icon }}</span>
    <span>{{ $title }}</span>
  </div>
  <div class="callout-content">
    {{ .Inner | markdownify }}
  </div>
</div>