refactor: add code block render hooks for xml feed content (#651)

This commit is contained in:
Cell
2025-12-20 14:38:12 +08:00
parent f2b6218edc
commit 4d95fd8d30
7 changed files with 27 additions and 59 deletions
+11
View File
@@ -0,0 +1,11 @@
{{- if eq .Type "timeline" -}}
{{- dict
"Options" .Attributes
"Inner" .Inner
"Resources" .Page.Resources
"Position" .Position
| partial "plugin/timeline.html"
-}}
{{- else -}}
<pre><code>{{ .Inner }}</code></pre>
{{- end -}}