Skip to content

Commit 52a7658

Browse files
committed
missing shortocode not replaced {{ now.Year }}
1 parent 57e1aa7 commit 52a7658

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

themes/psh-docs/layouts/partials/llms/replace-html.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,10 @@
9696
{{- $content = $content | replaceRE "(?m)^(#{2,6})(\\s|$)" (printf "${1}%s " $hashes) -}}
9797
{{- end -}}
9898

99+
{{- $content = $content
100+
| replaceRE `\{\{\s*now\.Year\s*\}\}` (printf "%d" now.Year)
101+
-}}
102+
99103
{{- $content = $content
100104
| replaceRE ` ([a-zA-Z0-9\@:-]){2,}="([][a-zA-Z0-9\.\_\!\+:='\''\;,\/\{\}\(\)\&><↗\ -]{0,})"` ``
101105
| replaceRE `<([A-Z0-9_]+)>` "##PLACEHOLDER_START##${1}##PLACEHOLDER_END##"

0 commit comments

Comments
 (0)