mirror of https://github.com/lxndrblz/anatole.git

Markus Bilz
29.10.2026 a5cb66ff0c3d5c2c86f89c2d9407102341bf83c8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{{/* Available notice types: danger, info, update */}}
{{- $noticeType := .Get 0 -}}
<div
  class="notice{{ if eq $noticeType "warning" }}
    notice--warning
  {{ else if eq $noticeType "update" }}
    notice--update
  {{ end }}"
>
  <span
    class="notice__title{{ if eq $noticeType "warning" }}
      notice__title--warning
    {{ else if eq $noticeType "update" }}
      notice__title--update
    {{ end }}"
  >
    {{- i18n $noticeType -}}
  </span>
  {{- $noteContent := (markdownify .Inner | chomp) -}}
  <div class="notice__content">
    {{ $noteContent }}
  </div>
</div>