mirror of
https://github.com/rustdesk/doc.rustdesk.com.git
synced 2025-07-01 07:15:31 +00:00
17 lines
625 B
HTML
17 lines
625 B
HTML
{{/*
|
|
Notice shortcode for alerts/callouts (replacement for Learn theme)
|
|
Uses Hextra's native GitHub-style alert system
|
|
*/}}
|
|
{{- $type := .Get 0 | default "note" -}}
|
|
{{- $content := .Inner | strings.TrimSpace -}}
|
|
|
|
{{/* Map Learn theme notice types to Hextra alert types */}}
|
|
{{- $alertType := $type -}}
|
|
{{- if eq $type "info" -}}
|
|
{{- $alertType = "note" -}}
|
|
{{- else if eq $type "danger" -}}
|
|
{{- $alertType = "caution" -}}
|
|
{{- end -}}
|
|
|
|
{{/* Use Hextra's GitHub-style alert component */}}
|
|
{{- partial "components/github-style-alert.html" (dict "content" ($content | markdownify) "alertType" $alertType "alertTitle" "") -}} |