hugo-theme-relearn/layouts/partials/indent.html

3 lines
186 B
HTML
Raw Normal View History

2023-10-10 21:40:34 +00:00
{{- $content := .content }}
{{- $indention := .indention }}
2024-09-01 18:37:58 +00:00
{{- replaceRE "(\\r\\n|\\r|\\n)" (printf "$1%s" $indention) (replaceRE "^" $indention (trim $content "\n\r\t ")) | safeHTML }}