hugo-theme-relearn/layouts/partials/indent.html
2024-09-01 20:37:58 +02:00

3 lines
No EOL
186 B
HTML

{{- $content := .content }}
{{- $indention := .indention }}
{{- replaceRE "(\\r\\n|\\r|\\n)" (printf "$1%s" $indention) (replaceRE "^" $indention (trim $content "\n\r\t ")) | safeHTML }}