From bd131c91ead4fffe7ee7b6cc563d3eb0af3dcf16 Mon Sep 17 00:00:00 2001 From: aka <125674614+zhen-shi@users.noreply.github.com> Date: Fri, 3 Nov 2023 00:18:13 +0800 Subject: [PATCH] feat: shortcode chat --- layouts/shortcodes/chat.html | 116 +++++++++++++++++++++++++++++++++++ 1 file changed, 116 insertions(+) create mode 100644 layouts/shortcodes/chat.html diff --git a/layouts/shortcodes/chat.html b/layouts/shortcodes/chat.html new file mode 100644 index 0000000..ff50c22 --- /dev/null +++ b/layouts/shortcodes/chat.html @@ -0,0 +1,116 @@ +{{ if eq (.Get "position") "left" }} +
+
+
{{ .Get "name" }}   {{ .Get "timestamp" }}
+
+ {{ .Inner }} +
+
+
+{{ else if eq (.Get "position") "right" }} +
+
+
{{ .Get "timestamp" }}   {{ .Get "name" }}
+
+ {{ .Inner }} +
+
+
+{{ end }} + + \ No newline at end of file