diff --git a/layouts/partials/refractor-content.html b/layouts/partials/refractor-content.html deleted file mode 100644 index 861c9ca..0000000 --- a/layouts/partials/refractor-content.html +++ /dev/null @@ -1,44 +0,0 @@ -{{ $content := .Content }} - - -{{ if findRE `` `` }} - {{ $content = replace $content `
` `` }} - {{ $content = replace $content `
` `
` }} -{{ end }} - - -{{ if findRE ` - {{ $content = replaceRE `
  • (\s*)$1 - {{ $content = replaceRE `
      (\s*)
    • $1
    • ` `` $content }} - {{ $content = replaceRE `` `` $content }} - - - {{ $content = replaceRE `` `` $content }} -{{ end }} - - -{{ $headingLevels := slice "2" "3" "4" "5" }} -{{ $headingContent := $content }} - -{{ range $level := $headingLevels }} - {{ $markStart := printf `(.*?)%s` $markStart $markEnd }} - {{ $replacement := printf `%s$1">$2%s` $markStart $markEnd }} - {{ $headingContent = replaceRE $pattern $replacement $headingContent }} -{{ end }} - -{{ $content = $headingContent | safeHTML }} - -{{ $content | safeHTML }} \ No newline at end of file diff --git a/layouts/post/single.html b/layouts/post/single.html index b7ef343..a2893e2 100644 --- a/layouts/post/single.html +++ b/layouts/post/single.html @@ -116,7 +116,7 @@ {{ end }}
      - {{ partial "refractor-content.html" . }} + {{ partial "refactor-content.html" . }}