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

Tim van Wijk
20.22.2025 902d1bfcae166cf9b0350bb88810e3c0162430a3
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>