From 806d3a318f4e83141e591db813a02a5433b865bc Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Sun, 30 Mar 2025 23:11:35 -0700 Subject: [PATCH] Switch TODO to be a quote syntax to avoid shortcodes Signed-off-by: Danila Fedorin --- layouts/_default/_markup/render-blockquote.html | 9 +++++++++ layouts/shortcodes/todo.html | 3 --- 2 files changed, 9 insertions(+), 3 deletions(-) create mode 100644 layouts/_default/_markup/render-blockquote.html delete mode 100644 layouts/shortcodes/todo.html diff --git a/layouts/_default/_markup/render-blockquote.html b/layouts/_default/_markup/render-blockquote.html new file mode 100644 index 0000000..50d9652 --- /dev/null +++ b/layouts/_default/_markup/render-blockquote.html @@ -0,0 +1,9 @@ +{{ if and (eq .Type "alert") (eq .AlertType "todo") -}} +
+ TODO: {{- .Text | plainify -}} +
+{{- else -}} +
+{{ .Text -}} +
+{{- end }} diff --git a/layouts/shortcodes/todo.html b/layouts/shortcodes/todo.html deleted file mode 100644 index e93f0fa..0000000 --- a/layouts/shortcodes/todo.html +++ /dev/null @@ -1,3 +0,0 @@ -
- TODO: {{- .Inner -}} -