notice.html 444 B

1234567891011
  1. {{- .Scratch.Set "type" "note" -}}
  2. {{- with .Get 0 }}{{ $.Scratch.Set "type" . }}{{ end -}}
  3. <aside class="notice {{ .Scratch.Get "type" }}">
  4. <hr>
  5. <div class="notice-title">
  6. <img class="notice-title-icon" src="{{ "images/exclamation.svg" | relURL }}" height="15">
  7. <span>{{ with .Get 1 }}{{ . }}{{ else }}{{ .Scratch.Get "type" | humanize }}{{ end }}</span>
  8. </div>
  9. <div class="notice-body">{{ .Inner | markdownify }}</div>
  10. <hr>
  11. </aside>