Switch TODO to be a quote syntax to avoid shortcodes
Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
This commit is contained in:
9
layouts/_default/_markup/render-blockquote.html
Normal file
9
layouts/_default/_markup/render-blockquote.html
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
{{ if and (eq .Type "alert") (eq .AlertType "todo") -}}
|
||||||
|
<div style="background-color: tomato; color: white; padding: 10px;">
|
||||||
|
<em>TODO: </em>{{- .Text | plainify -}}
|
||||||
|
</div>
|
||||||
|
{{- else -}}
|
||||||
|
<blockquote {{- with .Attributes.id }} id="{{ . }}"{{ end }}>
|
||||||
|
{{ .Text -}}
|
||||||
|
</blockquote>
|
||||||
|
{{- end }}
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
<div style="background-color: tomato; color: white; padding: 10px;">
|
|
||||||
<em>TODO: </em>{{- .Inner -}}
|
|
||||||
</div>
|
|
||||||
Reference in New Issue
Block a user