vanilla-hugo/layouts/shortcodes/message.html

11 lines
316 B
HTML
Raw Normal View History

2022-07-02 16:13:57 -07:00
<span class="message side-{{ .Get 0 }}">
2022-08-28 19:07:14 -07:00
<span class="message-sender">
{{- if (eq (.Get 1) "reader") -}}
{{- partial "icon.html" "moon" -}}
{{- else -}}
{{- partial "icon.html" "sun" -}}
{{- end -}}
2022-08-28 19:07:14 -07:00
</span>
<span class="message-text">{{- .Inner -}}</span>
2022-07-02 16:13:57 -07:00
</span>