forked from drowl87/hextra_mirror

* feat: basic github style alerts support * feat: implement github style alert * chore: re-generate css * chore: add missing prettier config * docs: add alerts instructions to markdown * chore: revert "docs: add alerts instructions to markdown" This reverts commit 3a70540e0b5651e485612209ee22e04b26432e72. * chore: redo "docs: add alerts instructions to markdown"" This reverts commit 8399373747f081ff7164c4dd60ac5598a1a0c121. * chore(build): bump hugo version
10 lines
379 B
HTML
10 lines
379 B
HTML
{{- if not (in (slice "note" "tip" "important" "warning" "caution") .AlertType) -}}
|
|
{{- warnf "Alert type %s is not supported" .AlertType -}}
|
|
{{- end -}}
|
|
|
|
{{- $content := .Text -}}
|
|
{{- $alertType := .AlertType -}}
|
|
{{- $alertTitle := .AlertTitle -}}
|
|
|
|
{{- partial "components/github-style-alert.html" (dict "content" $content "alertType" $alertType "alertTitle" $alertTitle) -}}
|