feat: add admonitions

This commit is contained in:
rxchi1d
2025-12-21 16:40:25 +08:00
committed by ZhenShuo Leo
parent 1fc6058426
commit 775d5b1bbf
18 changed files with 664 additions and 5 deletions
+3 -3
View File
@@ -8,10 +8,10 @@
{{- $section := .Site.GetPage "section" .Section -}}
{{- if .Date -}}
{{- $index = $index | append (dict
"date" (.Date | time.Format (.Site.Language.Params.dateFormat | default ":date_long"))
"date" (.Date | time.Format (.Site.Language.Params.dateFormat | default ":date_long"))
"title" (.Title | emojify | safeJS)
"section" ($section.Title | emojify | safeJS)
"summary" (.Summary | safeJS)
"summary" (.Summary | plainify | htmlUnescape | safeJS)
"content" (.Plain | safeJS)
"permalink" .RelPermalink
"externalUrl" .Params.externalUrl
@@ -21,7 +21,7 @@
{{- $index = $index | append (dict
"title" (.Title | emojify | safeJS)
"section" ($section.Title | emojify | safeJS)
"summary" (.Summary | safeJS)
"summary" (.Summary | plainify | htmlUnescape | safeJS)
"content" (.Plain | safeJS)
"permalink" .RelPermalink
"externalUrl" .Params.externalUrl